Name:     ID: 
 
Email: 

C# Quiz 1

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

 1. 

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

 2. 

Given the following output statement, what would be displayed?
                                      Console.Write("Ok\\ \"I\'m sure\"");
a.
"Ok\\ \"I\'m sure\""
c.
Ok "I'm sure"
b.
Ok\ "I'm sure"
d.
Ok I'm sure
 

 3. 

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

 4. 

Which of the following is a valid identifier?
a.
score#1
c.
finalGrade
b.
amount owed by student
d.
4thExam
 

 5. 

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
 

 6. 

The Hexadecimal numbering system uses all of the following symbols EXCEPT _____.
a.
0
c.
F
b.
A
d.
H
 

 7. 

An IDE enables you to ____.
a.
type your program statements into an editor
c.
compile an application
b.
debug an application
d.
all of the above
 

 8. 

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

 9. 

The compiler is responsible for ____.
a.
translating  high-level programming language into machine-readable form
c.
producing output from programming language such as C#
b.
controlling the operation of the system
d.
producing UML diagrams during the design phase
 

 10. 

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

 11. 

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
 

 12. 

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;
 

 13. 

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

 14. 

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!");
 

 15. 

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

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

 16. 

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

 17. 

Classes, methods, namespaces, and properties follow the Pascal case naming convention, which indicates that the first letter in the identifier is in lowercase and the first letter of each subsequent concatenated word is capitalized.
 

 18. 

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

 19. 

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

 20. 

Comments are considered instructions to the computer.
 

 21. 

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

 22. 

IDE stands for Integrated Development Environment.
 

 23. 

Both static and constant are keywords in C#.
 

 24. 

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.
 

 25. 

An int variable would be the most appropriate type for a memory location that will be used to store the monthly membership dues for the computer club.
 



 
         Start Over