C++: Test 1 - Online Test

Test Difficulty Level: Medium

Syllabus of Test

C++: Questions based on C++.

Sample Question from this online test:

Question: Which of the following converts an integer "value" to its ASCII equivalent ?

Option A: atoi(value)

Option B: cout << value

Option C: (char) value

Option D: char (value)

To answer, click the "Start This Test" button below.

Start this Test


gajendra kumar jena on 2009-02-12 21:57:37 wrote,

Questions are not correct .Some questions are having insufficient information

Rajesh Kumar Gupta on 2009-02-13 00:56:36 wrote,

@Gajendra, There may be some problems in the test. Thnkx for giving the suggestion.

Asad Jaan on 2009-03-17 11:51:06 wrote,


Piyush Patel on 2009-08-02 20:00:22 wrote,

incorrect questions n insufiicient xplanation

Varun Mishra on 2009-08-24 13:51:45 wrote,

hello boss...so many wrong answer.....!!!
what to do...!!
plz dont put wrong ques and answer here....!!

anshul shrivastava on 2009-11-15 22:36:06 wrote,

Question's are not correctively defined...

ARKAJYOTI NAG on 2010-08-15 10:53:49 wrote,

questions are not correct.can u use atoi in c++

Poonam Nasirbadiya on 2010-08-28 18:27:10 wrote,

wrong answers for some questions are provided

rinku panigrahi on 2010-10-30 16:00:11 wrote,

some qestion are not correct.

pooja garg on 2010-11-11 14:38:56 wrote,

pls check some questions have wrong answers n explanation.....

ajay awasthi on 2010-11-13 05:18:56 wrote,

please update question no 5,6 and 8.answer of these question are A,D,B respectively.

Sukhil S S on 2011-04-23 10:39:20 wrote,

Too many wrong questions???

saqib ali on 2011-04-28 06:52:17 wrote,

some questions r wrong bt not all

manish patidar on 2011-05-10 18:37:08 wrote,


govinda nahak on 2011-06-20 04:27:58 wrote,

I think d ans will b 0 1 01....
What is the output of the following code?
for (int i=0; i<10; i++); cout << i%2 << " "; }

govinda nahak on 2011-06-20 04:28:01 wrote,

I think d ans will b 0 1 01....
What is the output of the following code?
for (int i=0; i<10; i++); cout << i%2 << " "; }

rogie bone on 2011-06-20 16:19:14 wrote,

Too many wrong answers question no. 5,6,8 to mention few> Kindly update the test and correct answers too

sharwan saini on 2011-06-28 19:02:42 wrote,

please site developer take this problem seriously for site enhancement..

tushar joshi on 2011-07-09 10:42:25 wrote,

little difficult

mani gandan on 2011-07-19 05:19:04 wrote,


sagar kapadiya on 2011-07-23 11:24:48 wrote,

option of questions are not a correct.please check it.....

bennuri sarat on 2011-08-06 10:00:54 wrote,

Questions seems to be nicely placed,But With some wrong answers and at some questions information is insuffiient.

bennuri sarat on 2011-08-06 10:01:16 wrote,

Questions seems to be nicely placed,But With some wrong answers and at some questions information is insuffiient.

thr reddy on 2011-08-08 08:44:36 wrote,


Nikhil Rokde on 2011-08-10 09:42:10 wrote,

insufficient info.........................
what to do???????

Ajay Kumar on 2011-08-10 17:43:16 wrote,

For Q no 8 and Qno. 6 the answer are wrong

Nitesh Kumar on 2011-08-28 11:20:21 wrote,

good :-)

fenam m on 2011-08-29 09:21:57 wrote,

three questions are incorrectly answered..as we hav executed nd cheked it....

subhojit pramanik on 2011-09-01 06:10:35 wrote,

some question's answers are wrong ...and few questions have insufficient information

Nila Kamal Nayak on 2011-09-17 14:16:29 wrote,

either question no 3,5,6,9,14 or answers are wrong
please rectify it

