Deck 2: Getting Started in C Programming
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Unlock Deck
Sign up to unlock the cards in this deck!
Unlock Deck
Unlock Deck
1/46
Play
Full screen (f)
Deck 2: Getting Started in C Programming
1
Identifiers are also referred to as keywords in C.
False
2
The main() function is sometimes referred to as a driver function.
True
3
A function header line is always the first line of a function.
True
4
Inputting data or messages to a function is called passing data to the function.
Unlock Deck
Unlock for access to all 46 flashcards in this deck.
Unlock Deck
k this deck
5
A statement is a note about the code that the programmer includes so that he (or other programmers) can keep track of what the various parts of the program do.
Unlock Deck
Unlock for access to all 46 flashcards in this deck.
Unlock Deck
k this deck
6
Invoking a function is more commonly referred to as summoning the function.
Unlock Deck
Unlock for access to all 46 flashcards in this deck.
Unlock Deck
k this deck
7
In C, blank space refers to any combination of one or more blank spaces, tabs, or new lines.
Unlock Deck
Unlock for access to all 46 flashcards in this deck.
Unlock Deck
k this deck
8
A built-in data type is one that is provided as an integral part of the language.
Unlock Deck
Unlock for access to all 46 flashcards in this deck.
Unlock Deck
k this deck
9
In C, comments may be nested.
Unlock Deck
Unlock for access to all 46 flashcards in this deck.
Unlock Deck
k this deck
10
Another name for a literal is a constant.
Unlock Deck
Unlock for access to all 46 flashcards in this deck.
Unlock Deck
k this deck
11
The combination of an ampersand and one of several specific characters is called an escape sequence.
Unlock Deck
Unlock for access to all 46 flashcards in this deck.
Unlock Deck
k this deck
12
A floating-point value is also called a real number.
Unlock Deck
Unlock for access to all 46 flashcards in this deck.
Unlock Deck
k this deck
13
The operators used for arithmetic operations are called arithmetic operators.
Unlock Deck
Unlock for access to all 46 flashcards in this deck.
Unlock Deck
k this deck
14
An operand can be either a literal value or an identifier that has a value associated with it.
Unlock Deck
Unlock for access to all 46 flashcards in this deck.
Unlock Deck
k this deck
15
A simple unary arithmetic expression has the form: literalValue operator literalValue.
Unlock Deck
Unlock for access to all 46 flashcards in this deck.
Unlock Deck
k this deck
16
A string that also includes a conversion control sequence is termed a literal string.
Unlock Deck
Unlock for access to all 46 flashcards in this deck.
Unlock Deck
k this deck
17
Conversion control sequences are also referred to as conversion specifications and format specifiers.
Unlock Deck
Unlock for access to all 46 flashcards in this deck.
Unlock Deck
k this deck
18
A control string is referred to as a control specifier.
Unlock Deck
Unlock for access to all 46 flashcards in this deck.
Unlock Deck
k this deck
19
A floating-point expression is also called a real expression.
Unlock Deck
Unlock for access to all 46 flashcards in this deck.
Unlock Deck
k this deck
20
An expression containing both integer and floating-point values is called a double-precision expression.
Unlock Deck
Unlock for access to all 46 flashcards in this deck.
Unlock Deck
k this deck
21
The % operator is called both the modulus and remainder operator.
Unlock Deck
Unlock for access to all 46 flashcards in this deck.
Unlock Deck
k this deck
22
A "solitaire" operator is one that operates on a single operand.
Unlock Deck
Unlock for access to all 46 flashcards in this deck.
Unlock Deck
k this deck
23
Data types are simply names given by programmers to computer storage locations.
Unlock Deck
Unlock for access to all 46 flashcards in this deck.
Unlock Deck
k this deck
24
An assignment statement tells the computer to assign a value to (that is, store a value in) a variable.
Unlock Deck
Unlock for access to all 46 flashcards in this deck.
Unlock Deck
k this deck
25
Initialization statements define or tell the compiler how much memory is needed for data storage.
Unlock Deck
Unlock for access to all 46 flashcards in this deck.
Unlock Deck
k this deck
26
The names of functions, as well as all of the words that are permitted in a program, that have special meaning to the compiler are collectively referred to as ____.
A)variables
B)identifiers
C)reserved words
D)keywords
A)variables
B)identifiers
C)reserved words
D)keywords
Unlock Deck
Unlock for access to all 46 flashcards in this deck.
Unlock Deck
k this deck
27
____ identifiers are words that are predefined in C.
A)Standard
B)Programmer-created
C)Reserved
D)Primitive
A)Standard
B)Programmer-created
C)Reserved
D)Primitive
Unlock Deck
Unlock for access to all 46 flashcards in this deck.
Unlock Deck
k this deck
28
A large number of the identifiers used in a C program are selected by the programmer, and are known as ____ identifiers.
A)standard
B)programmer-created
C)reserved
D)primitive
A)standard
B)programmer-created
C)reserved
D)primitive
Unlock Deck
Unlock for access to all 46 flashcards in this deck.
Unlock Deck
k this deck
29
All statements that cause some specific action to be performed by the computer when the function is executed must end with a semicolon (;); such statements are known as ____ statements.
A)assignment
B)arithmetic
C)executable
D)escape
A)assignment
B)arithmetic
C)executable
D)escape
Unlock Deck
Unlock for access to all 46 flashcards in this deck.
Unlock Deck
k this deck
30
A ____ is placed at the top of a C program using the #include command.
A)header file
B)main() function
C)return statement
D)data type
A)header file
B)main() function
C)return statement
D)data type
Unlock Deck
Unlock for access to all 46 flashcards in this deck.
Unlock Deck
k this deck
31
A programming language's ____ is the set of rules for formulating statements that are "grammatically correct" for the language.
A)grammar
B)syntax
C)logic
D)definition
A)grammar
B)syntax
C)logic
D)definition
Unlock Deck
Unlock for access to all 46 flashcards in this deck.
Unlock Deck
k this deck
32
Messages are known as ____ in C.
A)characters
B)text
C)banners
D)strings
A)characters
B)text
C)banners
D)strings
Unlock Deck
Unlock for access to all 46 flashcards in this deck.
Unlock Deck
k this deck
33
The two characters \ and ____, when used together, are called a newline escape sequence.
A)n
B)e
C)w
D)x
A)n
B)e
C)w
D)x
Unlock Deck
Unlock for access to all 46 flashcards in this deck.
Unlock Deck
k this deck
34
A(n) ____ is defined as a set of values and a set of operations that can be applied to these values.
A)variable
B)identifier
C)data type
D)literal
A)variable
B)identifier
C)data type
D)literal
Unlock Deck
Unlock for access to all 46 flashcards in this deck.
Unlock Deck
k this deck
35
Built-in types are also known as ____.
A)data types
B)primitive types
C)literals
D)basic
A)data types
B)primitive types
C)literals
D)basic
Unlock Deck
Unlock for access to all 46 flashcards in this deck.
Unlock Deck
k this deck
36
The ____ is also known as the escape character.
A)pound character (#)
B)ampersand character (&)
C)backslash character (\)
D)bang character (!)
A)pound character (#)
B)ampersand character (&)
C)backslash character (\)
D)bang character (!)
Unlock Deck
Unlock for access to all 46 flashcards in this deck.
Unlock Deck
k this deck
37
A(n) ____ value can be the number zero or any positive or negative number that contains a decimal point.
A)integer
B)floating-point
C)boolean
D)character
A)integer
B)floating-point
C)boolean
D)character
Unlock Deck
Unlock for access to all 46 flashcards in this deck.
Unlock Deck
k this deck
38
A ____ value is sometimes referred to as a single-precision number.
A)float
B)double
C)int
D)short int
A)float
B)double
C)int
D)short int
Unlock Deck
Unlock for access to all 46 flashcards in this deck.
Unlock Deck
k this deck
39
A ____ value is sometimes referred to as a double-precision number.
A)float
B)double
C)int
D)short int
A)float
B)double
C)int
D)short int
Unlock Deck
Unlock for access to all 46 flashcards in this deck.
Unlock Deck
k this deck
40
In numerical theory, the term ____ typically refers to numerical accuracy.
A)literal
B)sequence
C)precision
D)precedence
A)literal
B)sequence
C)precision
D)precedence
Unlock Deck
Unlock for access to all 46 flashcards in this deck.
Unlock Deck
k this deck
41
Items passed to a function are always placed within the function name parentheses and are called ____.
A)variables
B)data types
C)identifiers
D)arguments
A)variables
B)data types
C)identifiers
D)arguments
Unlock Deck
Unlock for access to all 46 flashcards in this deck.
Unlock Deck
k this deck
42
An example of a conversion control sequence is ____.
A)\n
B)!s
C)%d
D)&l
A)\n
B)!s
C)%d
D)&l
Unlock Deck
Unlock for access to all 46 flashcards in this deck.
Unlock Deck
k this deck
43
A(n) ____ is any combination of operators and operands that can be evaluated to yield a value.
A)expression
B)statement
C)operation
D)argument
A)expression
B)statement
C)operation
D)argument
Unlock Deck
Unlock for access to all 46 flashcards in this deck.
Unlock Deck
k this deck
44
An expression containing only floating-point values as operands is called a floating-point expression, and the result of such an expression is a(n) ____ value.
A)single-precision
B)double-precision
C)integer
D)long integer
A)single-precision
B)double-precision
C)integer
D)long integer
Unlock Deck
Unlock for access to all 46 flashcards in this deck.
Unlock Deck
k this deck
45
The ____ operator captures the remainder when an integer number is divided by an integer.
A) /
B) &
C) %
D) !
A) /
B) &
C) %
D) !
Unlock Deck
Unlock for access to all 46 flashcards in this deck.
Unlock Deck
k this deck
46
____ is the order in which operators of the same precedence are evaluated.
A) Associativity
B) Priority
C) Syntax
D) Precision
A) Associativity
B) Priority
C) Syntax
D) Precision
Unlock Deck
Unlock for access to all 46 flashcards in this deck.
Unlock Deck
k this deck