Advanced C++ multiple choice question

By Prof. Fazal Rehman Shamil
Last modified on April 24th, 2021

Advanced C++ multiple choice questions

1: Select one of the following is not valid for the variable name…

A: -abc


C: _abc

D: Abc

Answer - Click Here:

2: ……. is the keyword of C++

A: include

B: main

C: main

D: define

Answer - Click Here:

3: In the program the unique name are used that called…

A: tokens

B: variables

C: keywords

D: identifiers

Answer - Click Here:

4: Actuall documents are prepared for the procss…

A: coding

B: running

C: executing

D: testing

Answer - Click Here:

5: which symbols are used for making decision in flowchart….

A: sequence

B: selecion

C: iteration

D: program

Answer - Click Here:

6: C++ introduced in…

A: 1998


C: 1931

D: 1934

Answer - Click Here:

7: errors accur in the program are caleed…

A: logic

B: syntax

C: bugs

D: all of these

Answer - Click Here:

8: In the program the word Main means…

A: keywords

B: use defined identifier

C: standarad identifier

D: none of these

Answer - Click Here:

9: Which of the following is true for the used of escape sequence…

A: independently enclosed in single quotes

B: inside string constant

C: independently enclosed in double quotes

D: all of these

Answer - Click Here:

10: Which of the following value a function return…

A: only one

B: more than one

C: according to statement

D: double

Answer - Click Here:

11: …….. operator is used to allocate the memory of an object…

A: delete

B: *

C: $

D: new

Answer - Click Here:

12: Function that is not used for string is…

A: strcspn ()

B: strspn ()

C: strstr ()

D: strnicmp ()

Answer - Click Here:

Prof.Fazal Rehman Shamil (Available for Professional Discussions)
1. Message on Facebook page for discussions,
2. Video lectures on Youtube
3. Email is only for Advertisement/business enquiries.