NEW
Font size
WorksheetsObject Oriented BTech
Total questions: 15
Worksheet time: 8mins
C++ was introduced by
Bjarne Stroustrup
Hellen Keller
Linus Torvalds
Bill Gates
Which of these is NOT a C++ compiler
Visual Studio
Code Blocks
Eclipse
Webshots
Identify the line containing Error:
2
3
4
5
What is the output for following code, if x = 5?
cout << x * 3 + 4;
14
19
35
15
How many decimal digits can be stored by declaring FLOAT?
8
2
7
9
What is the output for : char x = 98 ; cout << x; ?
98
Data type mismatch error
B
'9'
Which one of these is a Comparison operator?
>
++
?
&&
Which is the correct method to join the two strings A and B?
B.append(A)
A.append(B)
append(A,B)
AB.append( )
Which function is used to find the total no. of characters of String?
len
length
totnum
size
The functions used to find a root of a number:
root
numrt
sqrt
sqroot
The example : y = (x>20)?15:18 is called
ternary operator
conditional operator
right hand logic
looping
Is it possible to have multiple data types in C++ arrays?
Yes
No
What is the size of array declared as - string cars[ ] = {"Audi", "BMW", "Honda"}
3
12
6
8
The mathematical functions are present in :
Math
CMath
func
arith
The condition (x > y) is called as:
for loop
initialization
boolean expression
equation
