ISM3232 Midterm Exam

Ace your homework & exams now with Quizwiz!

10. Word processing programs, spreadsheet programs, e-mail programs, Web browsers, and games are all examples of utility programs.

False

11. By default, a label's text is aligned with the bottom and right edges of the label's bounding box.

False

11. Programmers must be careful not to make syntax errors when writing pseudocode programs.

False

13. The assignment operator assigns the value that appears on its side to the item that appears on its right side.

False

15. Buttons are the only controls that can respond to Click events.

False

16. The Visible property is a Binary property, which means it can be set only to the values 1 and 0.

False

19. To close an application's form in code, you use the statement Close.This();

False

4. Images, such as the ones you make with your digital camera, cannot be stored as a binary number.

False

5. You add your own code to the Program.cs file as you develop an application.

False

6. Assembly language is considered a high-level language.

False

8. A syntax error does not prevent a program from being compiled and executed.

False

9. Windows, Linux, UNIX, and Mac OS are all examples of application software.

False

10. When a Label control's AutoSize property is set to True, you cannot manually change the size of the control by clicking and dragging its bounding box.

True

12. C# provides only the basic keywords and operators that you need to construct a program.

True

12. Label controls are useful for displaying output while an application is running.

True

14. PictureBox controls also have a BorderStyle property that works just like a Label control's BorderStyle property.

True

17. When you write the values true or false in code, they must be written in all lowercase letters.

True

18. In C#, there are three types of comments: line comments, block comments, and documentation comments.

True

2. Main memory is also known as RAM

True

2. When a form is created, its Text property is initially set to the same value as the form's name.

True

20. The Visual Studio code editor examines each statement as you type it, and reports any syntax errors that are found.

True

3. Any piece of data that is stored in a computer's memory must be stored as a binary number.

True

3. The form's title is displayed in the bar long the top of a form.

True

4. C# source code files always end with .cs extension.

True

5. Machine language is the only language that a CPU understands.

True

6. C# code is organized as methods, which are contained inside classes, which are contained inside namespaces.

True

7. An interpreter is a program that both translates and executes the instructions in a high-level language program.

True

7. In C# code, each opening brace must have a corresponding closing brace at some point later in the program.

True

8. When you double-click a control in the Designer, Visual Studio not only creates an empty event handler, but it also writes some code that you don't see, elsewhere in the project that is necessary for the event handler to properly function.

True

9. A Label control's Text property is initially set to the same value as the Label control's name.

True

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. a. .NET framework b. Standard Template Library c. GUI framework d. MSDN Library

a. .NET framework

26. __________ is the image's width to height ratio. a. Aspect ratio b. Size ratio c. Projection ratio d. Area ratio

a. Aspect ratio

16. A __________ property can be set to one of two possible values: True or False. a. Boolean b. Logical c. Binary d. dual

a. Boolean

A __________ is enough memory to store a letter of the alphabet or a small number. a. Byte b. bit c. Switch d. Transistor

a. Byte

21. The standard notation for referring to a control's property in code is __________. a. ControlName.PropertyName b. ControlName=PropertyName c. PropertyName.ControlName d. PropertyName=ControlName

a. ControlName.PropertyName

3. __________ is the name of the blank form that Visual Studio initially creates in a new project. a. Form1 b. Main c. New1 d. Blank

a. Form1

24. Once you have created a PictureBox control, you use its __________ property to specify the image that it will display. a. Image b. Source c. DrawSource d. ImageList

a. Image

__________ is a volatile type of memory that is used only for temporary storage while a program is running. a. RAM b. Secondary storage c. The disk drive d. The USB drive

a. RAM

The __________translates an assembly language program to machine language program. a. assembler b. compiler c. translator d. interpreter

a. assembler

29. A __________ can occupy multiple consecutive lines in a program. a. block comment b. square comment c. multiline comment d. machine comment

a. block comment

Before GUIs became popular, the __________ interface was the most commonly used. a. command line b. remote terminal c. sensory d. event-driven

a. command line

