Starting Out with visual C# Midterm

studied byStudied by 1 person
0.0(0)
Get a hint
Hint

A(n) _______________ is a set of instructions that a computer follows to perform a task.

1 / 249

flashcard set

Earn XP

Description and Tags

250 Terms

1

A(n) _______________ is a set of instructions that a computer follows to perform a task.

program

New cards
2

The physical device that a computer is made of are referred to as ___________

Hardware

New cards
3

The part of a computer that runs programs is called _____________

CPU

New cards
4

Today, CPUs are small chips known as __________.

Microprocessors

New cards
5

The computer stores a program while the program is running, as well as the data that the program is working with, in ____.

main memory

New cards
6

______________ is a volatile type of memory that is used only for temporary storage while a program is running.

RAM

New cards
7

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

New cards
8

A component that collects data from people or other devices and sends it to the computer is called ____.

an input device

New cards
9

A video display is a(n) __________ device.

output device

New cards
10

A __________ is enough memory to store a letter of the alphabet or a small number.

byte

New cards
11

A byte is made up of eight

bits

New cards
12

In the _________ numbering system, all numeric values are written as sequences of 0s and 1s

binary

New cards
13

A bit that is turned off represents the following value: __________.

0 (zero)

New cards
14

A set of 128 numeric codes that represent the English letters, various punctuation marks, and other characters is __________.

ASCII

New cards
15

An extensive encoding scheme that can represent characters for many languages in the world is ____.

Unicode

New cards
16

Negative numbers are encoded using the __________ technique.

two's complement

New cards
17

Real numbers are encoded using the __________ technique.

floating point

New cards
18

The tiny dots of colour that digital images are composed of are called ___________.

Pixels

New cards
19

If you were to look at a machine language program, you would see _________.

a stream of binary numbers

New cards
20

In the __________ part of the fetch-decode-execute cycle, the CPU determines which operation it should perform

decode

New cards
21

Computers can execute only programs that are written in __________.

machine language

New cards
22

The ___________ translates an assembly language program to a machine language program.

compiler

New cards
23

The words that make up a high-level programming language are called __________.

key words

New cards
24

The rules that must be followed when writing a program are called __________.

syntax

New cards
25

A(n) ___________ is a program that translates a high-level language program into a separate machine language program.

compiler

New cards
26

A ____________ is a hypothetical person using a program and providing input for it

user

New cards
27

A __________ error does not prevent the program from running but causes it to produce incorrect results

logic

New cards
28

A(n) __________ is a set of well-defined logical steps that must be taken to perform a task

algorithms

New cards
29

An informal language that has no syntax rules, and is not meant to be compiled or executed is called __________.

Pseudocode

New cards
30

A ____________ is a diagram that graphically depicts the steps that take place in a program

flowchart

New cards
31

Objects that are visible in a program's graphical user interface are commonly referred to as ________.

Controls

New cards
32

A __________ is code that describes a particular type of object.

class

New cards
33

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

New cards
34

The ________ is the part of a computer with which the user interacts

user interface

New cards
35

Before GUIs became popular, the __________ interface was the most commonly used.

command line

New cards
36

_________ programs are usually event driven

GUI

New cards
37

A(n) (blank) is the thin dotted line that encloses an object in the Designer.

bounding box

New cards
38

The small squares that appear on the right edge, bottom edge, and lower-right corner of a form's bounding box are called (blank).

sizing handles

New cards
39

(Blank) is the name of the blank form that Visual Studio initially creates in a new project.

Form1

New cards
40

The (blank) property holds text that is displayed on the face of the button.

Text

New cards
41

A file that contains program code is called a(an) (blank)

source code file

New cards
42

A namespace is container that holds (blank)

classes

New cards
43

A(n) (blank) is a method that executes when a specific event takes place while an application is running

event handler

New cards
44

The statement MessageBox.Show("Hello World"); is an example of a(n) (blank)

method call

New cards
45

In programming we use the term string to mean (blank)

string of characters

New cards
46

A(n) (blank) marks the end of a programming statement in C#

semicolon

New cards
47

A piece of data that is written into a program's code is a(n) (blank)

literal

New cards
48

The time during which you build the GUI and write the application's code is referred to as (blank)

design time

New cards
49

The time during which an application is executing is referred to as (blank)

run time

New cards
50

When you want to display text on a form, you use a (blank) control

Label

New cards
51

The (blank) property allows you to set the font, font style, and size of the control's text.

Font

New cards
52

A (blank) property can be set to one of two possible values: True or False.

Boolean

New cards
53

Label controls have a(n) (blank) property that controls the way they can be resized.

AutoSize

New cards
54

The (blank) property can be used to change the text's alignment in the label.

TextAlign

New cards
55

In code, you can use a(n) (blank) to store a value in a control's property.

assignment statement

New cards
56

The equal sign (=) is known as the (blank)

assignment operator

New cards
57

The standard notation for referring to a control's property in code is (blank)

ControlName.PropertyName

New cards
58

(Blank) is a feature of Visual Studio that provides automatic code completion as you write programming statements

IntelliSense

New cards
59

You can use a(n) (blank) control to display a graphic image on a form

PictureBox

New cards
60

Once you created a PictureBox control, you use its (blank) property to specify the image that it will display.

