文档库 最新最全的文档下载
当前位置:文档库 › C语言英文Chapter 2+Getting Started in C Programming

C语言英文Chapter 2+Getting Started in C Programming

Chapter 2 Getting Started in C Programming

Quick Quiz 1

1.What is an identifier?

Answer: The names of functions, as well as all of the words permitted in a

program that have special meaning to the compiler, are collectively referred to as identifiers.

2.What is a function header line?

Answer: A function header line, which is always the first line of a function,

contains three pieces of information: (1) what type of data, if any, is returned

by the function, (2) the name of the function, and (3) what type of data, if any, is sent into the function.

3.The two characters \ and n, when used together, are called a(n)

___________________.

Answer: newline escape sequence

4.A(n) ____________________ is a word that is predefined by the

programming language for a special purpose and can only be used in a

specified manner for its intended purpose.

Answer: reserved word

keyword

reserved or keyword

Quick Quiz 2

1.What is a data type?

Answer: A data type is defined as a set of values and a set of operations that

can be applied to these values.

2.In numerical theory, the term ____________________ typically refers to

numerical accuracy.

Answer: precision

3.What is an expression?

Answer: An expression is any combination of operators and operands that can be evaluated to yield a value.

4.____________________ is the order in which operators of the same

precedence are evaluated.

Answer: Associativity

Quick Quiz 3

1.____________________ are simply names given by programmers to computer

storage locations.

Answer: Variables

2.What is an assignment statement?

Answer: An assignment statement tells the computer to assign a value to (that

is, store a value in) a variable.

3.What is a definition statement?

Answer: Definition statements define or tell the compiler how much memory

is needed for data storage.

4.When a declaration statement provides an initial value, the variable is said to

be ____________________.

Answer: initialized

相关文档
相关文档 最新文档