C How To Program 7th Edition by Deitel ISBN Test Bank
C How To Program 7th Edition by Deitel ISBN Test Bank
Solution Manual:
https://testbankpack.com/p/solution-manual-for-c-how-
to-program-7th-edition-by-deitel-isbn-9789332555310-
9780132990448/
2.1 Introduction
(No questions.)
2.6 Which of the following statements about the inclusion of <stdio.h> is false?
© Copyright 1992-2013 by Deitel & Associates, Inc. and Prentice Hall. All Rights Reserved.
C How to Program, 7/e Multiple Choice Test Bank
a)It is required.
b) This header file contains information and declarations used by the compiler
when compiling standard input/output library functions such as printf.
c)This header file contains information that helps the compiler
determine if calls to li-brary functions have been made correctly.
d)This header helps locate bugs in your program at compile time, rather
than at execu-tion time (when errors are usually more costly to correct).
ANS: (a)
int main()
2.8 The pair of braces that delineate the body of main and the portion
of the program between these braces is called a .
a)function
b)block
c)statement
d) header
ANS: (b)
a)function
b)block
c)statement
d) header
ANS: (c)
© Copyright 1992-2013 by Deitel & Associates, Inc. and Prentice Hall. All Rights Reserved.
C How to Program, 7/e Multiple Choice Test Bank
© Copyright 1992-2013 by Deitel & Associates, Inc. and Prentice Hall. All Rights Reserved.
C How to Program, 7/e Multiple Choice Test Bank
2.22 Which of the following multiple word variable names does not
conform to the good programming practices in the text?
a) multiple_word_variable_name
© Copyright 1992-2013 by Deitel & Associates, Inc. and Prentice Hall. All Rights Reserved.
C How to Program, 7/e Multiple Choice Test Bank
b) multipleWordVariableName
c) multiplewordvariablename
d) aReallyReallyLongMultipleWordVa
ANS: (c)
2.27 When a number gets assigned to a variable that already has a value .
© Copyright 1992-2013 by Deitel & Associates, Inc. and Prentice Hall. All Rights Reserved.
C How to Program, 7/e Multiple Choice Test Bank
(a) the new number overwrites the previous value at that memory location
(b) the new number gets assigned to a neighboring memory location
(c) the computer issues an error
(d) the new value is destroyed and the old value remains
ANS: (a)
2.5 Arithmetic in C
© Copyright 1992-2013 by Deitel & Associates, Inc. and Prentice Hall. All Rights Reserved.
C How to Program, 7/e Multiple Choice Test Bank
2.37 C's if statement executes the statement inside its body if a specified
is .
(a) condition, true
(b) condition, false
(c) equality operator, true
(d) relational operator, true
© Copyright 1992-2013 by Deitel & Associates, Inc. and Prentice Hall. All Rights Reserved.
C How to Program, 7/e Multiple Choice Test Bank
ANS: (a)
© Copyright 1992-2013 by Deitel & Associates, Inc. and Prentice Hall. All Rights Reserved.
C How to Program, 7/e Multiple Choice Test Bank
© Copyright 1992-2013 by Deitel & Associates, Inc. and Prentice Hall. All Rights Reserved.