Main

Showing posts with label cs201. Show all posts
Showing posts with label cs201. Show all posts

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

cs201-quize-2-15-11-2012


MC100400431 : Zaheer Abbas



Quiz Start Time: 10:58 PM    
Time Left     62
sec(s)    
Question # 2 of 10 ( Start time: 11:00:06 PM )     Total Marks: 1
Which operator has the highest precedence? (*, -, /, +)
Select correct option:
    * and / both have the same highest precedence
    * has the highest precedence
    + has the highest precedence
    - has the highest precedence

MC100400431 : Zaheer Abbas



Quiz Start Time: 10:58 PM    
Time Left     89
sec(s)    
Question # 3 of 10 ( Start time: 11:00:51 PM )     Total Marks: 1
Which of the following will be the most appropriate data type to store the value 63.547?
Select correct option:
    Integer
    Character
    Short
    Float

MC100400431 : Zaheer Abbas



Quiz Start Time: 10:58 PM    
Time Left     19
sec(s)    
Question # 4 of 10 ( Start time: 11:02:16 PM )     Total Marks: 1
In C/C++, a variable’s name can start with the symbol ____________.
Select correct option:
    ; Semicolon
    : Colon
    _ Underscore
    + Plus

MC100400431 : Zaheer Abbas



Quiz Start Time: 10:58 PM    
Time Left     51
sec(s)    
Question # 5 of 10 ( Start time: 11:03:32 PM )     Total Marks: 1
What will be the result of arithmetic expression 6+48/4*3?
Select correct option:
    10
    40.5
    42
    41

MC100400431 : Zaheer Abbas



Quiz Start Time: 10:58 PM    
Time Left     57
sec(s)    
Question # 8 of 10 ( Start time: 11:06:58 PM )     Total Marks: 1
If x is declare as an integer, what will be result of the given expression? x = 2 + 3 * 5 % 2 + 3 / 2
Select correct option:
    4
    2
    4.5
    5

MC090406635 : Muqaddas Bano



Quiz Start Time: 11:10 PM    
Time Left     26
sec(s)    
Question # 3 of 10 ( Start time: 11:12:48 PM )     Total Marks: 1
< and > both are _________ operators.
Select correct option:
    Arithmetic
    Relational
    Logical
    Mathematical

Sunday, 25 November 2012