C++ Basics online Test

What is the only function all C++ programs must contain?


What punctuation is used to signal the beginning and end of code blocks?


Which of the following is not a correct variable type?


Which of the following is the correct operator to compare two variables?


Which of the following is the boolen operator for logical-and?


Consider that 1 is true and 0 is false. Evaluate !(1 && !( 0 || 1 )).


What is the final value of x when the code int x; for (x=0; x<10; x++) { } is run?


How many times is a do while loop guaranteed to loop?


Which is not a proper prototype?


What is the type of the function with prototype "int func(char x, float v, double t);"


Which of the following is a valid function call (assuming the function exists)?


Which of the following is a complete function?














Description:

Basic concepts of the C++ language.

Comments
Eng.Ahmed El-Sayed
By: Eng.Ahmed El-Sayed
919 days 19 hours 46 minutes ago

thanks my dear

puran nagda
By: puran nagda
915 days 9 hours 59 minutes ago

thanks............

AJAY KUMAR GUPTA
By: AJAY KUMAR GUPTA
915 days 7 hours 47 minutes ago

thanks

Zahid
By: Zahid
889 days 3 minutes ago

thnx

Pramod Rawat
By: Pramod Rawat
886 days 8 hours 5 minutes ago

very very thanx ..

mahesh
By: mahesh
886 days 3 hours 42 minutes ago

nice test .......thank u........

srinadh
By: srinadh
864 days 22 hours 57 minutes ago

thanks mam i got a 11 marks out of 12

Radhey Shayam
By: Radhey Shayam
850 days 13 hours 55 minutes ago

Thanks...

max
By: max
844 days 21 hours 18 minutes ago

for question 7. The answer is 9 not 10 since there is no <= it is only <
test:
for(int x=0; x<10; x )
{
cout< }
you'll have : 0 1 2 3 4 5 6 7 8 9

max
By: Gandharv
836 days 8 hours 5 minutes ago

Answer is 10. How ???
Loop iterate for 9 time condition is true. Increment the value it becomes 10, check the value -> condition is false break from the loop ---> value of x becomes 10.

max
By: prabhakar
813 days 12 hours 38 minutes ago

at last coming out of loop it will increments bcoz i executes lastin the loop

max
By: ahsan
566 days 18 hours 25 minutes ago

exactly the answer is 9

sangeeta
By: sangeeta
825 days 23 hours 1 minutes ago

thanks..i got all coreect..

ferhinaceur
By: ferhinaceur
681 days 22 hours 26 minutes ago

thinks a lot, very helpful :)

Want to learn?

Sign up and browse through relevant courses.

or fill this simple form
Name:
Your Email:
Password:
Country:
Contact no.:


Area code Number
Subjects you are interested in:
Word verification: (Enter the text as shown in image)


Sign Up Already a member? Sign In
I agree to WizIQ's User Agreement & Privacy Policy
7 Members Recommend
54 Followers

Your Facebook Friends on WizIQ

More Tests By Author

Bases de Lenguaje C++
13 Questions | 263 Attempts

Spanish Basics: Colors, Numbers, Family and relatives, Days, Months
18 Questions | 171 Attempts

Connect