Term
| The technique of _______ allows you to creat GUIs without writing any code. |
|
Definition
|
|
Term
| A(n) ______ is a group of one ore more projects that collectively form a Visual C# app. |
|
Definition
|
|
Term
| The _______ feature hides a windows in the IDE. |
|
Definition
|
|
Term
| A(n) _______ appears when the moust pointer hovers over an icon. |
|
Definition
|
|
Term
| The _________ window allows you to browse solution files. |
|
Definition
|
|
Term
| The properies in the Properties window can be sorted _______ or ________ |
|
Definition
| alphebetically, categorically |
|
|
Term
| A form's _______ property specifies the text displayed in the Form's title bar. |
|
Definition
|
|
Term
| The _____ contains the controls that yo u can add to a form. |
|
Definition
|
|
Term
| ________ displays relevant help articles based on the current context. |
|
Definition
|
|
Term
| The _______ property specifies how text is aligned within a Label's boundaries. |
|
Definition
|
|
Term
| X toggles auto-hide for a window |
|
Definition
|
|
Term
| The toolbar icons represent various menu commands. |
|
Definition
|
|
Term
| The toolbar contains icons that represent controls you can drag on to a form. |
|
Definition
|
|
Term
| Both forms, and labels have a title bar. |
|
Definition
|
|
Term
| Control Properties an be modified only by writing code. |
|
Definition
|
|
Term
| PictureBoxes typically display images. |
|
Definition
|
|
Term
| Visual C# files use the file extension .csharp |
|
Definition
|
|
Term
| A form's background color is set using the BackColor property. |
|
Definition
|
|
Term
| A(n)_____ begins the body of every method, and a(n) _____ ends the body of every method. |
|
Definition
| Left Brace {, right brace }. Sometimes called curly brace. |
|
|
Term
| Most statements end with a(n)_____ |
|
Definition
|
|
Term
| The ______ statement is used to make decisions. |
|
Definition
|
|
Term
| ______ begins a single line comment |
|
Definition
|
|
Term
| ____, ____, and ____ are called whitespace characters. Newline characters are also considered whitespace characters. |
|
Definition
| Blank lines, space characters, tab characters. |
|
|
Term
| ____ are reserved for use by C# |
|
Definition
|
|
Term
| Methods ____ and ____ display information in the console window. |
|
Definition
| Console.WriteLine, and ConsoleWrite |
|
|
Term
| C# apps begin execution at method ____ |
|
Definition
|
|
Term
| Comments cause the computer to display the text after the // on the screen when the app executes. |
|
Definition
|
|
Term
| C# considers the variables number and NuMbEr identical |
|
Definition
|
|
Term
| The remainder operator (%) can be used only with integer operands. |
|
Definition
|
|
Term
| The arithmetic operators *, /, %, +, and - all have the same level of precedence. |
|
Definition
|
|
Term
Write a statement to accomplish this task:
Declare variables c, thisIsAVariable, q76354, and number to be type int. |
|
Definition
| int = c, thisIsAVariable, q76354, number; |
|
|
Term
Write a statement to accomplish this task:
Prompt the user to enter an integer. |
|
Definition
| Console.Write( "Enter an integer" ); |
|
|
Term
Write a statement to accomplish this task:
Input an integer, and assign the result to int variable "value". |
|
Definition
| value = Convert.ToInt32( Console.ReadLine() ); |
|
|
Term
Write a statement to accomplish this task:
If the variable number is not equal to 7, then display "The variable number does not equal 7". |
|
Definition
if (number != 7 ) Console.WriteLine("The variable number does not equal 7") |
|
|
Term
Write a statement to accomplish this task:
Display "This is a C# app" on one line in the console window. |
|
Definition
| Console.WriteLine( "This is a C# app" ) |
|
|
Term
|
Definition
|
|
Term
Write a statement to accomplish this task:
Display "This is a C# app" on two lines in the console window. The first line should end with C#. Use method Console.WriteLine, and two format items. |
|
Definition
| Console.WriteLine( "{0}\n{1}", "This is a C#", " app" ); |
|
|
Term
Identify, and correct the errors:
if ( c < 7 ); Console.WriteLine( "c is less than 7" ); |
|
Definition
| Semicolon after the right parenthesis after the condition (c<7) in the if statement. To correct, remove the semicolon after the right parenthesis. Basically, you ended the step prematurely with the first semicolon. This causes it do basically skip the if statement, and go directly to writing the next statement in the window. |
|
|
Term
Identify, and correct the errors:
if (C => 7 ) Console.WriteLine( "c is equal to, or greater than 7" ); |
|
Definition
| The relational operator => is incorrect. Change it to >=. C# doesn't know what => means. Syntax is incorrect. |
|
|
Term
Write Declarations, statements, or comments that accomplish the task:
State that an app will calculate the product of 3 integers. |
|
Definition
| //app to calculate the product of 3 integers |
|
|
Term
Write Declarations, statements, or comments that accomplish the task:
Declare the variables x, y, and z, and result to be of type int. |
|
Definition
|
|
Term
Write Declarations, statements, or comments that accomplish the task:
Prompt the user to enter the first integer. |
|
Definition
| Console.Write( "Enter first integer: " ); |
|
|
Term
Write Declarations, statements, or comments that accomplish the task:
Read the first integer, and store it in the variable "x". |
|
Definition
| x = Convert.ToInt32( Console.ReadLine() ); |
|
|
Term
Write Declarations, statements, or comments that accomplish the task:
Prompt the user to enter the second integer. |
|
Definition
| Console.Write( "Enter second integer: " ); |
|
|
Term
Write Declarations, statements, or comments that accomplish the task:
Read the first integer, and store it in the variable "y". |
|
Definition
| y = Convert.ToInt32( Console.ReadLine() ); |
|
|
Term
Write Declarations, statements, or comments that accomplish the task:
Read the first integer, and store it in the variable "z". |
|
Definition
| z = Convert.ToInt32( Console.ReadLine() ); |
|
|
Term
Write Declarations, statements, or comments that accomplish the task:
Prompt the user to enter the third integer. |
|
Definition
| Console.Write( "Enter third integer: " ); |
|
|
Term
Write Declarations, statements, or comments that accomplish the task:
Compute the product of the three integers contained in variables x, y, and z, and assign the result to the variable result. |
|
Definition
|
|
Term
Write Declarations, statements, or comments that accomplish the task:
Display the message "Product is", followed by the value of the variable result. |
|
Definition
| Console.WriteLine( "The product is: {0}", result ); |
|
|
Term
| Write a program to calculate the product of 3 variables. |
|
Definition
//Product.cs
//Calculate product of 3 integers.
using System;
public class Product
{
public static void Main( string[] args )
{
int x, y, z, result; //stores numbers to be entered by user, and product as result
Console.Write( "Enter the first integer: " ); //prompt for input
x = Convert.ToInt32( Console.ReadLine( ) ); // read first integer
Console.Write( "Enter the second integer: "); // prompt for input
y = Convert.ToInt32( Console.ReadLine( ) ); // read second integer
Console.Write( "Enter the third integer: " ); //prompt for input
z = Convert.ToInt32( Console.ReadLine( ) ); //read third integer
result = x * y * z; // calculate product Console.WriteLine( "Product is {0}", result );//display the result
}//end main
}//end class product |
|
|
Term
| A house is to a blueprint as a(n) ____ is to a class. |
|
Definition
|
|