Image

New cards
61

The PictureBox control's (blank) property speficies how the control's image is to be displayed.

SizeMode

New cards
62

(Blank) is the image's width to height ratio.

Aspect ratio

New cards
63

Most controls have a (blank) property that determines whether the control is visible on the form at run time

Visible

New cards
64

A(n) (blank) appears on one linen in a program

line comment

New cards
65

A (blank) can occupy multiple consecutive lines in a program

block comment

New cards
66

Programmers commonly use blank lines and indentations in their code to create a sense of (blank)

visual organization

New cards
67

To close an application's form in code, you use the statement (blank)

this.Close();

New cards
68

When the user types into a TextBox control, the text is stored in the control's --------- property.

Text

New cards
69

A ----- is a storage location in memory that is represented by a name.

Variables

New cards
70

In C#, you must ------- a variable before you can use it to store data.

Declare

New cards
71

A variable's ----- indicates the type of data that the variable will hold.

Data Type

New cards
72

Fundamental types of data, such as strings, integers, and real numbers, are known as ---------.

Primitive Data Types

New cards
73

A ---------- identifies a variable in the program code.

Variable Name

New cards
74

A common operation performed on strings is -----, or appending one string to the end of another string.

Concatenation

New cards
75

A ------- belongs to the method in which it is declared, and only statements inside that method can access the variables.

Local Variable

New cards
76

Programmers use the term ---------- to describe the part of a program in which a variable may be accessed.

Scope

New cards
77

A variable's ------- is the time period during which the variable exists in memory while the program is executing.

Lifetime

New cards
78

One way to make sure that a variable has been assigned a value is to ------ the variable with a value when you declare it.

Initialize

New cards
79

You can use a ---------- to explicitly convert a value from one numeric data type to another, even if the conversion might result in a loss of data.

Cast Operator

New cards
80

The process of dropping a number's fractional part is called ---------.

Truncation

New cards
81

A programmers tools for performing calculations are ----.

Math Operators

New cards
82

A ----- performs a calculation and gives a value.

Math Expression

New cards
83

C# offers a special set of operators known as ----- that are designed specifically for changing the value of a variable without having to type the variables name twice.

Combined Assignment Operators

New cards
84

In computer science, the term ----- typically means to analyze a string of characters for some purpose.

Parse

New cards
85

A(n) ------- is a piece of data that is passed into a method.

Argument

New cards
86

A(n) ------ is an unexpected error that occurs while a program is running causing the program to halt if that error is not properly dealt with.

Exception

New cards
87

The ------- indicates that you want the number to appear formatted in a specific way when it is returned as a string from the /ToString/ method.

Formatting String

New cards
88

You have started an application by clicking the start /Debugging/ button or by pressing (F5) on the keyboard. If an exception is thrown, the application stops running and visual studio goes into a special mode known as -------.

Break Mode

New cards
89

Code that responds to exceptions when they are thrown and prevents the program from abruptly crashing is called a(n) -----------.

Exception Handler

New cards
90

A ------- is a name that represents a value that cannot be changed during the program's execution.

Named Constant

New cards
91

A ----------- is a variable that is declared inside a class but not inside any method.

Class Variable

New cards
92

A(n) ----- specifies how a class member can be accessed by code outside the class.

Access Modifier

New cards
93

A -------- is a field that cannot be changed by any statement in the class.

Constant Field

New cards
94

the .NET framework provides a class named ----------, which contains numerous methods that are useful for performing advanced mathematical operations.

Math

New cards
95

When a control has the --------, it receives the user's keyboard input.

Focus

New cards
96

The order in which controls receive the focus is called the --------.

Tab Order

New cards
97

The ------ contains a numerical value, which indicates the control's position in the tab order.

TabIndex Property

New cards
98

A _____ structure executes a set of statements only under certain circumstances.

Decision

New cards
99

A _____ structure provides one alternative path of execution.

Single-Alternative Path

New cards
100

A(n) ______ expression has a value of either true or false.

Boolean

New cards

Explore top notes

note Note
studied byStudied by 9 people
... ago
5.0(1)
note Note
studied byStudied by 275 people
... ago
5.0(6)
note Note
studied byStudied by 5 people
... ago
5.0(1)
note Note
studied byStudied by 202 people
... ago
5.0(1)
note Note
studied byStudied by 1 person
... ago
5.0(1)
note Note
studied byStudied by 1 person
... ago
5.0(1)
note Note
studied byStudied by 20 people
... ago
5.0(2)

Explore top flashcards

flashcards Flashcard (175)
studied byStudied by 6 people
... ago
5.0(1)
flashcards Flashcard (25)
studied byStudied by 6 people
... ago
5.0(1)
flashcards Flashcard (100)
studied byStudied by 20 people
... ago
5.0(1)
flashcards Flashcard (73)
studied byStudied by 22 people
... ago
5.0(1)
flashcards Flashcard (28)
studied byStudied by 16 people
... ago
4.0(1)
flashcards Flashcard (60)
studied byStudied by 14 people
... ago
5.0(1)
flashcards Flashcard (101)
studied byStudied by 13 people
... ago
5.0(1)
flashcards Flashcard (116)
studied byStudied by 7 people
... ago
5.0(1)
robot