CIS211C Intro to Programming - Final - Part 1

¡Supera tus tareas y exámenes ahora con Quizwiz!

Assuming an application has an exception object named ex, which of the following statements would cause the exception's default error message to be displayed in a message box?

MessageBox.Show(ex.Message);

A(n) ___ cannot display a title and does not have a Text property.

Panel control

When the user selects an item in a ListBox, the item is stored in the ListBox's ___ property.

SelectedItem

The Visual Studio ___ window shows a scrollible list of controls that you can add to a form.

Toolbox

The ___ method can determine whether a string contains a value that can be converted to a specific data type before it is converted to that data type.

TryParse

A(n) ___ describes a set of well-defined logical steps that must be taken to perform a task.

algorithm

Which of the following expressions determines if the value of the variable named balance is equal to 0?

balance == 0

A ___ property can be set to one of two possible values: True and False.

boolean

A computer's memory is divided into tiny storage locations known as ___.

bytes

A(n) ___ is the name of the desired data type, written inside parentheses and placed to the left of the values that you want to convert.

cast operator

A ___ appears as a small box with some accompanying text.

check box

A ___ is code that describes a particular type of program object.

class

A math expression involving a double and a(n) ___ is NOT allowed unless a cast operator is used to convert one of the operands.

decimal

Appending the letter M or m to a numeric literal causes the number to be considered a ___ literal.

decimal

When an operation involves an int and a decimal, the result will be a(n) ___.

decimal

The ___ method can be used to convert a string to a decimal.

decimal.Parse

A string can be converted to a decimal with the ___ method.

decimal.TryParse

A(n) ___ is a method that executes when a specific event such as clicking the mouse takes place while an application is running.

event handler

A(n) ___ is an unexpected error that occurs when a program is running, causing the program to halt of the error is not properly dealt with.

exception

When a CPU executes each instruction in a program, it uses a process known as the ___ cycle.

fetch-decode-execute

In object-oriented programming with a GUI interface, a window displayed on the screen is called a ___.

form object

Control names are also known as ___, the same term used for variables in programmers.

identifiers

A(n) ___ statement has two parts: an if clause and an else clause.

if-else

The ___ window in the debugger allows you to type the debugger commands using the keyboard.

immediate

The process of checking input for errors before it is processed is called ___.

input validation

Words that have a predefined meaning in a high-level language are known as ___ or reserved words.

keywords

A(n) ___ appears on one line in a program and begins with two forward slashes (//).

line comment

A ___ variable belongs to the method in which it is declared and only statements inside that method can access the variable.

local

A(n) ___ is a mistake that does NOT prevent a program form starting but causes it to produce incorrect results.

logic error

The C# language provides a set of operators known as ___ operators which you can use to create complex Boolean expressions.

logical

If you want your code to execute a method, write a statement known as a(n) ___ .

method call

Instead of using binary numbers for instructions, assembly language uses short words known as ___.

mnemonics

A ___ is a declared block in a program between braces {} that holds classes.

namespace

When you use a(n) ___ language, you create programs by putting together a collection of objects.

object-oriented

Any data that the computer produces and sends to another device, such as a video display or speaker, is known as ___.

output

A(n) ___ is a variable that is passed as an argument to a method and when the method is finished a value is stored in the variable.

output variable

Which of the following statements would display the number "25" in a label control named outputLabel?

outputLabel.Text = "25";

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

primitive

Assuming an application has a PictureBox control named profilePictureBox, which of the following assignment statements will hide the PictureBox from the user at runtime?

profilePictureBox.Visible = false;

A(n) ___ compares the values of two expressions.

relational operator

A(n) ___ structure is a set of statements that execute in the order in which they appear.

sequence

Both the && and || operators perform ___ in which CPU time is saved by not checking the expression on the right side of the operator depending on the value of the expression on the left side of the operator.

short-circuit evaluation

A(n) ___ decision structure provides only one path of execution.

single-alternative

If you do NOT initialize a(n) ___ field, it begins with a special value known as null.

string

Which of the following statements initializes a variable named color with the string red?

string color = "red";

The ___ method can be used to determine whether one string is greater than or less than another string.

string compare

Each programming language has its own ___ which is a set of rules that must be strictly followed when writing a program.

syntax

A(n) ___ is a mistake such as a misspelled keyword, a missing punctuation character, or the incorrect use of an operation.

syntax error

Which of the following statements changes the form's BackColor property to Blue?

this.BackColor = Color.Blue;

To close an application's form in code, use the ___ statement.

this.Close();

In C# an exception handler is written with the ___ statements.

try-catch

___ is an extensive encoding scheme that is compatible with ASCII and can also represent the characters of many of the world's languages.

unicode

The ___ directives that appear at the top of a C# source code file indicates which namespaces the program will use.

using

Which of the following will declare a variable of type int?

var myAge = 23;

The ___ operator is the logical OR operator which takes two boolean expressions as operands and creates a compound boolean expression that is true when either of the subexpressions is true.

||

The ___ is the part of a computer's hardware that executes each instruction in a program.

CPU

When a Radiobutton or CheckBox control's checked property changes, a ___ event happens for that control.

CheckChanged

Assuming a string variable named City has already been declared, which of the following statements assigns the string literal Vienna to the variable?

City = "Vienna";

The file named ___ contains code associated with a form named Form1.

Form1.cs

The expression given below will determine if the value is A is inside a range, if XX is replaced by which logical operator? (A<1) XX (A>10)

&&


Conjuntos de estudio relacionados

What is love and suffering wrkst

View Set

FINC311 CH10, Ch 11, CH12 Connect

View Set

Chapter 45: Drugs for Diabetes Mellitus

View Set

Chapter 1 Introduction to Cloud Computing and AWS

View Set

Chapter 8 Religion Christians of the Roman Empire ( AD 313-476)

View Set

TR-Thai Basketball Vocabulary and Phrases

View Set