Saturday, September 15, 2012

CS 201 Quize







Quiz Start Time: 08:02 PM
Time Left
68
sec(s)
Question # 1 of 10 ( Start time: 08:02:27 PM )
Total Marks: 1
From the following; which one is the correct syntax of an array declaration: array size is 5 and it is of float data type?
Select correct option:

float [5] name;
name[5] float;
float name[5];
None of the given options
 






Quiz Start Time: 08:02 PM
Time Left
86
sec(s)
Question # 4 of 10 ( Start time: 08:05:15 PM )
Total Marks: 1
In the case of pointer to pointer or _______________, the first pointer contains the address of the second pointer, which contains the address of the variable, which contains the desired value.
Select correct option:

double dereference
Single dereference
Dereference
None of the given
 



Quiz Start Time: 08:02 PM
Time Left
89
sec(s)
Question # 5 of 10 ( Start time: 08:06:04 PM )
Total Marks: 1
A structure is a collection of _____________under a single name.
Select correct option:

values
variables
data
None of the given
 




Quiz Start Time: 08:02 PM
Time Left
84
sec(s)
Question # 6 of 10 ( Start time: 08:07:21 PM )
Total Marks: 1
The ws manipulator can be used with ______ stream(s).
Select correct option:

Output
Input
Input/output
None of the given options
 




Quiz Start Time: 08:02 PM
Time Left
89
sec(s)
Question # 7 of 10 ( Start time: 08:08:44 PM )
Total Marks: 1
Look at the program code and identify the error. 1 #include 2 #define PI 3.1415926; // Defining PI 3 main() { 4 int radius = 5; 5 cout << "Area of circle with radius " << radius << " = " << PI * radius * radius; }
Select correct option:

It will be compiled successfully and will not generate error
It will be compiled and returns nothing
Error exists in line number 2. Semi colon is not allowed with define directive
The value of PI cannot be defined in the beginning
 




Quiz Start Time: 08:02 PM
Time Left
81
sec(s)
Question # 9 of 10 ( Start time: 08:10:51 PM )
Total Marks: 1
+= , *= , /= , etc are called,
Select correct option:

Assignment operators
Logical operator
Compound assignment operator
Unary operator