Answer:
It is <em>definitely </em>D.
Explanation:
I am a gamer myself so this question is easy for me. It's slim to none to be wrong when you view my answer!!!
The below displays ice-creams with its associated flavours. This we would display using <UL>
• Stick
o Chocobar
o Feast
• Bowl
o Butterscotch
o Blueberry
<UL>
<LI>Stick
<UL>
<LI>Chocobar </LI>
<LI> feast</LI>
</UL>
</LI>
<LI>Bowl
<UL>
<LI> Butterscotch </LI>
<LI> Blueberry </LI>
</UL>
</LI>
</UL>
Here <UL> tag is used to create un ordered list and one another <UL> tag inside <LI> created nested list which is the actual requirement. Like this we can created nested unordered lists and you can nest upto 4 levels and increasing the number of levels further may reduce clarity.
Class Item {
// item class attributes
string itemName;
int itemQuantity;
double itemPrice;
...
}
class grocerylist {
// you can use arrays or any other containers like ArrayList, Vectors,...etc depends on programming language you use
Item[50] itemList;
int size;
public grocerylist () {
this.size = 0;
}
public void addItem(Item i) {
itemList[size] = i;
size = size +1; // Or size++
}
}
Answer:
b. the same data type
Explanation:
Any number of variables can be declared in a statement as long as the variables have the same data type. For example:
1) int a,b,c,d,e;
Here each of the declared variables a,b,c,d,e have the type int.
2) char p,q,r,s,t,u,v,w;
In this case variables p to w all have the type char.
3) float x,y,z;
x,y and z are all of type float.