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.
|
Comments are considered instructions to the computer.
|
|
3.
|
IDE stands for Integrated Development Environment.
|
|
4.
|
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.
|
|
5.
|
Both static and constant are keywords in C#.
|
|
6.
|
Prototypes range from being elaborate designs created with graphics, word
processing, or paint programs, to being quite cryptic sketches created with paper and pencil.
|
|
7.
|
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.
|
|
8.
|
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.
|
|
9.
|
Classes and class diagrams are used most often with the structured procedural
approach to software development.
|
|
10.
|
Constants are normally named using all lowercase characters, separating second
and subsequent words with the underscore character.
|
Multiple Choice Identify the
choice that best completes the statement or answers the question.
|
|
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.
|
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 |
|
|
13.
|
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 |
|
|
14.
|
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 |
|
|
15.
|
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!"); |
|
|
16.
|
The value 3.42e-4 is equivalent to _____.
a. | 3420000 | c. | -3.420000 | b. | .000342 | d. | -.000342 |
|
|
17.
|
Which of the following is a valid identifier?
a. | score#1 | c. | finalGrade | b. | amount owed by student | d. | 4thExam |
|
|
18.
|
The Hexadecimal numbering system uses all of the following symbols EXCEPT
_____.
|
|
19.
|
The first step found in most software development methodologies is ____.
a. | design | c. | code | b. | analysis | d. | desk check |
|
|
20.
|
Which statement subtracts 100 from the original value of an answer?
a. | 100 -= answer; | c. | answer =- 100; | b. | answer = 100 -; | d. | answer -= 100; |
|
|
21.
|
The special character that can be used with an identifier is ____.
|
|
22.
|
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 |
|
|
23.
|
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; |
|
|
24.
|
Packaging data characteristics and behaviors into a class is called ____.
a. | inheritance | c. | encapsulation | b. | instantiation | d. | classes |
|
|
25.
|
The compiler checks for ____.
a. | semantic violations | c. | debugger options | b. | files that are too large | d. | syntax rule
violations |
|