Login


Lost your password?

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


Shop
CPP All : Tokens Keyword and Identifiers
Concept Notes and Resources
Concept Learning Code Sheets

Using some popular escape sequence characters. #2288

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

Exam Paper Problems

Identifying keywords and user defined identifiers #3990

( As In Exam - CBSE12A-2018 )

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

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

Identifier or keyword writing #5297

( As In Exam - CBSE12A-2017 )

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

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

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

Finding incorrect identifiers #5600

( As In Exam - CBSE12A-2016 )

Out of the following, find those identifiers, which can not be used for namin

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

01A #5825

( As In Exam - CBSE12D-2015 )

Find the correct identifiers out of the following, which can be used for nam

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

01A-2015 #5928

( As In Exam - CBSE12A-2015 )

Find the correct identifiers out of the following, which can be used for nam

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

01A-2017 #6004

( As In Exam - CBSE12D-2017 )

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

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

01A-2016 #6074

( As In Exam - CBSE12D-2016 )

Out of the following, find those identifiers, which cannot be used for naming

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

01A-2019S #6942

( As In Exam - CBSE12A-2019 )

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

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

Solved Problems

Finding Identifiers and Literals #1778

Write down identifiers and literals in the code given here.

 

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;
}

Checking for valid Identifiers #1782

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

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;

Print formatting using \t and \n escape sequences #2303

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

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

Subjects        Marks
---------------------
Computers       100
Physics         95
Mathematics     98

Finding Errors – Escape Sequences #3164

There are some errors in the following code due which the expected output as

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

 

Token Identification #4431

Identify the type of token (literal, identifier, keyword, punctuator etc.) in

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

Correct Identifiers #5343

Only 4 out of 10 names written below can be used as variable names or identi

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

Quizzes

Concept Notes:4  Code Sheets:1  Exam Paper Problems:8  Solved Problems:6  Quizzes:1
×
Introductory Sessions Beginning to Program Tokens Keyword and Identifiers Data Types Variables and Constants Operators Simple User Input Building Expressions and Formulas Simple Real World Problems Simple If and If Else Multiple-Nested-Ladder of If Else Switch case selection Simple Loops Tricks in Loops - break continue scope Loop Applications - Handling numerals Series printing loops Nested Loops Pattern printing loops Number Varieties and Crunches String Handling (Null Terminated) Strings - string class type Functions (Built-in) Functions - user defined Functions Reference Passing/Returning Arrays Concepts and 1-D Arrays Array Data Management Two dimensional arrays and Matrices Structures Basics Structures passing/returning 2D Array Memory Addressing Display Using IO Manipulation Display Using C Formatting Tricks User Defined Data Types Enumerated Types Preprocessor Directives And Macros Exception Handling Programming Paradigms and OOPs Advantages Abstraction and Encapsulation Polymorphism Inheritance Function Overloading Concepts Function Overloading Varieties Function Overloading Special Cases Defining Classes Creating and Using Class Objects Class Members Accessibility Class Function Types Inline Functions Constant Functions Nesting of Functions Class Members Scope Resolution Static Members in a Class Array of Objects Constructor Concepts Default Constructor Parameterized Constructor Copy Constructor Constructor Overloading Destructors Inheritance Fundamentals Public Derivations Private and Protected Derivations Multiple Inheritance Multi-Level Inheritance Class Nesting Data File Concepts Handling Text Files Handling Binary Files Pointer Concepts Pointer and Arrays Pointers and Functions Object Pointers This Pointer Linked Lists Stacks Queues


Back