A __________ is a diagram that graphically depicts the steps that take place in a program. a. flowchart b. step chart c. code graph d. program graph

a. flowchart

The physical devices that a computer is made of are referred to as __________. a. hardware b. software c. the operating system d. tools

a. hardware

8. The statement MessageBox.Show("Hello World"); is an example of a(n) __________. a. method call b. namespace c. Click event d. event handler

a. method call

A video display is a(n) _________ device. a. output b. input c. secondary storage d. main memory

a. output

10. A(n) __________ marks the end of programming statement in C#. a. semicolon b. period c. hyphen d. undersocre

a. semicolon

The rules that must be followed when writing a program a called. a. syntax b. punctuation c. keywords d. operators

a. syntax

Negative numbers are encoded using the __________ technique. a. two's complement b. floating point c. ASCII d. Unicode

a. two's complement

A set of 128 numeric codes that represent the English letters, various punctuation marks, and other characters is __________. a. binary numbering b. ASCII c. Unicode d. ENIAC

b. ASCII

17. Label controls have a(n) _________ property that controls the way they can be resized. a. Stretch b. AutoSize c. Dimension d. Fixed

b. AutoSize

23. You can use a(n) __________ control to display a graphic image on a form. a. Graphics b. PictureBox c. Drawing d. ImageBox

b. PictureBox

4. The __________ property holds the text that is displayed on the face of the button. a. Name b. Text c. Tag d. Face

b. Text

If you were to look at a machine language program, you would see _________. a. C# code b. a stream of binary number c. English words d. circuits

b. a stream of binary number

A component that collects data from people or other devices and sends it to the computer is called __________. a. an output device b. an input device c. a secondary storage device d. main memory

b. an input device

20. The equal sign (=) is known as the __________. a. equality symbol b. assignment operator c. equality operator d. property position

b. assignment operator

In the __________ numbering system, all numeric values are written as sequences of 0s and 1s. a. hexadecimal b. binary c. octal d. decimal

b. binary

A(n) __________ is a program that translates a high-level program into a separate machine language program. a. assembler b. compiler c. translator d. utility

b. compiler

Objects that are visible in a program's graphical user interface are commonly referred to as __________. a. buttons b. controls c. forms d. windows

b. controls

In the __________ part of the fetch-decode-execute cycle, the CPU determines which operation it should perform. a. fetch b. decode c. execute d. immediately after the instruction is executed

b. decode

12. The time during which you build the GUI and write the application's code is referred to as __________. a. run time b. design time c. code time d. planning

b. design time

7. A(n) __________ is a method that executes when a specific event takes place while an application is running. a. action process b. event handler c. runtime procedure d. event method

b. event handler

Real numbers are encoded using the _______ technique. a. two's complement b. floating point c. ASCII d. Unicode

b. floating point

28. A(n) __________ appears on one line in a program. a. inline comment b. line comment c. forward comment d. block comment

b. line comment

Today, CPUs are small chips known as __________ a. ENIACs b. microprocessors c. memory chips d. operating systems

b. microprocessors

A(n) __________ is a set of instructions that a computer follows to perform a task. a. compiler b. program c. interpreter d. programming language

b. program

An informal language that has no syntax rules and is not meant to be compiled or executed is called __________. a. faux code b. pseudocode c. C# d. a flowchart

b. pseudocode

A __________ is any hypothetical person using a program and providing input for it. a. designer b. user c. guinea pig d. test subject

b. user

The __________ is the part of a computer with which the user interacts. a. central processing unit b. user interface c. control system d. interactivity system

b. user interface

30. Programmers commonly use blank lines and indentations in their code to create a sense of logic __________. a. logic b. visual organization c. documentation d. program flow

b. visual organization

A bit that is turned off represents the following value: __________. a. 1 b. -1 c. 0 d. "no"

c. 0

__________ programs are usually event driven. a. Command line b. Text-based c. GUI d. Procedural

c. GUI

22. __________ is a feature of Visual Studio that provides automatic code completion as you write programming statements. a. AutoCode b. AutoComplete c. IntelliSense d. IntelliCode

