C++ Tokens and Keywords
10 Questions
0 Views

Choose a study mode

Play Quiz
Study Flashcards
Spaced Repetition
Chat to lesson

Podcast

Play an AI-generated podcast conversation about this lesson

Questions and Answers

What are tokens in C++?

Tokens are the smallest building block or smallest unit of a C++ program.

Why can't keywords be used as variable names in C++?

Keywords are pre-defined or reserved words in a programming language and cannot be redefined for other purposes.

How many keywords are supported in the C language?

C language supports 32 keywords.

How many additional keywords are present in C++ compared to C?

<p>In C++, there are 31 additional keywords compared to C.</p> Signup and view all the answers

Can keywords be redefined in C++?

<p>No, keywords cannot be redefined in C++.</p> Signup and view all the answers

What are identifiers used for in C++?

<p>Identifiers are used as the general terminology for the naming of variables, functions, and arrays.</p> Signup and view all the answers

Can identifiers in C++ start with a digit?

<p>No, identifiers must begin with a letter or an underscore (_).</p> Signup and view all the answers

What are constants in C++?

<p>Constants are values that cannot be modified during the program execution.</p> Signup and view all the answers

What are the types of constants in C++?

<ol> <li>Integer constants, 2. Real or Floating-point constants, 3. Octal &amp; Hexadecimal constants, 4. Character constants, 5. String constants.</li> </ol> Signup and view all the answers

How are strings declared in C++?

<p>Strings are declared using double quotes in C++.</p> Signup and view all the answers

More Like This

CRC CISP 400 C++ Quiz 8
2 questions
C++ Chapter 3 Flashcards
26 questions

C++ Chapter 3 Flashcards

WellConnectedComputerArt avatar
WellConnectedComputerArt
C++ Fundamentals Test Bank Flashcards
9 questions
Use Quizgecko on...
Browser
Browser