Quiz on C++ for Technology Lovers
C++ is a very powerful programming language. It gives the user a lot of controls about how they can use the computer resources along with its exceptional speed and ability to surpass all the other languages.
With the help of this quiz, we will enable you to learn this amazing language more quickly and easily. Let us begin.
Quiz Summary
0 of 20 questions completed
Questions:
Information
You have already completed the quiz before. Hence you can not start it again.
Quiz is loading…
You must sign in or sign up to start the quiz.
You must first complete the following:
Results
Results
0 of 20 questions answered correctly
Your time:
Time has elapsed
You have reached 0 of 0 point(s), (0)
Earned Point(s): 0 of 0, (0)
0 Essay(s) Pending (Possible Point(s): 0)
Categories
- Not categorized 0%
- 1
- 2
- 3
- 4
- 5
- 6
- 7
- 8
- 9
- 10
- 11
- 12
- 13
- 14
- 15
- 16
- 17
- 18
- 19
- 20
- Current
- Review / Skip
- Answered
- Correct
- Incorrect
-
Question 1 of 20
1. Question
Which storage class specifier can be used only on a class data member for making it modifiable even though the member is part of the object declared as constant?
CorrectIncorrect -
Question 2 of 20
2. Question
Which function accepts one double integer as an argument and returns a double integer which is the value of sin(x°)?
CorrectIncorrect -
Question 3 of 20
3. Question
The _______ function will only return a pseudo-random number.
CorrectIncorrect -
Question 4 of 20
4. Question
_______ signal is an invalid access to storage.
CorrectIncorrect -
Question 5 of 20
5. Question
What will be the output of the following code?
#include
using namespace std;
int main()
{
int arr[] = {1, 2, 3, 4};
int *a = (arr + 1);
cout << *a;
return 0;
}CorrectIncorrect -
Question 6 of 20
6. Question
A function declaration tells the compiler about a function’s –
CorrectIncorrect -
Question 7 of 20
7. Question
This method copies the address of an argument into the formal parameter.
CorrectIncorrect -
Question 8 of 20
8. Question
A MIME string that defines the format of the file being returned is –
CorrectIncorrect -
Question 9 of 20
9. Question
The signal function –
CorrectIncorrect -
Question 10 of 20
10. Question
The existing class in C++ is called ______ class and the new class is called _______ class.
CorrectIncorrect -
Question 11 of 20
11. Question
We can avoid the prepending of namespaces with the ________ directive.
CorrectIncorrect -
Question 12 of 20
12. Question
______ is an opaque and unique identifier for the new thread returned by the subroutine.
CorrectIncorrect -
Question 13 of 20
13. Question
Which subroutine blocks the calling thread until the specified thread terminates?
CorrectIncorrect -
Question 14 of 20
14. Question
Output of the following code will be –
#include
#include
using namespace std;
int main()
{
cout << setprecision(19);
double abc = 0.2;
cout << abc << endl;
return 0;
}CorrectIncorrect -
Question 15 of 20
15. Question
This is the unused memory of the program and it can be used to allocate the memory dynamically when the program runs.
CorrectIncorrect -
Question 16 of 20
16. Question
This data type represents the input file stream and then is used to read all the information from files.
CorrectIncorrect -
Question 17 of 20
17. Question
A predefined macro in C++ is
CorrectIncorrect -
Question 18 of 20
18. Question
“||” operator is called as
CorrectIncorrect -
Question 19 of 20
19. Question
Which operator causes a replacement-text token to be converted to a string surrounded by quotes.
CorrectIncorrect -
Question 20 of 20
20. Question
The general form of a template function definition is –
CorrectIncorrect
Summary
If you are interested in developing mainstream games, then C++ is the language you need to use. A lot of mobile games were built with this language since it is a free, cross-platform, and open-source language.
This cross-platform language is useful for creating high-performance applications. It is found in a lot of operating systems, embedded systems, and graphical user interfaces nowadays.
Besides, big companies such as Google, Facebook, etc need experienced C++ developers and programmers to help them optimize the work on their products or their apps.
We hope this quiz helped you in clearing your basic concepts and understanding of C++.