more detail look in attachmentView more random threads:
- cs605 mid term paper spring 2011
- MGT602 Quiz spring 2011 on 12 april 2011
- FIN621 Financial Statement Analysis FINALTERM EXAMINATION...
- MGT402- Cost & Management Accounting (Session - 4)
- mgt501 quize 4rth 30-06-2011
- ISL201-Islamic Studies VU Online Quiz 3 Solution Last Date...
- mgt111 mid term Quiz 2011 virtual university of pakistan
- Which of the following method is called only once during...
- cs502 fundamentals of algorithms quiz mcq, fall 2010...
- mkt621 advertising promotion on line quiz mcqs download...
CS201 1st Quiz Conference
Q#1
Question # 1 of 15 ( Start time: 01:52:21 PM ) Total Marks: 1
Computer can understand only __________language code.
Select correct option:
High level
Low level
Machine
Fourth generation
Q#2
Question # 2 of 15 ( Start time: 01:52:45 PM ) Total Marks: 1
Why we use "cin"?
Select correct option:
To send data to printer
To read data from keyboard
To display message
To display output on the screen
Q#3
Question # 3 of 15 ( Start time: 01:53:26 PM ) Total Marks: 1
According to c++ norms; the first character of a variable name must be an alphabet or
Select correct option:
Underscore
Special character
Digit
None of the given options
Q#4
Question # 4 of 15 ( Start time: 01:53:49 PM ) Total Marks: 1
If int sum = 54; Then the value of the following statement is sum = sum - 3 ;
Select correct option:
52
50
51
57
Q#5
Question # 5 of 15 ( Start time: 01:54:36 PM ) Total Marks: 1
_______ Keyword is used to return some value from a function.
Select correct option:
break
return
continue
goto
Q#6
Question # 6 of 15 ( Start time: 01:55:07 PM ) Total Marks: 1
A _____________is a precise sequence of steps to solve a particular problem.
Select correct option:
Code
Program
Statement
None of the given options
Q#7
Question # 7 of 15 ( Start time: 01:55:32 PM ) Total Marks: 1
What will be the output of the following while loop? int counter = 0 ; while(counter < 15) cout << counter << “ ”; counter++;
Select correct option:
1 2 3 4
1 2 3 4 5
Compile time error
Infinite loop
Q#8
Question # 8 of 15 ( Start time: 01:56:39 PM ) Total Marks: 1
What is the output of the following code? for (int i=0; i<5; i++) cout << i%2 << " ";
Select correct option:
0 1 2 3 4 5
0 2 4 6 8 10
0 1 0 1 0
1 0 1 0 1
Q#9
Question # 9 of 15 ( Start time: 01:57:30 PM ) Total Marks: 1
While developing a program; should we think about the user interface?
Select correct option:
Yes
No
Q#10
Question # 10 of 15 ( Start time: 01:58:06 PM ) Total Marks: 1
______ statement interrupts the flow of control.
Select correct option:
switch
continue
goto
break
Q#11
Question # 11 of 15 ( Start time: 01:58:57 PM ) Total Marks: 1
From the following; which one is used as an assignment operator?
Select correct option:
Equal sign ‘=’
Double equal sign ‘==’
Both equal and double equal sign
None of the given options
Q#12
Question # 12 of 15 ( Start time: 01:59:51 PM ) Total Marks: 1
What will be the value of ‘a’ and ‘b’ after executing the following statements? int a = 9; int b = a++; cout<
Select correct option:
10,9
9,10
9,9
10,10
Q#13
Question # 13 of 15 ( Start time: 02:00:54 PM ) Total Marks: 1
Which of the function call is call by value for the following function prototype? float add(int);
Select correct option:
add(&x);
add(x);
add(int x);
add(*x);
Q#14
Question # 14 of 15 ( Start time: 02:01:31 PM ) Total Marks: 1
In order to get the right most digit of a number, we divide this number by 10 and take its
Select correct option:
Remainder
Quotient
Divisor
None of the given options
Q#15
Question # 15 of 15 ( Start time: 02:02:18 PM ) Total Marks: 1
What will be the correct syntax for the following function call? float add (int &);
Select correct option:
add(int x);
add(&x);
add(x);
add (*x);
Q#16
Question # 2 of 15 ( Start time: 02:12:38 PM ) Total Marks: 1
According to c++ norms; the first character of a variable name must be an alphabet or
Select correct option:
Underscore
Special character
Digit
None of the given options
Q#17
Question # 3 of 15 ( Start time: 02:13:16 PM ) Total Marks: 1
What is the output of the following code? for (int i = 5; i <= 5; i++) { cout << i++; cout << i; }
Select correct option:
56
65
55
13
Q#18
Question # 4 of 15 ( Start time: 02:14:15 PM ) Total Marks: 1
When we call a function, its control
Select correct option:
transfers to its Prototype
transfers to its definition
returns to statement following function call
The compiler stops execution of whole program
Q#19
Question # 5 of 15 ( Start time: 02:14:59 PM ) Total Marks: 1
What will be the correct syntax for the following function call? float add (int &);
Select correct option:
add(int x);
add(&x);
add(x);
add (*x);
Q#20
Question # 6 of 15 ( Start time: 02:15:41 PM ) Total Marks: 1
____________ transfers the executable code from main memory to hard disk.
Select correct option:
Loader
Debugger
Compiler
Linker
Q#21
Question # 7 of 15 ( Start time: 02:16:22 PM ) Total Marks: 1
+= , *= , /= , etc are called,
Select correct option:
Assignment operators
Logical operator
Compound assignment operator
Unary operator
Q#22
Question # 8 of 15 ( Start time: 02:17:06 PM ) Total Marks: 1
X is an integer variable; what does X++ means,
Select correct option:
Add 1 two times in X value
Add 1 in X value
Add 2 in X value
None of these
Q#23
Question # 9 of 15 ( Start time: 02:17:57 PM ) Total Marks: 1
What will be the result of arithmetic expression 5+25/5*5?
Select correct option:
45
6
30
9
Q#24
Question # 11 of 15 ( Start time: 02:19:25 PM ) Total Marks: 1
What will be the output of following code segment? for (int i = 2; i<10; i++){ if ( i == 5) continue; cout << i << "," ; }
Select correct option:
2,3,7,8,9
2,3,4,6,7,8,9
2,3,4
4,6,7,8,9
Q#25
Question # 12 of 15 ( Start time: 02:20:18 PM ) Total Marks: 1
Function prototype is written,
Select correct option:
Within main function
After the return statement in main
Before the return statement in main
Before call of that function
Q#26
Question # 13 of 15 ( Start time: 02:21:30 PM ) Total Marks: 1
The data type before a function name represents its,
Select correct option:
Return Type
Function data
Function arguments
Function name
Q#27
Question # 14 of 15 ( Start time: 02:22:19 PM ) Total Marks: 1
When the logical operator OR (||) combine two expressions exp1 and exp2 then the result will be false only,
Select correct option:
When both exp1 and exp2 are true
When both exp1 and exp2 are false
When exp1 is true and exp2 is false
When exp1 is false and exp2 is true
Q#28
Question # 15 of 15 ( Start time: 02:23:35 PM ) Total Marks: 1
Which of the following function call is “call by reference” for the following function prototype? int add (int *);
Select correct option:
add(&x);
add(int x);
add(x);
add(*x);
Q#30
Question # 1 of 15 ( Start time: 02:26:38 PM ) Total Marks: 1
If int sum = 54; Then the value of the following statement is sum = sum - 3 ;
Select correct option:
52
50
51
57
Q#31
Question # 2 of 15 ( Start time: 02:27:39 PM ) Total Marks: 1
What will be the output of following code segment? for (int i = 2; i<10; i++){ if ( i == 5) continue; cout << i << "," ; }
Select correct option:
2,3,7,8,9
2,3,4,6,7,8,9
2,3,4
4,6,7,8,9
Q#32
Question # 3 of 15 ( Start time: 02:28:15 PM ) Total Marks: 1
Computer can understand only __________language code.
Select correct option:
High level
Low level
Machine
Fourth generation
Q#33
Question # 4 of 15 ( Start time: 02:28:55 PM ) Total Marks: 1
In C/C++; by default arguments are passed by _____ to a function.
Select correct option:
Reference
Value
Type
Data
Q#34
Question # 5 of 15 ( Start time: 02:29:28 PM ) Total Marks: 1
While developing a program; should we think about the user interface?
Select correct option:
Yes
No
Q#35
Question # 6 of 15 ( Start time: 02:29:55 PM ) Total Marks: 1
If int a = 50; then the value of a/= 3; will be,
Select correct option:
15
18
16
17
Q#36
Question # 7 of 15 ( Start time: 02:30:39 PM ) Total Marks: 1
According to c++ norms; the first character of a variable name must be an alphabet or
Select correct option:
Underscore
Special character
Digit
None of the given options
Q#37
Question # 8 of 15 ( Start time: 02:31:07 PM ) Total Marks: 1
What will be the output of the following while loop? int counter = 0 ; while(counter < 15) cout << counter << “ ”; counter++;
Select correct option:
1 2 3 4
1 2 3 4 5
Compile time error
Infinite loop
Q#38
Question # 9 of 15 ( Start time: 02:31:40 PM ) Total Marks: 1
Which of the function call is call by value for the following function prototype? float add(int);
Select correct option:
add(&x);
add(x);
add(int x);
add(*x);
Q#39
Question # 10 of 15 ( Start time: 02:32:44 PM ) Total Marks: 1
When a = 26; then the expression a%= 5; will calculate the value of a as,
Select correct option:
1
0
3
5
Q#40
Question # 11 of 15 ( Start time: 02:33:28 PM ) Total Marks: 1
____________ transfers the executable code from main memory to hard disk.
Select correct option:
Loader
Debugger
Compiler
Linker
Q#41
Question # 12 of 15 ( Start time: 02:33:57 PM ) Total Marks: 1
When the if statement consists more than one statement then enclosing these statement in curly braces is,
Select correct option:
Not required
Good programming
Relevant
Must
Q#42
Question # 13 of 15 ( Start time: 02:34:29 PM ) Total Marks: 1
In while loop the loop counter must be initialized,
Select correct option:
With in the loop
Before entering the loop
At the end of the loop
None of the given options
Sponsored Links
Q#43
Question # 14 of 15 ( Start time: 02:34:56 PM ) Total Marks: 1
Why we use "cout"?
Select correct option:
To send data to printer
To read data from keyboard
To display message
To display output on the screen
Q#44
Question # 15 of 15 ( Start time: 02:35:31 PM ) Total Marks: 1
______ statement interrupts the flow of control.
Select correct option:
switch
continue
goto
break
Q#45
Question # 1 of 15 ( Start time: 02:39:51 PM ) Total Marks: 1
What will be the result of arithmetic expression 5+25/5*5?
Select correct option:
45
6
30
9
3
Q#46
Question # 3 of 15 ( Start time: 02:40:44 PM ) Total Marks: 1
Loops are _____________ Structure
Select correct option:
Decision
Sequential
Repetition
None of the given options
Q#47
Question # 4 of 15 ( Start time: 02:41:19 PM ) Total Marks: 1
We comment code; as it makes program ________________
Select correct option:
Heavy i.e. more space is needed for executable.
Difficult to compile.
All of these.
Easy to understand.
Q#48
Question # 5 of 15 ( Start time: 02:41:48 PM ) Total Marks: 1
X is an integer variable; what does X++ means,
Select correct option:
Add 1 two times in X value
Add 1 in X value
Add 2 in X value
None of these
Q#49
Question # 6 of 15 ( Start time: 02:42:14 PM ) Total Marks: 1
From the following; which one is used as an assignment operator?
Select correct option:
Equal sign ‘=’
Double equal sign ‘==’
Both equal and double equal sign
None of the given options
Q#50
Question # 8 of 15 ( Start time: 02:42:53 PM ) Total Marks: 1
Which of the following function call is “call by reference” for the following function prototype? int add (int *);
Select correct option:
add(&x);
add(int x);
add(x);
add(*x);
Q#51
Question # 9 of 15 ( Start time: 02:43:26 PM ) Total Marks: 1
What is the output of the following code? for (int i=0; i<5; i++) cout << i%2 << " ";
Select correct option:
0 1 2 3 4 5
0 2 4 6 8 10
0 1 0 1 0
1 0 1 0 1
Q#52
Question # 10 of 15 ( Start time: 02:44:10 PM ) Total Marks: 1
+= , *= , /= , etc are called,
Select correct option:
Assignment operators
Logical operator
Compound assignment operator
Unary operator
Q#53
Question # 12 of 15 ( Start time: 02:44:45 PM ) Total Marks: 1
When we call a function, its control
Select correct option:
transfers to its Prototype
transfers to its definition
returns to statement following function call
The compiler stops execution of whole program
Q#54
Question # 13 of 15 ( Start time: 02:45:17 PM ) Total Marks: 1
Function prototype is written,
Select correct option:
Within main function
After the return statement in main
Before the return statement in main
Before call of that function
Q#55
Question # 14 of 15 ( Start time: 02:45:49 PM ) Total Marks: 1
When the logical operator OR (||) combine two expressions exp1 and exp2 then the result will be false only,
Select correct option:
When both exp1 and exp2 are true
When both exp1 and exp2 are false
When exp1 is true and exp2 is false
When exp1 is false and exp2 is true
Q#56
Question # 15 of 15 ( Start time: 02:46:18 PM ) Total Marks: 1
When the if statement consists more than one statement then enclosing these statement in curly braces is,
Select correct option:
Not required
Good programming
Relevant
Must
Q#57
Question # 1 of 15 ( Start time: 02:57:56 PM ) Total Marks: 1
______ statement interrupts the flow of control.
Select correct option:
switch
continue
goto
break
Q#58
Question # 2 of 15 ( Start time: 02:58:26 PM ) Total Marks: 1
When the logical operator AND (&&) combine two expressions exp1 and exp2 then the result will be true only,
Select correct option:
When both exp1 and exp2 are false
When both exp1 and exp2 are true
When exp1 is true and exp2 is false
When exp1 is false and exp2 is true
Q#59
Question # 3 of 15 ( Start time: 02:59:07 PM ) Total Marks: 1
What will be the result of arithmetic expression 5+25/5*5?
Select correct option:
45
6
30
9
Q#60
Question # 4 of 15 ( Start time: 02:59:31 PM ) Total Marks: 1
C++ is a_______________ language.
Select correct option:
High level
Low level
Machine
Fourth Generation
Q#61
Question # 5 of 15 ( Start time: 03:00:58 PM ) Total Marks: 1
____________ transfers the executable code from main memory to hard disk.
Select correct option:
Loader
Debugger
Compiler
Linker
Q#62
Question # 6 of 15 ( Start time: 03:01:30 PM ) Total Marks: 1
When the if statement consists more than one statement then enclosing these statement in curly braces is,
Select correct option:
Not required
Good programming
Relevant
Must
Q#63
Question # 7 of 15 ( Start time: 03:02:05 PM ) Total Marks: 1
_______ Keyword is used to return some value from a function.
Select correct option:
break
return
continue
goto
Q#64
Question # 8 of 15 ( Start time: 03:02:33 PM ) Total Marks: 1
When the logical operator OR (||) combine two expressions exp1 and exp2 then the result will be false only,
Select correct option:
When both exp1 and exp2 are true
When both exp1 and exp2 are false
When exp1 is true and exp2 is false
When exp1 is false and exp2 is true
Q#65
Question # 9 of 15 ( Start time: 03:03:14 PM ) Total Marks: 1
We comment code; as it makes program __________________
Select correct option:
Heavy i.e. more space is needed for executable.
Difficult to compile.
All of these.
Easy to understand.
Q#66
Question # 10 of 15 ( Start time: 03:03:42 PM ) Total Marks: 1
What will be the output of following code segment? for (int i = 2; i<10; i++){ if ( i == 5) continue; cout << i << "," ; }
Select correct option:
2,3,7,8,9
2,3,4,6,7,8,9
2,3,4
4,6,7,8,9
Q#67
Question # 11 of 15 ( Start time: 03:04:24 PM ) Total Marks: 1
The data type before a function name represents its,
Select correct option:
Return Type
Function data
Function arguments
Function name
Q#68
Question # 12 of 15 ( Start time: 03:04:54 PM ) Total Marks: 1
Which of the following function call is “call by reference” for the following function prototype? int add (int *);
Select correct option:
add(&x);
add(int x);
add(x);
add(*x);
Q#69
Question # 14 of 15 ( Start time: 03:05:45 PM ) Total Marks: 1
When we call a function, its control
Select correct option:
transfers to its Prototype
transfers to its definition
returns to statement following function call
The compiler stops execution of whole program
Q#70
Question # 15 of 15 ( Start time: 03:06:16 PM ) Total Marks: 1
What will be the output of the following while loop? int counter = 0 ; while(counter < 15) cout << counter << “ ”; counter++;
Select correct option:
1 2 3 4
1 2 3 4 5
Compile time error
Infinite loop
Q#71
Question # 2 of 15 ( Start time: 03:39:33 PM ) Total Marks: 1
C is widely known as development language of _____ operating system.
Select correct option:
Linux
Unix
Windows
Mac OS
Q#72
Question # 3 of 15 ( Start time: 03:40:54 PM ) Total Marks: 1
The data type before a function name represents its,
Select correct option:
Return Type
Function data
Function arguments
Function name
Q#73
Question # 4 of 15 ( Start time: 03:41:27 PM ) Total Marks: 1
In order to get the right most digit of a number, we divide this number by 10 and take its
Select correct option:
Remainder
Quotient
Divisor
None of the given options
Q#74
Question # 5 of 15 ( Start time: 03:41:58 PM ) Total Marks: 1
What is the output of the following code? for (int i = 5; i <= 5; i++) { cout << i++; cout << i; }
Select correct option:
56
65
55
13
Q#75
Question # 6 of 15 ( Start time: 03:42:38 PM ) Total Marks: 1
When the logical operator AND (&&) combine two expressions exp1 and exp2 then the result will be true only,
Select correct option:
When both exp1 and exp2 are false
When both exp1 and exp2 are true
When exp1 is true and exp2 is false
When exp1 is false and exp2 is true
Q#76
Question # 7 of 15 ( Start time: 03:43:12 PM ) Total Marks: 1
According to c++ norms; the first character of a variable name must be an alphabet or
Select correct option:
Underscore
Special character
Digit
None of the given options
Q#77
Question # 8 of 15 ( Start time: 03:43:44 PM ) Total Marks: 1
+= , *= , /= , etc are called,
Select correct option:
Assignment operators
Logical operator
Compound assignment operator
Unary operator
Q#78
Quiz Start Time: 03:38 PM Time Left 88
sec(s)
Question # 9 of 15 ( Start time: 03:44:14 PM ) Total Marks: 1
_______ Keyword is used to return some value from a function.
Select correct option:
break
return
continue
goto
Q#79
Quiz Start Time: 03:38 PM Time Left 88
sec(s)
Question # 10 of 15 ( Start time: 03:44:46 PM ) Total Marks: 1
If int sum = 54; Then the value of the following statement is sum = sum - 3 ;
Select correct option:
52
50
51
57
Q#80
Question # 11 of 15 ( Start time: 03:45:10 PM ) Total Marks: 1
______ statement interrupts the flow of control.
Select correct option:
switch
continue
goto
break
Q#81
Question # 12 of 15 ( Start time: 03:45:38 PM ) Total Marks: 1
_________ are used to compile the code.
Select correct option:
Editors
Debugger
Linker
Compiler
Q#82
Question # 13 of 15 ( Start time: 03:46:02 PM ) Total Marks: 1
In C/C++; by default arguments are passed by _____ to a function.
Select correct option:
Reference
Value
Type
Data
Q#83
Question # 14 of 15 ( Start time: 03:46:36 PM ) Total Marks: 1
While loop executes at least,
Select correct option:
Zero time
One time
N Time
None of these
Q#84
Question # 15 of 15 ( Start time: 03:47:10 PM ) Total Marks: 1
C++ is a_______________ language.
Select correct option:
High level
Low level
Machine
Fourth Generation
There are currently 1 users browsing this thread. (0 members and 1 guests)