,1.1 Introduction
1.1 Which of the following statements is true?
(a) hardware controls software
(b) software commands the computer to perform actions and make decisions
(c) C is an object oriented programming language
(d) Both (b) and (c)
ANS: (b)
1.2 Which of the following is going to be the key programming methodology for the
next decade?
(a) object-oriented programming
(b) structured programming
(c) “legacy C code”
(d) “live-code approach”
ANS: (a)
1.2 Hardware and Software
1.3 Today's fastest computers are called __________.
(a) mega computers
(b) terminals
(c) supercomputers
(d) CPUs
ANS: (c)
1.4 Which of the following would not be considered hardware?
(a) an operating system
(b) a CPU
(c) a keyboard
(d) a disk
ANS: (a)
1.5 Computer programs are __________.
(a) sequences of instructions
(b) the information processed by the computer
(c) the various devices (disks, memory, keyboard) that comprise a computer system
(d) the people programming the computers
ANS: (a)
1.2.1 Moore’s Law
1.6 Which of the following is most closely associated with Moore's Law?
(a) Every year or two, the price of computers has approximately doubled.
© 2016 Pearson Education, Inc., Hoboken, NJ. All rights reserved.
,(b) Object-oriented programming uses less memory than previous software-
development methodologies.
(c) Demand for communications bandwidth is decreasing dramatically each year.
(d) Every year or two, the capacities of computers have approximately doubled
without any increase in price.
ANS: (d) Every year or two, the capacities of computers have approximately doubled
without any increase in price.
1.2.2 Computer Organization
1.7 Which of the following is not one of the six logical units of a computer?
(a) input unit
(b) programmer unit
(c) memory unit
(d) output unit
ANS: (b)
1.8 Programs or data not actively being used by the other units are placed on the
__________.
(a) output unit.
(b) memory unit.
(c) secondary storage unit.
(d) central processing unit.
ANS: (c)
1.3 Data Hierarchy
1.9 The smallest data item in a computer, called a ________, can assume the value 0 or
the value 1.
(a) bit
(b) character
(c) field
(d) digit
ANS: (a)
1.10 A ________ is a group of characters or bytes that conveys meaning.
(a) database
(b) record
(c) character set
(d) field
ANS: (d)
1.11 A ________ is an electronic collection of data that’s organized for easy access and
manipulation.
(a) field
(b) database
© 2016 Pearson Education, Inc., Hoboken, NJ. All rights reserved.
, (c) record
(d) file
ANS: (b)
1.4 Machine Languages, Assembly Languages and High-Level Languages
1.12 Which of the following is not one of the three general types of computer
languages?
(a) Machine languages.
(b) Assembly languages.
(c) High-Level languages.
(d) Spoken languages.
ANS: (d) Spoken languages.
1.13 Which of the following statements is true?
(a) Interpreted programs run faster than compiled programs.
(b) Compilers translate high-level language programs into machine language
programs.
(c) Interpreter programs typically use machine language as input.
(d) None of the above.
ANS: (b) Compilers translate high-level language programs into machine language
programs.
1.14 A computer can directly understand only its own ___________.
(a) machine language
(b) assembly language
(c) high-level language
(d) none of the above
ANS: (a)
1.15 Assemblers__________.
(a) convert machine language into high-level language.
(b) convert assembly language into machine language.
(c) convert high-level language into machine language.
(d) convert high-level language into assembler language.
ANS: (b)
1.16 Programs that directly execute high-level language programs without
compiling are called __________.
(a) assemblers
(b) interpreters
(c) compilers
(d) translators
ANS: (b)
© 2016 Pearson Education, Inc., Hoboken, NJ. All rights reserved.
1.1 Which of the following statements is true?
(a) hardware controls software
(b) software commands the computer to perform actions and make decisions
(c) C is an object oriented programming language
(d) Both (b) and (c)
ANS: (b)
1.2 Which of the following is going to be the key programming methodology for the
next decade?
(a) object-oriented programming
(b) structured programming
(c) “legacy C code”
(d) “live-code approach”
ANS: (a)
1.2 Hardware and Software
1.3 Today's fastest computers are called __________.
(a) mega computers
(b) terminals
(c) supercomputers
(d) CPUs
ANS: (c)
1.4 Which of the following would not be considered hardware?
(a) an operating system
(b) a CPU
(c) a keyboard
(d) a disk
ANS: (a)
1.5 Computer programs are __________.
(a) sequences of instructions
(b) the information processed by the computer
(c) the various devices (disks, memory, keyboard) that comprise a computer system
(d) the people programming the computers
ANS: (a)
1.2.1 Moore’s Law
1.6 Which of the following is most closely associated with Moore's Law?
(a) Every year or two, the price of computers has approximately doubled.
© 2016 Pearson Education, Inc., Hoboken, NJ. All rights reserved.
,(b) Object-oriented programming uses less memory than previous software-
development methodologies.
(c) Demand for communications bandwidth is decreasing dramatically each year.
(d) Every year or two, the capacities of computers have approximately doubled
without any increase in price.
ANS: (d) Every year or two, the capacities of computers have approximately doubled
without any increase in price.
1.2.2 Computer Organization
1.7 Which of the following is not one of the six logical units of a computer?
(a) input unit
(b) programmer unit
(c) memory unit
(d) output unit
ANS: (b)
1.8 Programs or data not actively being used by the other units are placed on the
__________.
(a) output unit.
(b) memory unit.
(c) secondary storage unit.
(d) central processing unit.
ANS: (c)
1.3 Data Hierarchy
1.9 The smallest data item in a computer, called a ________, can assume the value 0 or
the value 1.
(a) bit
(b) character
(c) field
(d) digit
ANS: (a)
1.10 A ________ is a group of characters or bytes that conveys meaning.
(a) database
(b) record
(c) character set
(d) field
ANS: (d)
1.11 A ________ is an electronic collection of data that’s organized for easy access and
manipulation.
(a) field
(b) database
© 2016 Pearson Education, Inc., Hoboken, NJ. All rights reserved.
, (c) record
(d) file
ANS: (b)
1.4 Machine Languages, Assembly Languages and High-Level Languages
1.12 Which of the following is not one of the three general types of computer
languages?
(a) Machine languages.
(b) Assembly languages.
(c) High-Level languages.
(d) Spoken languages.
ANS: (d) Spoken languages.
1.13 Which of the following statements is true?
(a) Interpreted programs run faster than compiled programs.
(b) Compilers translate high-level language programs into machine language
programs.
(c) Interpreter programs typically use machine language as input.
(d) None of the above.
ANS: (b) Compilers translate high-level language programs into machine language
programs.
1.14 A computer can directly understand only its own ___________.
(a) machine language
(b) assembly language
(c) high-level language
(d) none of the above
ANS: (a)
1.15 Assemblers__________.
(a) convert machine language into high-level language.
(b) convert assembly language into machine language.
(c) convert high-level language into machine language.
(d) convert high-level language into assembler language.
ANS: (b)
1.16 Programs that directly execute high-level language programs without
compiling are called __________.
(a) assemblers
(b) interpreters
(c) compilers
(d) translators
ANS: (b)
© 2016 Pearson Education, Inc., Hoboken, NJ. All rights reserved.