Answer:
shortNames = ['Gus', 'Bob','Zoe']
Explanation:
In this assignment, your knowledge of list is been tested. A list is data structure type in python that can hold different elements (items) of different type. The general syntax of a list is
listName = [item1, "item2", item3]
listName refers to the name of the list variable, this is followed by a pair of square brackets, inside the square brackets we have items separated by commas. This is a declaration and initialization of a list with some elements.
The complete python code snippet for this assignment is given below:
<em>shortNames = ['Gus', 'Bob','Zoe']</em>
<em>print(shortNames[0])</em>
<em>print(shortNames[1])</em>
<em>print(shortNames[2])</em>
Answer:
a. PCI express
Explanation:
<em>PCI express</em> (Peripheral Component Interconnect Express) is a high speed serial bus and commonly used motherboard interface for Graphics card, wifi, SSDs and HDs hardware connections. Simple PCI can also be used but PCI express has more error detection accuracy lesser number of I/O pins and better throughput as compared to simple PCI.
Answer:
a. (p*Main).age = 20;
Explanation:
Pointers use ->
where as normal variable use . to access its members
pMain is the pointer.
*pMain is the value inside pMain.
pMain->age = 20;
This statement equals to
(*pMain).age = 20;
Answer is option a.
Answer:
If you are trying to put the events in order and they are out of order you will probaly get the question wrong so make sure the events are in order.
Explanation: