C++ MCQs with answers Page - 140

Here, you will find a collection of MCQ questions on C++. Go through these questions to enhance your preparation for upcoming examinations and interviews.

To check the correct answer, simply click the View Answer button provided for each question.

Have your own questions to contribute? Click the button below to share your MCQs with others!

+ Add Question

A

Admin • 833.24K Points
Coach

Q. ‐‐‐‐‐‐ are the smallest or the atomic elements of a language.

  • (A) Identifiers
  • (B) Literals
  • (C) Keywords
  • (D) Tokens

A

Admin • 833.24K Points
Coach

Q. Blanks, tabs, newlines, form feeds and comments are collectively called ‐‐‐‐‐‐‐

  • (A) Blank fields
  • (B) White space
  • (C) Null values
  • (D) Literals

A

Admin • 833.24K Points
Coach

Q. Find the false statement from the following

  • (A) An identifier in C++ is defined as an unlimited sequence of characters.
  • (B) The first character must be an alphabet followed by digits or underscore or alphabets.
  • (C) Identifiers are not case sensitive.
  • (D) You can use both uppercase and lower case alphabets in the same identifier.

A

Admin • 833.24K Points
Coach

Q. The instructions, which are used in programming, are called ‐‐‐‐‐‐‐‐

  • (A) Data type
  • (B) Keywords
  • (C) Objects
  • (D) Identifiers

A

Admin • 833.24K Points
Coach

Q. ‐‐‐‐‐ are the reserved words of the programming language.

  • (A) Tokens
  • (B) Literals
  • (C) Separators
  • (D) Keywords

A

Admin • 833.24K Points
Coach

Q. ‐‐‐‐‐ refer to the names of variables, functions, arrays, classes, etc.

  • (A) Identifiers
  • (B) Operators
  • (C) Punctuators
  • (D) Manipulators

A

Admin • 833.24K Points
Coach

Q. Write the range of value of the data type ‘char’

  • (A) 0 to 128
  • (B) 0 to 255
  • (C) ‐255 to 255
  • (D) ‐128 to 127

A

Admin • 833.24K Points
Coach

Q. Write the range of value of the data type ‘int’

  • (A) ‐32,768 to 32,767
  • (B) 0 to 65535
  • (C) 0 to 65536
  • (D) 0 to 32768

A

Admin • 833.24K Points
Coach

Q. The standard ASCII characters have numeric values from ‐‐‐ to ‐‐‐‐

  • (A) 0 to 128
  • (B) 0 to 127
  • (C) 0 to 255
  • (D) 0 to 256

A

Admin • 833.24K Points
Coach

Q. Identify the data type of the value ‐2567113254L

  • (A) Long integer
  • (B) Integer
  • (C) Short integer
  • (D) Big integer

Add MCQ in this Category

If you want to share an MCQ question in this category, it's a great idea! It will be helpful for many other students using this website.

Share Your MCQ