Chapter 1 Review Questions
If you were to look at a machine language program, you would see___________________________.
A stream of binary numbers
A set of 128 numeric codes that represent the English letters, various punctuation marks, and other characters is ______.
ASCII
How can you access the documentation for Visual Studio? What resources are provided by the MSDN Library?
Access the documentation by clicking help on the menu bar and then selecting view help. Provides code samples, tutorials, articles , and access to tutorial videos.
A(n)___________is a set of well-defined logical steps that must be taken to perform a task.
Algorithm
What is the purpose of the Toolbox in the Visual Studio environment?
Allows you to select the controls that you want to use in an application's user interface.
A component that collects data from people or other devices and sends it to the computer is called________________.
An Input Device
The___________translates an assembly language program to a machine language program.
Assembler
In the________numbering system, all numeric values are written a sequences of 0s and 1s.
Binary
A byte is made up of eight_____.
Bits
A______is enough memory to store a letter of the alphabet or a small number.
Byte
A_______is code that describes a particular type of object.
Class
What steps must you take to open an existing project?
Click File on the Visual Studio menu bar, then select Open, and then select Project/Solution The Open Project window will appear.Navigate to the desired solution folder, select the solution file, and click Open.
Before GUIs became popular, the______________interface was the most commonly used.
Command Line
A(n)_________is a program that translates a high-level language program into a separate machine language program.
Compiler
Objects that are visible in a program's graphical user interface are commonly referred to as_________.
Controls
In the________part of the fetch-decode-execute cycle, the CPU determines which operation it should perform.
Decode
An extensive encoding scheme that can represent characters for many languages in the world is ______.
ENIAC
A syntax error does not prevent a program from being compiled and executed.
False
Images, such as the ones you make with your digital camera, cannot be stored as binary numbers.
False
Programmers must be careful not to make syntax errors when writing pseudocode.
False
Today, CPUs are huge devices made of electrical and mechanical components such as vacuum tubes and switches.
False
Windows, Linux, UNIX, and Mac OS are all examples of application software.
False
Word processing programs, spreadsheet programs, e-mail programs, Web browsers, and games are all examples of utility programs.
False
Real numbers are encoded using the________________technique.
Floating Point
A___________is a diagram that graphically depicts the steps that take place in a program.
Flowchart
____programs are usually event driven.
GUI
The physical devices that a computer is made of are referred to as_________.
Hardware
What does a class specify about an object?
It specifies the data that an object can hold (the object's fields and properties), and the actions that an object can perform(the object's methods).
The words that make up a high-level programming language are called_________.
Keywords
What are the words that make up a high-level programming language called?
Keywords, or reserved words
A_______error does not prevent the program from running but causes it to produce incorrect results.
Logic
Computers can execute only programs that are written in _________________.
Machine Language
The computer stores a program while the program is running, as well as the data that the program is working with, in____________.
Main Memory
Today, CPUs are small chips known as________________.
Microprocessors
What are the short words that are used in assembly language called?
Nmeumonics
Can you use C# alone to perform advanced operations such as creating GUIs, reading data from a file, or working with databases? Why or why not?
No, you cannot use C# alone to perform advanced operations such as creating GUIs, reading data from a file, or working with databases because C# provides only the basic keywords and operators that you need to construct a program.
What type of software controls the internal operations of the computer's hardware?
Operating System
A video display is a(n)_______________device.
Output Device
The tiny dots of color that digital images are composed of are called_______.
Pixels
A(n)________ is a set of instructions that a computer follows to perform a task.
Program
What is pseudocode? What is a flowchart?
Pseudocode is a method of describing computer algorithms using a combination of natural language and programming language. Flowcharts are written with program flow from the top of a page to the bottom.
An informal language that has no syntax rules, and is not meant to be compiled or executed is called ___________.
Pseudocode.
____ is a volatile type of memory that is used only for temporary storage while a program is running.
RAM
How can you view the project's form if it is not automatically displayed in the Designer?
Right-click Form 1.cs in the Solution Explorer Click View Designer
A type of memory that can hold data for long periods of time-even when there is no power to the computer-is called__________________.
Secondary Storage
The rules that must be followed when writing program are called_______.
Syntax
The part of a computer that runs programs is called________.
The CPU
Figure 1-49 shows the Visual Studio IDE. What are the names of the four areas that are indicated in the figure?
ToolBox, Form, Properties, and Solution Explorer
An interpreter is a program that both translates and executes the instructions in a high-level language program.
True
Any piece of data that is stored in a computer's memory must be stored as a binary number.
True
Assembly language is considered a high-level language.
True
C# provides only the basic keywords and operators that you need to construct a program.
True
Machine language is the only language that a CPU understands.
True
Main memory is also known as RAM.
True
Negative numbers are encoded using the__________________technique.
Two's Complement
A______ is any hypothetical person using a program and providing input for it.
User
The________________is the part of a computer with which the user interacts.
User Interface
Why is the CPU the most important component in a computer?
Without the CPU, the computer could not run software.
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.
.NET Framework
A bit that is turned off represents the following value:
0
What number does a bit that is turned on represent? What number does a bit that is turned off represent?
1 represents the on position and 0 represents the off position.
What would you call a device that works with binary data?
A Digital Device
What is the difference between a compiler and an interpreter?
A compiler translates a high-level language program into a separate machine language program. An interpreter both translates and executes the instructions of a high-level program.
When a program runs in a text-based environment, such as a command line interface, what determines the order in which things happen?
The Programmer or User