Top 200+ C++ Interview Questions and Answers - 2

Question: 6

What are numeric constants?

Numeric constant consists of only numbers whole numbers or decimal numbers. Integer, floating- point are numeric constants.

Question: 7

What is Integer constant?

Integer Constant must have atleast one digit and must not contain any fractional part.

May be prefixed with a + or – sign.

Question: 8

What is meant by Identifires?

Identifiers are also called as variables.

Variables are memory boxes that hold values or constants.

A variable name must begin with an alphabet or underscore followed by alphabets or numbers.

Question: 9

What do you mean by the term TOKEN in C++?

The basic types are collectively called as TOKENS. The token is the smallest individual unit in a program.

Question: 10

What is the classification of tokens?

Tokens are classified as keywords, identifiers, constants, operators and punctuators.

Related Questions