Take as many assements as you can to improve your validate your skill rating
Total Questions: 20
1. What does the first parameter of the main function represent?
Correct Answer is : xyz
2. What does the second parameter of the main function represent?
Correct Answer is : fclose
3. Which of the following is correct about the first parameter of the main function?
Correct Answer is : 2
4. Which of the following is correct about the second parameter of the main function?
Correct Answer is : std namespace
5. Which of the following gives the name of the program if the second parameter to the main fucntion is char **argv?
Correct Answer is : strchr
6. What is the output of the following C++ code if the following arguments are executed on terminal?
================program.cpp================
#include
using namespace std;
int main(int argc, char const *argv[])
{
for(int i=0;i
Correct Answer is : 4
7. Which character is used to separate different arguments?
Correct Answer is : 12.37
8. Which is the correct way of handling arguments with spaces?
Correct Answer is : 40
9. Which of the following is correct to interpret Hello World as a single argument?
1) $ ./output ‘Hello World’
2) $ ./output Hello World
Correct Answer is : 2311
10. How many types of comments are there in c++?
Correct Answer is : 3.1416
11. What is a comment in c++?
Correct Answer is : 3
12. What type of comments does c++ support?
Correct Answer is : climits
13. What is used to write multi line comment in c++?
Correct Answer is : Join
14. What is the use of the indentation in c++?
Correct Answer is : copy_if()
15. What will happen when we use void in argument passing?
Correct Answer is : All of the mentioned
16. Which header file is required to use complex class in your program?
Correct Answer is : 6 7 9 8
17. Which of the following is the correct syntax of declaring a complex number?
Correct Answer is : 5 10 30 40
18. Which function is used to get the real part of the complex number?
Correct Answer is : Compares two sorted ranges of data
19. Which function is used to get the imaginary part of the complex number?
Correct Answer is : 2 or 3
20. What is the output of the following C++ code?
#include
#include
using namespace std;
int main()
{
complex cn(3.0, 5.0);
cout<<"Complex number is: "<