Chapter 1: Basic Elements Of C++

Réussis tes devoirs et examens dès maintenant avec Quizwiz!

What does a C++ identifier consist of?

A C++ identifier consists of letters, digits, and underscores, and must begin with a letter or underscore

What is a C++ Program?

A C++ program is a collection of functions

What does a Compiler skip?

The Compiler skips comments.

What are the arithmetic operators in C++?

The arithmetic operators in C++ are addition, subtraction, multiplication, division, and modulus

What is a collating sequence?

The collating sequence of a character is its preset number in the character data set.

What does a single- line comment start with?

A single-line comment starts with the pair of symbols// anywhere in the line.

What do reserved words consist of?

All reserved words in C++ consist of lower case letters

What can not be used as identifiers in a program ?

Reserved words cannot be used as identifiers in a program.

How are arithmetic expressions evaluated?

Arithmetic expressions are evaluated using the precedence rules and the associativity of the arithmetic operators.

What is a function in s C++ program called?

Every C++ program has a function called a main

<< what does this mean I'm C++

In C++, << is called the stream insertion operator.

What are names of things in C++

In C++, identifiers are names of things

What does endl position?

In an output statement, endl positions the insertion point at the beginning of the next line on an output

What are multiple line comments enclosed between?

Multiple- line comments are enclosed between /* and /*.

What does the modulus operator take?

The modulus operator, takes only integer operands.

What is the most common character set?

The most common character sets are ASCII, which has 128 values, and WBCDIC, which has 256.


Ensembles d'études connexes

Lifetime Fitness and Wellness Unit 8 Lessons 1-2 & Quiz 1

View Set

khan academy answers computer science

View Set

Drive Right Chapter 8 & 9 Study Guide

View Set

blood vessels and heart review guide bio 202

View Set