Nila Kamal Nayak on 2011-09-17 14:16:31 wrote,

either question no 3,5,6,9,14 or answers are wrong
please rectify it

satchit nisanka on 2011-09-25 21:42:51 wrote,

guys pls check n upload horrible question with horrible answer by the way ders also "a string keyword to declare a string" under c99..so scratch up wen you upload next time

satchit nisanka on 2011-09-25 21:43:46 wrote,

n yes we can use atoi in c++

sachin pawar on 2011-09-29 06:30:33 wrote,

sir there are some questions which are wrong so please update these questions

shweta bhattad on 2011-11-04 11:53:36 wrote,

Plz provide the correct ans for few que we need it....!!

Madhura Shree on 2012-02-06 09:47:50 wrote,

Some questions and answers are not clear

sonam singhal on 2012-02-22 17:51:23 wrote,

answers of many question are wrong

Yellaiah B on 2012-03-12 10:00:34 wrote,

For the questions 3,5,6,8 wrong answers.. also 18 th question has two answers ....

Rajeev kumar on 2012-04-21 05:09:29 wrote,

there was some mistake in question and also in its answer so please check them

Amarjyoti Deka on 2012-05-11 10:14:20 wrote,

there are some questions which have more than one options so update it for not confusing the people.....

manish sharma on 2012-06-13 04:23:54 wrote,

Please don't write the compiler dependent code as it may create conflicts

Pragati Pandey on 2012-06-20 19:15:39 wrote,


raman kumar on 2012-06-23 19:15:56 wrote,

it iz very imp 4 ur life....
carry on...

rahul gupta on 2012-07-05 04:07:41 wrote,

very easy and hard paper

sabiya kazi on 2012-07-12 07:37:03 wrote,

Please check answers of your queshions yourself......
Q.1 atoi converts char to integer alphanumeric to integer....
Q.5 value must be 0 then only loop will be finite...
if value is 1 then in 3rd iteration loop will break....
Q.6 for loop starts from 0 to 9, so o/p will 0 1 0 1...1
Q.8 correct answer is 13 not 22...
Q.9 #include defines function iostream.h..????? Check properly..It is totally wrong statement..
Q.14 All options are function prototypes and we are asked to select definition.....
Please give attention to your tests.. it will give wrong info about c++ ...........

ruby sathiaseelan on 2012-08-01 19:46:31 wrote,

please check the ans there are lot of mistakes do correct it

ganesh auti on 2012-08-05 12:09:58 wrote,

some answers are wrong.

dgd dgd on 2012-08-21 06:39:37 wrote,


sushil patel on 2012-09-14 18:02:26 wrote,

I like it and gain a lot of knowledge.

logu A on 2012-10-22 02:43:58 wrote,

s....... its very dificlt..........

janet Janet on 2013-01-13 15:58:21 wrote,

Additionally to what others said before me: It's still not everything corrected: Question 3: there is no "Hello World!" to see! Question 6: there is a "}" too much! Answer to 8: there are "{" and "}" missing: for (int a = 1; a <= 1; a++){ cout << a++; cout << a;} Question 13: Answer A counts up to 6. Question 14: It not only needs the statement "#include", but the statement "#include <iostream>"

satyam yadav on 2013-03-19 09:20:00 wrote,

i have confusion in ques 5 & 6. can any body help me

Raji S on 2013-03-30 11:44:09 wrote,


DEVI DILEEP on 2013-06-03 05:57:15 wrote,

pls be very sure when you post questions.In the end no1 should be misguided

tarang jindal on 2013-06-30 05:26:58 wrote,

ques -6th answer is '1' which is not in options.
also ques - 8th ans is "13", which is not available in options.
answer of ques 5th should be option A

Dipak Dorkar on 2013-07-31 10:08:36 wrote,

plz..........correct the answer of the Q no..6- and Q. 8
Q 6 it is C option.....ok by

jack liu on 2015-06-25 02:04:05 wrote,

Thank you for your test, but please check your questions correctly.