Main

Monday, 26 November 2012

cs201 quiz # 3 (25-11-2012)


MC090406635 : Muqaddas Bano



Quiz Start Time: 04:05 PM    
Time Left     89
sec(s)    
Question # 1 of 10 ( Start time: 04:05:07 PM )     Total Marks: 1
What will be the value of the variable output in the given piece of code? double output = 0; output = (2 + 2) * 4 + 2 / (4 – 2);
Select correct option:
    15
    17
    12
    11

MC090406635 : Muqaddas Bano



Quiz Start Time: 04:05 PM    
Time Left     89
sec(s)    
Question # 2 of 10 ( Start time: 04:05:33 PM )     Total Marks: 1
In call by reference, __________ of a variable is passed to the called function.
Select correct option:
    Name
    Data type
    Value
    Address

MC090406635 : Muqaddas Bano



Quiz Start Time: 04:05 PM    
Time Left     89
sec(s)    
Question # 3 of 10 ( Start time: 04:06:43 PM )     Total Marks: 1
!= operator is used to check whether the operand on the left-hand-side is ___________ to the operand on the right-hand-side.
Select correct option:
    Less than or equal
    Greater than or equal
    Not equal
    Approximately equal to

MC090406635 : Muqaddas Bano



Quiz Start Time: 04:05 PM    
Time Left     90
sec(s)    
Question # 4 of 10 ( Start time: 04:07:48 PM )     Total Marks: 1
For breaking complex problems into smaller pieces we use _______.
Select correct option:
    if/else
    Loops
    Functions
    Break statement

MC090406635 : Muqaddas Bano



Quiz Start Time: 04:05 PM    
Time Left     90
sec(s)    
Question # 5 of 10 ( Start time: 04:08:48 PM )     Total Marks: 1
___________ are used to compile the code.
Select correct option:
    Editors
    Debugger
    Linker
    Compiler

MC090406635 : Muqaddas Bano



Quiz Start Time: 04:05 PM    
Time Left     89
sec(s)    
Question # 6 of 10 ( Start time: 04:10:19 PM )     Total Marks: 1
In C/C++, by default arguments are passed by _______ to a function.
Select correct option:
    Reference
    Value
    Size
    Data

MC090406635 : Muqaddas Bano



Quiz Start Time: 04:05 PM    
Time Left     89
sec(s)    
Question # 7 of 10 ( Start time: 04:11:37 PM )     Total Marks: 1
A variable of character data type occupies ________ bytes in memory.
Select correct option:
    1
    2
    4
    8

MC090406635 : Muqaddas Bano



Quiz Start Time: 04:05 PM    
Time Left     89
sec(s)    
Question # 8 of 10 ( Start time: 04:13:01 PM )     Total Marks: 1
_________statement is used to terminate the processing of a particular case and exit from switch structure.
Select correct option:
    if
    goto
    break
    continue

MC090406635 : Muqaddas Bano



Quiz Start Time: 04:05 PM    
Time Left     87
sec(s)    
Question # 9 of 10 ( Start time: 04:14:18 PM )     Total Marks: 1
________ stop execution at the line that contains error s in the code.
Select correct option:
    Compiler
    Debugger
    Interpreter
    Linker

MC090406635 : Muqaddas Bano



Quiz Start Time: 04:05 PM    
Time Left     89
sec(s)    
Question # 10 of 10 ( Start time: 04:15:41 PM )     Total Marks: 1
Identify the logical error in the following if condition If ((i < 5) && (i > 15))
Select correct option:
    Condition is always true
    Condition is always false
    & will be used instead of &&
    && cannot be used with if condition

No comments:

Post a Comment