c. IntelliSense

14. When you want to display text on a form, you use a __________ control. a. Button b. PictureBox c. Label d. TextBox

c. Label

25. The PictureBox control's __________ property specifies how the control image is to be displayed. a. RenderMode b. DrawMode c. SizeMode d. ImageMode

c. SizeMode

An extensive encoding scheme that can represent characters for many languages in the world is ____. a. binary numbering b. ASCII c. Unicode d. ENIAC

c. Unicode

27. Most controls have a __________ property that determines whether the control is visible on the form at run time. a. Render b. Viewable c. Visible d. Draw

c. Visible

19. In code, you use a(n) __________ to store a value in a control's property. a. Click event b. method call c. assignment statement d. Boolean value

c. assignment statement

1. A(n) __________ is the thin dotted line that encloses an object in the Designer. a. selection marker b. control binder c. bounding box d. object container

c. bounding box

A __________ error does not prevent the program from running but causes it to produce incorrect results. a. syntax b. hardware c. logic d. fatal

c. logic

Computers can execute only programs that are written in __________. a. C# b. assembly language c. machine language d. Java

c. machine language

The computer stores a program while the program is running, as well as the data that the program is working with, in __________. a. secondary storage b. the CPU c. main memory d. the microprocessor

c. main memory

A type of memory that can hold data for long periods of time--even when there is nor power to the computer--is called __________. a. RAM b. main memory c. secondary storage d. CPU storage

c. secondary storage

9. In programming we use the term string to mean __________. a. many lines of code b. parallel memory locations c. string of characters d. virtually anything

c. string of characters

15. The __________ property allows you to set the font, font style, and size of the control's text. a. Style b. AutoSize c. Text d. Font

d. Font

18. The __________ property can be used to change the text's alignment in the label. a. TextPosition b. AutoAlign c. TextCenter d. TextAlign

d. TextAlign

A(n) __________ is a set of well-defined logical steps that must be taken to perform a task. a. logarithm b. plan of action c. logic schedule d. algorithm

d. algorithm

A byte is made up of eight __________. a. CPUs b. instructions c. variables d. bits

d. bits

A __________ is code that describes a particular type of object. a. namespace b. blueprint c. schema d. class

d. class

6. A namespace is a container that holds __________. a. methods b. names c. spaces d. classes

d. classes

The words that make up a high-level programming language are called __________. a. binary instructions b. mnemonics c. commands d. keywords

d. keywords

11. A piece of date that is written into a program's code is a(n) __________. a. identifier b. specifier c. keyword d. literal

d. literal

The tiny dots of color that digital images are composed of are called __________. a. bits b. bytes c. color packets d. pixels

d. pixels

13. The time during which an application is executing is referred to as __________. a. go time b. design time c. execution d. run time

d. run time

2. The small squares that appear on the right edge, bottom edge, and lower-right corner of a form's bounding box are called __________. a. sizing hooks b. form edges c. bounding tags d. sizing handles

d. sizing handles

5. A file that contains program code is called a(n) __________. a. destination code file b. executable file c. machine language file d. source code file

d. source code file

The part of a computer that runs programs is called __________. a. RAM b. secondary storage c. main memory d. the CPU

d. the CPU

31. To close an application's form in code, you use the statement __________. a. Close(); b. Close.This(); c. Close() d. this.Close();

d. this.Close();

1. Changing an object's Text property also changes the object's name.

False

1. Today, CPUs are huge devices made of electrical and mechanical components such as vacuum tubes and switches.

False


Related study sets

Life Insurance Policy (Chapter 4)

View Set

Property Unit 1 - Leasehold Estate/Lease

View Set

Theta Tau, Theta Gamma, Pledge Study Guide

View Set

Applying stem changing verbs (e-ie, o-ue)

View Set

PowerPoint & Other Presentation Options

View Set

Western civ. 1020 Chapters 16-20

View Set

Nervous System TEST - HUMAN ANATOMY Ch. 14

View Set

( 8 ) - Florida Laws and Rules Pertinent to Insurance

View Set