Name:     ID: 
 
Email: 

cSharp final a

True/False
Indicate whether the statement is true or false.
 

 1. 

1. The rule that every statement should end with a semicolon is an example of a syntax rule.
 

 2. 

IDE stands for Integrated Development Environment.
 

 3. 

Both static and constant are keywords in C#.
 

 4. 

Prototypes range from being elaborate designs created with graphics, word processing, or paint programs, to being quite cryptic sketches created with paper and pencil.
 

 5. 

In C#, it is tradition to name the file containing the class the same name as the class name, except the file name will have a .c# extension affixed to the end of the name.
 

 6. 

Classes and class diagrams are used most often with the structured procedural approach to software development.
 

 7. 

Constants are normally named using all lowercase characters, separating second and subsequent words with the underscore character.
 

 8. 

You can combine as many AND and OR operators in an expression as needed.
 

 9. 

When if-else statements are nested, each else is always paired with the most recent unpaired if.
 

 10. 

Flowchart creators use diamond shapes to indicate alternative courses of action.
 

 11. 

It is illegal to use a block to contain a single statement.
 

 12. 

Professional programmers usually do not retain the default names for Forms and controls.
 

 13. 

So much code is needed to create even the simplest of GUI programs that it is far more practical to develop the user interface visually in an IDE.
 

 14. 

When you instantiate an array, you can choose its location in memory.
 

 15. 

When loop structures are nested, the inner loop must be entirely contained within the outer loop; loops can never overlap.
 

 16. 

In C#, an array's elements are numbered beginning with 1.
 

 17. 

In C#, arrays are objects.
 

 18. 

A Boolean expression is evaluated within every while loop to determine whether the loop body will execute.
 

 19. 

Statements in a for loop body cannot be blocked.
 

 20. 

You cannot use a while loop for indefinite loops.
 

Multiple Choice
Identify the choice that best completes the statement or answers the question.
 

 21. 

A(n) ____ version of software has not been fully tested and may still contain bugs or errors.
a.
alpha
c.
bug
b.
maintenance
d.
beta
 

 22. 

In Visual Studio .NET, the feature that attempts to sense what you are going to type before you type it is called ____.
a.
Help
c.
IntelliSense
b.
tools
d.
ToolTip
 

 23. 

Which of the following would display "Good day!" on the screen?
a.
WriteLine.Console("Good day!");
c.
WriteLine.Console{"Good day!"};
b.
Console.WriteLine["Good day!"];
d.
Console.WriteLine("Good day!");
 

 24. 

The value 3.42e-4 is equivalent to _____.
a.
3420000
c.
-3.420000
b.
.000342
d.
-.000342
 

 25. 

The first step found in most software development methodologies is ____.
a.
design
c.
code
b.
analysis
d.
desk check
 

 26. 

Which statement subtracts 100 from the original value of an answer?
a.
100 -= answer;
c.
answer =- 100;
b.
answer = 100 -;
d.
answer -= 100;
 

 27. 

The special character that can be used with an identifier is ____.
a.
-
c.
*
b.
_
d.
#
 

 28. 

Another way to write the following expression is ____.
                                             ans *= v1 - 1;
a.
ans = v1 * ans - 1;
c.
ans = ans * v1--;
b.
ans = v1 * (ans - 1);
d.
ans = ans * --v1;
 

 29. 

Packaging data characteristics and behaviors into a class is called ____.
a.
inheritance
c.
encapsulation
b.
instantiation
d.
classes
 

 30. 

The compiler checks for ____.
a.
semantic violations
c.
debugger options
b.
files that are too large
d.
syntax rule violations
 

 31. 

When creating a flowchart or pseudocode representation of a task, what type of structure is one in which one step follows another unconditionally?
a.
single-decision
c.
branched
b.
dual-decision
d.
sequence
 

 32. 

After a user types a value into a TextBox in an executing program, where is the value stored?
a.
In the Text property of the TextBox.
c.
In the Label property of the TextBox.
b.
In the String property of the TextBox.
d.
In the Name property of the TextBox
 

 33. 

What sort of evaluation involves the evaluation of expressions in each part of a compound, conditional Boolean expression only as much as necessary to determine whether the expression is false?
a.
sequential
c.
smart
b.
sequence
d.
short-circuit
 

 34. 

What kind of GUI object is rectangular and provides an interface for collecting, displaying, and delivering information?
a.
Labels
c.
Buttons
b.
TextBoxes
d.
Forms
 

 35. 

What property can be modified to change the tab order for a GUI component?
a.
TabPos
c.
TabIndex
b.
TabNum
d.
TabPlace
 

 36. 

What conditional operator can be used to create a compound Boolean expression as an alternative to if statements?
a.
OR
c.
XOR
b.
AND
d.
NOT
 

 37. 

When designing an application, what type of interface generally requires more time to develop?
a.
User
c.
Console
b.
GUI
d.
TUI
 

 38. 

The if expression that precedes a block in a decision structure is known as what type of statement?
a.
sequence
c.
K & R
b.
conditional
d.
control
 

 39. 

What serves as a control that is used to display text such as a prompt or a result of some computation?
a.
Form
c.
Label
b.
Button
d.
TextBox
 

 40. 

What should you use if you wish to execute two or more statements conditionally?
a.
A switch statement.
c.
A defined sequence structure.
b.
A block enclosed within a pair of curly braces.
d.
A declared decision structure.
 

 41. 

After you have added a Button onto a form, what can you do in order to create a method that executes when the user clicks the Button?
a.
You can select the Button, then create the method
c.
You can single click the Button, and then create the method.
b.
You can double-click the Button, and then create the method.
d.
You must delete the Button, and create the method first, then call the Button object by name.
 

 42. 

A loop that is controlled by user input rather than altered by arithmetic is known as what type of loop?
a.
definite
c.
sentinel
b.
indefinite
d.
infinite
 

 43. 

What technique can be used to combine two different loops into one?
a.
pretesting loop
c.
loop accumulation
b.
short-circuiting loop
d.
loop fusion
 

 44. 

What can you use to assign a list of nondefault values to array elements at declaration?
a.
value specification
c.
initializer list
b.
array specification
d.
array initializer
 

 45. 

What type of loop checks a Boolean expression at the "top" of the loop before the body has a chance to execute?
a.
do
c.
switch
b.
repeat
d.
while
 

 46. 

When using nested loops, what loop is contained entirely within an outer loop?
a.
posttest loop
c.
inner loop
b.
pretest loop
d.
for loop
 

 47. 

What C# method should you use in order to arrange an array in ascending order?
a.
Reverse()
c.
Order()
b.
BinarySearch()
d.
Sort()
 

 48. 

An array subscript can be an expression, but only as long as the expression evaluates to what type?
a.
int
c.
double
b.
float
d.
boolean
 

 49. 

What is a garbage value in the C# programming language?
a.
It is an unknown, unassigned value.
c.
It is a variable that is used as a placeholder.
b.
It is a variable that is assigned a value that has no purpose.
d.
It is a variable that holds output text after it is displayed.
 

 50. 

What operator is used for the purpose of creating objects in C#?
a.
save
c.
new
b.
initialize
d.
reserve
 



 
         Start Over