Ch 2 Flashcards Preview

Computer Science > Ch 2 > Flashcards

Flashcards in Ch 2 Deck (16)
Loading flashcards...
1
Q

\n

A

New line; causes the cursor to go to the next line for printing

2
Q

\t

A

Horizontal tab; causes the cursor to skip over to the next tab stop

3
Q

\a

A

Alarm; causes the computer to beep

4
Q

\b

A

Backspace; causes the cursor to back up, or move left one position

5
Q

\r

A

Return; causes the cursor to go to the beginning of the current line, not the next line

6
Q

\

A

Backlash; causes a backlash to be printed

7
Q

'

A

Single quote; prints a single quote mark

8
Q

"

A

Double quote; prints a double quote

9
Q

Every complete statement ends with a

A

Semicolon

10
Q

Every c++ statement must have a

A

Function main

11
Q

Preprocess or directives begin with a

A

#

12
Q

The following are examples of:

72, hello world

A

Literals or constants

13
Q

A group of statements, such as the contents of a function is enclosed in

A

Braces { }

14
Q

The negation operator is

A

Unary

15
Q

A __ is like a variable, but it’s value is read only and cannot be changed during the programs execution

A

Named constant

16
Q

When do preprocess or directives execute?

A

Before the complied