Ch1 Test Questions & Answers Introduction To Computers And - Test Bank | Visual C# 5e by Tony Gaddis. DOCX document preview.
Starting Out with Visual C#, 5e (Tony Gaddis)
Chapter 1 Introduction to Computers and Programming
TRUE/FALSE
1. Computers can perform a wide variety of tasks because they can be programmed in ways that are specific to the needs of applications.
2. Today's microprocessors are less powerful than the larger electromechanical CPUs in early computers.
3. RAM memory retains its contents when a computer is turned off.
4. Programs are usually stored in main memory and loaded into secondary storage as needed.
5. Most of a computer's RAM is stored in the same device that performs calculations.
6. Data is not recorded magnetically on an optical disc but is encoded as a series of pits on the disc surface.
7. The two general categories of software are system software and utility software.
8. Some examples of application software are spreadsheet programs, Web browsers, games, and email programs.
9. Any piece of data stored in a computer's memory must be stored as a decimal number.
10. The largest value that can be stored in a byte is 1.
11. The term 'pixel' stands for 'picture element.'
12. A binary number can only represent integer values from 0 through 255.
13. A program is a list of instructions that tell the CPU to perform operations.
14. The CPU can only execute machine language programs.
15. A machine language instruction exists for each basic operation a CPU can do.
16. If a program's source code contains a syntax error, it can still be translated to machine language by a compiler.
17. In a program with a graphical user interface, all of the objects are always visible when the program starts.
18. The C# language provides classes and other code necessary to create GUIs and perform many other advanced operations.
19. The C# language allows you to write your own classes that have specific fields, properties, and methods for any application.
20. The .NET framework provides classes to create Forms, TextBoxes, Labels, Buttons, and many other types of objects.
MULTIPLE CHOICE
1. A computer's memory is divided into tiny storage locations known as __________.
a. | sectors | b. | arrays | c. | cells | d. | bytes |
2. In the __________ numbering system, all numeric values are written as sequences of the digits 0 and 1.
a. | hexadecimal | c. | octal |
b. | decimal | d. | binary |
3. Programs are commonly referred to as __________.
a. | applications | c. | software |
b. | simulations | d. | firmware |
4. Which refers to all the physical devices or components of a computer?
a. | hardware | c. | machine |
b. | workstation | d. | system |
5. The __________ is the part of a computer's hardware that executes each instruction in a program.
a. | CPU | c. | main memory |
b. | software | d. | programming language |
6. __________ is a type of memory that can hold data for long periods of time, even when there is no power to the computer.
a. | RAM | c. | Application software |
b. | Secondary storage | d. | Main memory |
7. The computer component that collects data and sends it to the computer is called a(n) __________.
a. | storage device | c. | sending unit |
b. | output device | d. | input device |
8. Any data that the computer produces and sends to another device, such as a video display or speaker, is known as __________.
a. | output | b. | software | c. | firmware | d. | multimedia |
9. A(n) __________ performs a specialized task that enhances the computer's operation or safeguards data.
a. | utility program | c. | USB drive |
b. | secondary storage device | d. | operating system |
10. __________ is an extensive encoding scheme that is compatible with ASCII and can also represent the characters of many of the world's languages.
a. | Baudot code | b. | EBDIC | c. | ANSEL | d. | Unicode |
11. Before a computer can store a real number in memory, it must be encoded in __________.
a. | floating-point notation | c. | EBCDIC |
b. | hexadecimal | d. | decimal mode |
12. A(n) __________ is any device that works with binary data.
a. | electronic module | c. | binary machine |
b. | digital device | d. | computational tool |
13. Digital images are composed of tiny dots of color known as __________.
a. | halftone cells | c. | light-emitting diodes |
b. | pixels | d. | raster elements |
14. A digital song is broken into small pieces known as ___________.
a. | tones | b. | pulses | c. | samples | d. | waves |
15. When a CPU executes each instruction in a program, it uses a process known as the __________.
a. | fetch-decode-execute cycle | c. | code assembly process |
b. | ready-set-go phase | d. | compilation sequence |
16. Instead of using binary numbers for instructions, assembly language uses short words known as __________.
a. | mnemonics | b. | keywords | c. | operators | d. | terms |
17. Words that have a predefined meaning in a high-level language are known as __________ or reserved words.
a. | mnemonics | b. | keywords | c. | pseudonyms | d. | semantics |
18. Programming languages have __________ that perform various operations on data.
a. | mnemonics | b. | keywords | c. | states | d. | operators |
19. A special program known as a(n) __________ is used to translate an assembly language program into a machine language program.
a. | interpreter | c. | translator |
b. | assembler | d. | code conversion tool |
20. A(n) __________ allows you to create powerful and complex programs without knowing how the CPU works and without writing a large amount of low-level instructions.
a. | assembler | c. | high-level language |
b. | interpreter | d. | virtual language |
21. Each programming language has its own __________ which is a set of rules that must be strictly followed when writing a program.
a. | convention | c. | syntax |
b. | conversion rules | d. | structure |
22. The individual instructions that you use to write a program in a high-level programming language are called __________.
a. | directives | c. | statements |
b. | commands | d. | orders |
23. A(n) __________ is a mistake such as a misspelled keyword, a missing punctuation character, or the incorrect use of an operator.
a. | parsed anomaly | c. | code bug |
b. | syntax error | d. | illegal operation |
24. Because GUI programs must respond to the actions of the user, they are said to be _________.
a. | response-based | c. | open-ended |
b. | drag-and-drop | d. | event-driven |
25. When you use a(n) __________ language, you create programs by putting together a collection of objects.
a. | object-oriented | c. | collective |
b. | object-based | d. | high-levek |
26. The data stored in an object are commonly called fields or __________.
a. | functions | c. | properties |
b. | characteristics | d. | values |
27. The operations that an object can perform are called __________.
a. | actions | b. | events | c. | properties | d. | methods |
28. In object-oriented programming with a GUI interface, a window displayed on the screen is called a __________.
a. | window object | c. | form object |
b. | screen object | d. | frame object |
29. A __________ object displays text on a form.
a. | Text | b. | Font | c. | Character | d. | Label |
30. A __________ is code that describes a particular type of program object.
a. | class | b. | specification | c. | blueprint | d. | diagram |
31. Before beginning a new programming project, you must __________.
a. | design the program's logic | c. | write the program's code |
b. | correct syntax errors | d. | understand the program's purpose |
32. A(n) __________ describes a set of well-defined logical steps that must be taken to perform a task.
a. | flowchart | b. | schematic | c. | algorithm | d. | outline |
33. An algorithm written out in plain English statements is called __________.
a. | prototyping | b. | pseudocode | c. | outlining | d. | quick-code |
34. A __________ is a diagram that graphically depicts the steps of an algorithm.
a. | flowchart | c. | schematic |
b. | billboard | d. | hierarchy chart |
35. A(n) __________ is a mistake that does not prevent a program from starting but causes it to produce incorrect results.
a. | syntax error | c. | parse error |
b. | logic error | d. | running error |
36. A(n) __________ provides all the necessary tools to create, test, and debug software.
a. | super computer |
b. | integrated development environment (IDE) |
c. | operating system |
d. | software development kit (SDK) |
37. In Visual Studi each Visual C# application you create is called a __________.
a. | solution | b. | file | c. | source | d. | project |
38. When you create a Visual C# application, use the __________ window to examine and change a control's properties.
a. | Properties | c. | Designer |
b. | Solution Explorer | d. | Attributes |
39. When you create a new project using Visual Studio, it will be stored in a __________ at the location you specify on your computer's disk.
a. | Solution folder | c. | Solution file |
b. | Project folder | d. | System file |
40. A computer stores a program while the program is running as well as the data used by the program in __________.
a. | main memory | c. | the CPU |
b. | the software | d. | secondary storage |