NEW
Font size
WorksheetsBrightChamps Technical Round - C++ language
Total questions: 15
Worksheet time: 8mins
What is the output of 23%7
2
3
3.28
21
C++ is a _______ programming language
Structured Query Language
Scripting language
Procedural
Object Oriented
Any mathematical operation between an integer and float will always
return an integer
return a string
return a float
will give an error
Which of the following is not an OOPS concept?
Encapsulation
Pointers
Inheritance
Polymorphism
Which of the following is not an access specifier
public
private
protected
main
Which class cannot create its instance?
Parent Class
Nested Class
Derived Class
Abstract Class
The operator == is a
Relational operator
Bitwise operator
Mathematical operator
Logical operator
What is the purpose of the continue statement ?
to continue the execution of a loop
to jump to another statement in the program and continue from here
to skip the iteration of the loop
exit and return to the main function
Which definition best defines the concept of abstraction?
Showing the important data
Encapsulating the data
Hides the important data
Hides the implementation and showing only the features
//What is the value of a in below program?
int main()
{
int a, b=45;
a = 90/b;
return 0;
}
90
2
45
0
int arr[] = { 10, 20, 30, 40 }
cout << arr[2]
What will be the output of the above code ?
10
20
30
error
Exception handling in C++ is used to handle
Runtime Errors
Logical Errors
Syntax Errors
Compilation error
What are mandatory parts in the function declaration?
return type, function name
return type, function name, parameters
parameters, function name
parameters, arguments
Which of the following is a derived data type ?
Structure Data Type
Boolean Data Type
Integer Data Type
Character Data Type
Which one of the following is a keyword in C++?
Switch
Key
cout
scanf
