©2014 Pearson Education, Inc. Upper Saddle River, NJ. All Rights Reserved.
Starting Out with Visual C# 2012
Chapter 1Introduction to Computers and Programming
Multiple Choice
- A(n) ______is a set of instructions that a computer follows to perform a task.
- algorithm
- program
- formula
- method
ANS: B
- Programs are commonly referred to as ______.
- applications
- simulations
- software
- firmware
ANS: C
- A programmer, or software developer, is a person with the training and skills necessary to ______computer programs.
- design
- create
- test
- All of the above
ANS: D
- ______refers to all the physical devices, or components, of which a computer is made.
- Hardware
- Workstation
- Machine
- System
ANS: A
- When a computer is performing the tasks that a program tells it to do, we say that the computer is running, or ______the program.
- compiling
- processing
- executing
- reading
ANS: C
- The ______is the part of a computer that actually runs programs.
- CPU
- software
- main memory
- programming language
ANS: A
- The ______is considered by many to be the world’s first programmable electronic computer.
- UNIVAC
- ENIAC
- Apple II
- Harvard MARK I
ANS: B
- Today, CPUs are small chips known as ______.
- parallel processors
- microprocessors
- mini-CPUs
- super computers
ANS: B
- ______is where the computer stores a program while the program is running, as well as the data that the program is working with.
- Main memory
- Software
- The CPU
- Secondary storage
ANS: A
- Main memory is commonly known as ______, or RAM.
- random-access memory
- read-append memory
- random-asynchronous memory
- readily-available memory
ANS: A
- When the computer is turned off, the contents of ______are erased.
- secondary storage
- RAM
- software
- hardware
ANS: B
- ______is a type of memory that can hold data for long periods of time, even when there is no power to the computer.
- RAM
- Secondary storage
- Application software
- Main memory
ANS: B
- A(n) ______stores data by magnetically encoding it onto a circular disk.
- CPU
- output device
- program
- disk drive
ANS: D
- A ______records data onto a small floppy disk, which can be removed from the drive.
- USB drive
- hard drive
- floppy disk drive
- DVD
ANS: C
- ______are small devices that plug into the computer’s USB port and appear to the system as disk drives.
- Virtual disk drives
- Universal serial bus (USB) drives
- Floppy disk drives
- External disk drives
ANS: B
- The compact disk (CD) and digital versatile disk (DVD) are known as ______devices.
- optical
- binary
- legacy
- encoded
ANS: A
- ______is any data the computer collects from people and from other devices.
- Telemetry
- Input
- Information
- Storage
ANS: B
- The component that collects the data and sends it to the computer is called a(n) ______.
- storage device
- output device
- sending unit
- input device
ANS: D
- ______is any data the computer produces for people or for other devices.
- Output
- Software
- Firmware
- Media
ANS: A
- Data produced by the computer is sent to a(n) ______, which formats and presents it.
- input device
- output device
- storage device
- program
ANS: B
- The programs that control and manage the basic operations of a computer are generally referred to as ______.
- application software
- RAM
- system software
- output devices
ANS: C
- A(n) ______is the most fundamental set of programs on a computer.
- kernel
- device driver
- operating system
- Web browser
ANS: C
- A(n) ______performs a specialized task that enhances the computer’s operation or safeguards data.
- utility program
- secondary storage device
- USB drive
- operating system
ANS: A
- The software tools that programmers use to create, modify, and test software are referred to as ______.
- utility programs
- software development tools
- device drivers
- application software
ANS: B
- Programs that make a computer useful for everyday tasks are known as ______.
- operating systems
- utility programs
- application software
- system software
ANS: C
- A computer’s memory is divided into tiny storage locations known as ______.
- sectors
- arrays
- cells
- bytes
ANS: D
- One ______is enough memory to store only a letter of the alphabet or a small number.
- bit
- byte
- sector
- cell
ANS: B
- Each byte is divided into eight smaller storage locations known as ______.
- nibbles
- pixels
- bits
- words
ANS: C
- The term bit stands for ______.
- binary digit
- basic integer
- Boolean type
- big-endian format
ANS: A
- In computer systems, a bit that is turned off represents the number ______and a bit that is turned on represents the number 1.
- -1
- 0
- 255
- 10
ANS: B
- In the ______numbering system, all numeric values are written as sequences of 0s and 1s.
- hexadecimal
- decimal
- octal
- binary
ANS: D
- ______is a set of 128 numeric codes that represent the English letters, various punctuation marks, and other characters.
- ANSI
- Unicode
- ASCII
- IEEE
ANS: C
- ______is an extensive encoding scheme that is compatible with ASCII and can also represent the characters of many of the world’s languages.
- Baudot code
- EBCDIC
- ANSEL
- Unicode
ANS: D
- Computers are able to store negative numbers in memory by using a technique known as ______.
- ASCII
- two’s complement
- bit block transfer
- Unicode
ANS: B
- Before the computer can store a real number in memory, it must be encoded in ______.
- floating-point notation
- hexadecimal
- EBCDIC
- decimal mode
ANS: A
- The term ______can be used to describe anything that uses binary numbers.
- electronic
- digital
- organic
- computer
ANS: B
- ______is data that is stored in binary.
- Bitwise data
- Electronic information
- Digital data
- Biometric data
ANS: C
- A(n) ______is any device that works with binary data.
- electronic module
- digital device
- binary machine
- computational tool
ANS: B
- Digital images are composed of tiny dots of color known as ______.
- halftone cells
- pixels
- light-emitting diodes
- raster elements
ANS: B
- A digital song is broken into small pieces known as ______.
- tones
- samples
- pentameters
- waves
ANS: B
- A computer’s CPU can only understand instructions that are written in ______.
- main memory
- mnemonics
- assembly language
- machine language
ANS: D
- The entire set of instructions that a CPU can execute is known as the CPU’s ______.
- instruction set
- command list
- mnemonic dictionary
- logic glossary
ANS: A
- When a CPU executes the instructions in a program, it is engaged in a process that is known as the ______.
- fetch-decode-execute cycle
- ready-set-go phase
- code assembly process
- compilation sequence
ANS: A
- ______was created in the early days of computing as an alternative to machine language.
- FORTRAN
- COBOL
- assembly language
- Pascal
ANS: C
- Instead of using binary numbers for instructions, assembly language uses short words that are known as ______.
- mnemonics
- keywords
- operators
- terms
ANS: A
- A special program known as a(n) ______is used to translate an assembly language program to a machine language program.
- compiler
- assembler
- translator
- codex
ANS: B
- Because assembly language is so close in nature to machine language, it is referred to as a ______.
- high-level language
- low-level language
- machine-like language
- linked language
ANS: B
- A(n) ______allows you to create powerful and complex programs without knowing how the CPU works and without writing large numbers of low-level instructions.
- assembler
- interpreter
- high-level language
- virtual language
ANS: C
- The words that make up a high-level language are known as ______or reserved words.
- mnemonics
- pseudonyms
- keywords
- semantics
ANS: C
- Programming languages have ______that perform various operations on data.
- keywords
- mnemonics
- states
- operators
ANS: D
- Each programming language has its own ______, which is a set of rules that must be strictly followed when writing a program.
- syntax
- convention
- grammar
- structure
ANS: A
- The individual instructions that you use to write a program in a high-level programming language are called ______.
- directives
- commands
- statements
- orders
ANS: C
- A(n) ______is a program that translates a high-level language program into a separate machine language program.
- parser
- interpreter
- compiler
- assembler
ANS: C
- A(n) ______is a program that both translates and executes the instructions in a high-level language program.
- compiler
- interpreter
- assembler
- lexical analyzer
ANS: B
- The statements that a programmer writes in a high-level language are called ______, or simply code.
- source code
- high-level text
- program font
- simple script
ANS: A
- A(n) ______is a mistake such as a misspelled keyword, a missing punctuation character, or the incorrect use of an operator.
- parsed anomaly
- syntax error
- code bug
- illegal operation
ANS: B
- Programmers commonly use the term ______to describe any hypothetical person that might be using a computer and its programs.
- user
- customer
- patient
- client
ANS: A
- A computer’s ______is the part of the computer with which the user interacts.
- operating system
- monitor
- Input device
- user interface
ANS: D
- A(n) ______, which is also known as a console interface, requires the user to type commands.
- command prompt
- console
- command line interface
- terminal
ANS: C
- A(n) ______, or GUI, allows the user to interact with the operating system and application programs through graphical elements on the screen.
- general-purpose interface
- graphical user interface
- generic unified interface
- graphics utility interface
ANS: B
- Because GUI programs must respond to the actions of the user, they are said to be ______.
- response-based
- drag-and-drop
- open-ended
- event-driven
ANS: D
- When you use a(n) ______language, you create programs by putting together a collection of objects.
- object-oriented
- object-based
- collective
- high-level
ANS: A
- The data stored in an object are commonly called fields, or ______.
- attributes
- characteristics
- properties
- values
ANS: C
- The operations that an object can perform are called ______.
- actions
- events
- behaviors
- methods
ANS: D
- In object-oriented programming, a window that is displayed on the screen is called a ______.
- window object
- screen object
- form object
- frame object
ANS: C
- A ______object displays text on a form.
- Text
- Font
- Character
- Label
ANS: D
- A ______object appears as a rectangular region that can accept keyboard input from the user.
- True-type
- Textbox
- Rectangle
- Notepad
ANS: B
- A ______object appears on a form as a button with a caption written across its face.
- Button
- Banner
- Checkbox
- Frame
ANS: A
- Objects that are visible in a program’s graphical user interface are commonly referred to as ______.
- opaque
- interactive
- controls
- components
ANS: C
- A ______is code that describes a particular type of object.
- class
- specification
- blueprint
- diagram
ANS: A
- The ______is a collection of classes and other code that can be used, along with a programming language such as C#, to create programs for the Windows operating system.
- MSDN Library
- .NET Framework
- Sync Framework
- Windows SDK
ANS: B
- The entire process of creating a program is known as the ______.
- art of software development
- program development cycle
- computer science sequence
- code-test-debug cycle
ANS: B
- When beginning a new programming project, it is essential that you ______.
- design the program’s logic
- correct syntax errors
- write the program’s code
- understand the program’s purpose
ANS: D
- Once you clearly understand what the program is supposed to do, you can ______.
- test the program and correct logic errors
- correct syntax errors
- design the program’s GUI
- design the program’s logic
ANS: C
- A(n) ______is a set of well-defined, logical steps that must be taken to perform a task.
- flowchart
- schematic
- algorithm
- outline
ANS: C
- An algorithm that is written out in plain English statements is called ______.
- prototyping
- pseudocode
- outlining
- quick-code
ANS: B
- A ______is a diagram that graphically depicts the steps of an algorithm.
- flowchart
- billboard
- schematic
- formulaic hierarchy chart
ANS: A
- The ovals, which appear at the top and bottom of a flowchart, are called ______.
- input symbols
- processing symbols
- terminal symbols
- output symbols
ANS: C
- In a flowchart, the ______symbol marks the program’s starting point.
- input
- output
- processing
- Start terminal
ANS: D
- The ______symbol marks the program’s ending point in a flowchart.
- output
- processing
- End terminal
- Input
ANS: C
- In a flowchart, ______are used as input symbols and output symbols to represent the steps in which the program reads input or displays output.
- Ovals
- Rectangles
- Parallelograms
- Triangles
ANS: C
- In a flowchart, rectangles are used as ______to represent the steps in which the program performs some process on data, such as a mathematical calculation.
- processing symbols
- output symbols
- input symbols
- terminal symbols
ANS: A
- A ______is a mistake that does not prevent the program from running but causes it to produce incorrect results.
- syntax error
- logic error
- parse error
- interpret error
ANS: B
- The term ______means that the programmer finds and corrects logic errors in the program.
- debug
- proofread
- analyze
- logistics
ANS: A
- A(n) ______provides all the necessary tools for creating, testing, and debugging software.
- super computer
- integrated development environment (IDE)
- operating system
- software development kit (SDK)
ANS: B
- ______can be used to create applications not only with Visual C#, but also with other languages such as Visual Basic and C++.
- Visual Studio 2012
- A compiler
- Notepad
- All of the above
ANS: A
- ______is a free programming environment that is available for download from the Microsoft Web site.
- Visual Studio 2012 Express for Windows Desktop
- Visual Studio 2012
- The MSDN library
- Internet Explorer
ANS: A
- Each Visual C# application that you create is a called a ______.
- solution
- file
- source
- project
ANS: A
- The ______window shows the application’s form and allows you to visually design its appearance by placing the desired controls that will appear on the form when the application executes.
- Solution Explorer
- Properties
- Designer
- Project
ANS: C
- The ______window allows you to navigate among the files in a Visual C# project.
- Properties
- Designer
- Source
- Solution Explorer
ANS: D
- When you are creating a Visual C# application, you use the ______window to examine and change a control’s properties.
- Properties
- Solution Explorer
- Designer
- Attributes
ANS: A
- When the ______feature is turned on, the window is displayed only as a tab along one of the edges of the Visual Studio environment.
- Auto Hide
- Pushpin
- Economy View
- Tab
ANS: A
- The ______contains buttons that execute frequently used commands.
- toolbox
- hot bar
- standard toolbar
- command bar
ANS: C
- The ______is a window that allows you to select the controls that you want to use in an application’s user interface.
- standard toolbar
- picker
- control library
- toolbox
ANS: D
- A(n) ______is a small rectangular box that pops up when you hover the mouse pointer over a button on the toolbar or in the toolbox for a few seconds.
- Icon
- ToolTip
- Message
- Alert
ANS: B
- When a window is ______, it means it is attached to one of the edges of the Visual Studio window.
- parked
- seated
- docked
- floating
ANS: C
- A window that is not attached to one of the edges of the Visual Studio window is ______.
- floating
- hovering
- overlapped
- docked
ANS: A
- When you create a new project using Visual Studio, it will be stored in the ______at the location you specify on your computer’s disk.
- Solution folder
- Project folder
- Solution file
- System file
ANS: A
- Inside the solution folder, the ______contains various files related to the project.
- project folder
- solution file
- source folder
- system folder
ANS: A
- Inside the solution folder, you can double-click the ______to open the project in Visual Studio.
- solution file
- system folder
- project folder
- source file
ANS: A
True or False
- Computer can do such a wide variety of things because they can be programmed, which means that computers are designed not to do just one job, but to do any job that their programs tell them to do.
ANS: T
- A computer is not a single device but is a system of devices that all work together.
ANS: T
- The CPU is the most important component in a computer because without it, the computer could not run software.
ANS: T
- In addition to being much larger than the old electromechanical CPUs in early computers, microprocessors are also less powerful.
ANS: F
- You can think of secondary storage as the computer’s work area.
ANS: F
- RAM is usually a volatile type of memory that is used only for temporary storage while a program is running.
ANS: T
- RAM is stored in chips.
ANS: T
- Programs are normally stored in main memory and loaded into secondary storage as needed.
ANS: F
- The most common type of secondary storage device is the disk drive.
ANS: T
- External disk drives can be used to create backup copies of important data or to move data to another computer.
ANS: T
- The use of USB drives has declined dramatically in recent years in favor of superior devices such as floppy disk drives.
ANS: F
- USB drives, which are also known as memory sticks and flash drives, are inexpensive, reliable, and small enough to be carried in a pocket.
ANS: T
- Data is not recorded magnetically on an optical disc but is encoded as a series of pits on the disc surface.
ANS: T
- Floppy disk drives are good mediums for creating backup copies of data.
ANS: F
- Common input devices are the keyboard, mouse, scanner, microphone, and digital camera.
ANS: T
- Common output devices are video displays and printers.
ANS: T
- Disk drives and recordable optical disk drives can be considered input devices or output devices.
ANS: T
- There are two general categories of software: system software and application software.
ANS: T
- Software development tools control the internal operations of the computer’s hardware, mange all the devices connected to the computer, allow data to be saved to and retrieved from the storage devices, and allow other programs to run on the computer.
ANS: F
- Examples of utility programs are virus scanners, file-compression programs, and data-backup programs.
ANS: T
- An operating system consists of assemblers, compilers, and interpreters.
ANS: F
- Some examples of application software are spreadsheet programs, e-mail programs, Web browsers, and game programs.
ANS: T
- In order to do anything meaningful, a computer has to have lots of bytes.
ANS: T