Login


Lost your password?

Don't have an account ?
Register (It's FREE) ×
  


Shop
CPP All : Tokens, Keyword and Identifiers
Concept Notes and Resources

Various tokens or basic building blocks defined in c++ are explained here.

Concept of keywords in a language and keywords as per c++11 standard are explained here.

Identifiers can be names given by the user/programmer or names other than keywords in the library files.

Some rules related to C++ identifiers are as follows: Can be arbitrarily long alpha numeric (letters and numbers) sequence. The first character must be a letter. As an exception _ (underscore) is considered as a letter. Upper and lower case letters considered different All characters in the name are considered significant. C++ Keywords can not […]

Concept Learning Code Sheets
Using some popular escape sequence characters. #2288 

Using some escape sequences in c++ for common tasks.

Solved Problems
Finding Identifiers and Literals #1778 

Write down identifiers and literals in the code given here.

 

int main()
{
  int a=5;
  cout<<"a="<<a<<endl;
  float b=3.5;
  double c=4.56;
  cout<<"b="<<b<<endl;
  cout<<"c="<<c<<endl;
  cout<<"Sum of a+b+c = "<<a+b+c<<endl;
  return 0;
}
Write down identifiers and literals in the code given here.  
int main()
{
 ...		
Checking for valid Identifiers #1782 

Find the valid and invalid identifiers in the following piece of code segment.

int argument=123;
char c#='#';
float amar_is_a_beautiful_boy=3.45;
int taj mahal=1;
int break=0;
string file.ext="myfile.txt";
cout<<argument<<endl;
cout<<c#<<" "<<amar_is_a_beautiful_boy<<" "<<taj mahal<<endl;
cout<<break<<file.ext<<endl;

Find the valid and invalid identifiers in the following piece of code segment.
int a ...		
Print formatting using \t and \n escape sequences #2303 

Write the following text using the cout chain using \t and \n escape sequences.

Subjects        Marks
---------------------
Computers       100
Physics         95
Mathematics     98
Write the following text using the cout chain using \t and \n escape sequences.
Sub ...		
Finding Errors – Escape Sequences #3164 

There are some errors in the following code due which the expected output as given below will not come
“C++” is tricky & powerful

 

There are some errors in the following code due which the expected output as given below w ...
Identifying keywords and user defined identifiers #3990 

Write the type of C++ tokens (keywords and user defined identifiers) from the following:
(i) else (ii) Long (iii) 4Queue (iv) _count

Write the type of C++ tokens (keywords and user defined identifiers) from the following: ...
Token Identification #4431 

Identify the type of token (literal, identifier, keyword, punctuator etc.) in the following
1) Case    2) { }    3) break      4) O17

Identify the type of token (literal, identifier, keyword, punctuator etc.) in the followin ...
Identifier or keyword writing #5297 

Write the type of C++ tokens (keywords and user defined identifiers) from the following:

(i) new
(ii) While
(iii) case
(iv) Num_2

Write the type of C++ tokens (keywords and user defined identifiers) from the following: ...
Correct Identifiers #5343 

Only 4 out of 10 names written below can be used as variable names or identifiers by a C++ programmer, can you name them.

4PIN
PIN_$
Identifier
PIN_4
P.I.N.
numb_er
Srl.No.
_SIMPLE_INTEREST
FOUR@IDENTIIFERS
FOUR NAMES

Only 4 out of 10 names written below can be used as variable names or identifiers by a C+ ...
Finding incorrect identifiers #5600 

Out of the following, find those identifiers, which can not be used for naming Variable, Constants or Functions in a C++ program:

Total*Tax, double, Case, My Name,
NeW, switch, Column31, _Amount

Out of the following, find those identifiers, which can not be used for naming Variable, C ...
01A #5825 

Find the correct identifiers out of the following, which can be used for naming variable, constants or functions in a C++ program: While, for, Float, new, 2ndName, A%B, Amount2, _Counter

Find the correct identifiers out of the following, which can be used for naming variable, ...
01A-2015 #5928 

Find the correct identifiers out of the following, which can be used for naming Variable, Constants or Functions in a C++ program:
For, while, INT, NeW, delete, 1stName, Add+Subtract, name1

Find the correct identifiers out of the following, which can be used for naming Variable, ...
01A-2017 #6004 

Write the type of C++ tokens (keywords and user defined identifiers) from the
following:
(i) For
(ii) delete
(iii) default
(iv) Value

Write the type of C++ tokens (keywords and user defined identifiers) from the following: ...
01A-2016 #6074 

Out of the following, find those identifiers, which cannot be used for naming Variable, Constants or Functions in a C++ program:

_Cost, Price*Qty, float, Switch,
Address One, Delete, Number12, do

Out of the following, find those identifiers, which cannot be used for naming Variable, Co ...
01A-2019S #6942 

Write the names of any four fundamental data types of C++

Write the names of any four fundamental data types of C++ ...
Exam Questions
CBSE12A-2017-01A  Identifier or keyword writing #5297 

Write the type of C++ tokens (keywords and user defined identifiers) from the following:

(i) new
(ii) While
(iii) case
(iv) Num_2

Write the type of C++ tokens (keywords and user defined identifiers) from the following: ...
CBSE12A-2016-01A  Finding incorrect identifiers #5600 

Out of the following, find those identifiers, which can not be used for naming Variable, Constants or Functions in a C++ program:

Total*Tax, double, Case, My Name,
NeW, switch, Column31, _Amount

Out of the following, find those identifiers, which can not be used for naming Variable, C ...
CBSE12D-2015-01A  01A #5825 

Find the correct identifiers out of the following, which can be used for naming variable, constants or functions in a C++ program: While, for, Float, new, 2ndName, A%B, Amount2, _Counter

Find the correct identifiers out of the following, which can be used for naming variable, ...
CBSE12A-2015-01A  01A-2015 #5928 

Find the correct identifiers out of the following, which can be used for naming Variable, Constants or Functions in a C++ program:
For, while, INT, NeW, delete, 1stName, Add+Subtract, name1

Find the correct identifiers out of the following, which can be used for naming Variable, ...
CBSE12D-2017-01A  01A-2017 #6004 

Write the type of C++ tokens (keywords and user defined identifiers) from the
following:
(i) For
(ii) delete
(iii) default
(iv) Value

Write the type of C++ tokens (keywords and user defined identifiers) from the following: ...
CBSE12D-2016-01A  01A-2016 #6074 

Out of the following, find those identifiers, which cannot be used for naming Variable, Constants or Functions in a C++ program:

_Cost, Price*Qty, float, Switch,
Address One, Delete, Number12, do

Out of the following, find those identifiers, which cannot be used for naming Variable, Co ...
CBSE12A-2019-A01A  01A-2019S #6942 

Write the names of any four fundamental data types of C++

Write the names of any four fundamental data types of C++ ...
Quizzes

Concept Notes:4  Code Sheets:1  Solved Problems:14  Exam Questions:8  Quizzes:1
Back