Chapter 1 – C How to Program, 6e Multiple Choice Test Bank
Download file with the answers
Chapter 1 - C How to Program, 6e Multiple Choice Test Bank
1 file(s) 253.72 KB
Not a member!
Create a FREE account here to get access and download this file with answers
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)
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”
1.2 Computers and the Internet in Industry and Research
1.3 The ________ allows people worldwide to donate their unused computer-processing power, harnessing unused capacity.
(a) World Community Grid
(b) cloud computing
(c) Internet TV
(d) GPS
ANS: (a)
1.3 Hardware and Software
1.4 Today’s fastest computers are called __________.
(a) mega computers
(b) terminals
(c) supercomputers
(d) CPUs
1.5 Which of the following would not be considered hardware?
(a) an operating system
(b) a CPU
(c) a keyboard
(d) a disk
1.6 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
1.3.1 Moore’s Law
1.7 Which of the following is most closely associated with Moore’s Law?
(a) Every year or two, the price of computers has approximately doubled.
(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.
1.3.2 Computer Organization
1.8 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
1.9 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.
1.4 Data Hierarchy
1.10 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
1.11 A ________ is a group of characters or bytes that conveys meaning.
(a) database
(b) record
(c) character set
(d) field
1.12 A ________ is an electronic collection of data that’s organized for easy access and manipulation.
(a) field
(b) database
(c) record
(d) file
1.5 Programming Languages
1.13 Which of the following is not one of the three general types of computer lan-guages?
(a) Machine languages.
(b) Assembly languages.
(c) High-Level languages.
(d) Spoken languages.
1.14 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.
1.15 A computer can directly understand only its own ___________.
(a) machine language
(b) assembly language
(c) high-level language
(d) none of the above
1.16 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.
1.17 Programs that directly execute high-level language programs without compiling are called __________.
(a) assemblers
(b) interpreters
(c) compilers
(d) translators
ANS: (b)
1.6 The C Programming Language
1.18 Which of the following languages was an ancestor of C?
(a) A
(b) A+
(c) B
(d) B+
1.7 C Standard Library
1.19 When programming in C you’ll typically use all of the following building blocks except __________.
(a) functions from the standard library
(b) functions you create yourself
(c) functions other people have created for you
(d) functions provided by ANSI / ISO
1.20 Using standard library functions can be more efficient because __________.
(a) they save programming time
(b) they are carefully written to perform optimally
(c) they increase program portability
(d) all of the above.
1.8 C++ and Other C-Based Languages
1.21 ________ are essentially reusable software components that model items in the real world.
(a) objects
(b) supersets
(c) modules
(d) developers
1.22 C++ was developed by ________.
(a) Bjarne Stroustrup
(b) Ada Lovelace
(c) Blaise Pascal
(d) Ken Thompson
1.23 Which language was developed by Microsoft for integrating the Internet and the web into computer applications?
(a) Objective-C.
(b) Java.
(c) PHP.
(d) Visual C#.
1.24 Java was developed by ___________.
(a) Sun Microsystems
(b) Bell Labs
(c) IBM
(d) ANSI/ISO
1.9 Object Technology
1.25 Which of the following is not an advantage of object-oriented programming?
(a) Software is more reusable.
(b) Software is more understandable, correct and modify.
(c) Using a modular, object-oriented design-and-implementation approach can make software-development groups much more productive.
(d) None of the above—these are all advantages of object-oriented programming.
1.26 ________ models software in terms similar to those that people use to describe real-world objects.
(a) Method-oriented programming
(b) Object-oriented design
(c) Procedural programming
(d) None of the above
1.27 Which statement is false?
(a) Classes are reusable software components.
(b) A class is to an object as a blueprint is to a house.
(c) Performing a task in a program requires a method.
(d) A class is an instance of its object.
ANS: (d) A class is an instance of its object. The reverse is true.
1.10 Typical C Program Development Environment
1.28 The compile stage is when ____________.
(a) the object code is linked with code for functions in other files
(b) the C program is translated into machine language code
(c) the program is executed one instruction at a time
(d) the program is placed in memory
1.29 The linker creates __________.
(a) an executable image
(b) a preprocessor directive
(c) object code
(d) an input stream
1.11 Test-Driving a C Application in Windows, Linux and Mac OS X
(No questions.)
1.12 Operating Systems
1.30 Which of the following statements is false?
(a) The concepts of icons, menus and windows were originally developed by Xerox PARC.
(b) Windows is an open source operating system.
(c) The software that contains the core components of the operating system is called the kernel.
(d) Linux source code is available to the public for examination and modification.
ANS: (b) Windows is not an open source operating system; it is a proprietary operating system.
1.31 Which of the following is not a key organization in the open-source community?
(a) Apache.
(b) SourceForge.
(c) Firefox.
(d) Eclipse.
1.13 The Internet and the World Wide Web
1.32 An ancestor of today’s Internet was _____________.
(a) ARPAnet
(b) e-mail
(c) PHP
(d) TCP/IP
1.33 The technique by ARPA to allow multiple users to send and receive information at the same time over the same communications paths is known as ___________.
(a) electronic mail
(b) packet switching
(c) networking
(d) multitasking
1.34 What is bandwidth?
(a) information carrying capacity
(b) response time
(c) the set of networking protocols
(d) an error-control technique
ANS: (a)
1.35 The World Wide Web ________.
(a) was developed at roughly the same time as the Internet
(b) paved the way for the Internet
(c) was developed years after the Internet
(d) was designed for “stand-alone” computers
ANS: (c)
1.36 The term Web 2.0 was coined by ________ in 2003.
(a) Tim Berners-Lee
(b) Dale Dougherty
(c) Tim O’Reilly
(d) Mark Zuckerberg
AND: (b) Dale Dougherty
1.37 Web 2.0 embraces a(n) ________—a design that encourages user interaction and community contributions.
a) architecture of participation
b) semantic web
c) architecture of trust
d) social network
ANS: (a) architecture of participation
1.14 Some Key Software Development Terminology
1.38 ________ involves reworking programs to make them clearer and easier to main-tain while preserving their correctness and functionality.
(a) Object-oriented programming
(b) Refactoring
(c) Agile software development
(d) LAMP
ANS: (b) Refactoring.
1.39 Which software product release category is “generally feature complete and sup-posedly bug free, and ready for use by the community?”
(a) Alpha.
(b) Beta.
(c) Release candidate.
(d) Continuous beta.
ANS: (c) Release candidate.
1.15 Keeping Up-to-Date with Information Technologies
(No questions.)
1.16 Web Resources
(No questions.)
Leave a reply