C# Programming Chapter 1
In which phase of the software development process would probing questions be used to verify the problem definition? a. analysis b. design c. coding d. implementation e. testing
Analysis
All of the following are examples of high-level programming languages, except: a. C# b. C c. Java d. C++ e. Assembly
Assembly
With the object-oriented methodology, the data members are referred to as: a. attributes or characteristics b. characteristics or behaviors c. methods or attributes d. behaviors or methods e. attributes or behaviors
Attributes or characteristics
What is the name of the feature in Visual Studio that displays in a scrollable list all available methods and properties when the dot is typed after an object name? a. Help b. Rotor c. Mono d. IntelliSense e. ToolTip
IntelliSense
The fully qualified call to the method that allows the user to input a single character is: a. Console.System.Read( ) b. System.Console.Read( ) c. Console.System.Write( ) d. System.Console.Write( ) e. System.Console.ReadLine( )
System.Console.Read( )
Which of the following is the name of a namespace needed for Console applications? a. using b. Console c. System.Console d. Write e. System
System
To see the results of an application, you _________ the code a. compile b. JIT c. execute d. edit e. desk check
execute
Which of the following is a keyword? a. Main( ) b. System c. using d. WriteLine e. all of the above
using
The following strategy reduces the amount of time in development and produces more efficient solutions: a. Code the solution as soon as possible b. Design the solution before coding c. Analyze the solution before testing and debugging d. Build a prototype during testing e. Use a simple, low-level language for development
Design the solution before coding
After designing your solution, you should __________ before typing any code. a. analyze the problem definition b. check for run-time errors c. do maintenance on the solution d. desk check the solution e. determine what .NET class to use
Desk check the solution
Which beginning symbol(s) indicates the lines that follow will be comments? a. /* b. ** c. /// d. */ e. //
/*
Which escape sequence can be used to indicate that the cursor should advance to the next line? a. newline b. escape next c. \n d. \newline e. \r
\n
The program that translates high-level programming language into machine-readable form is a(n): a. application b. operating system c. C# program d. compiler e. machine language utility
Compiler
Which of the following is a call to a method? a. Console.Write; b. Console.Write["ok"]; c. Write.Console("ok"); d. Console.Write("ok"); e. none of the above
Console.Write("ok");
Cycling back to previous phases as potential problems are uncovered is an example of: a. object-oriented programming b. stepwise refinement c. intermediate language d. iterative development e. structured programming
Iterative development
A(n) ____________ groups semantically related types under a single name a. object b. class c. method d. namespace e. directive
Namespace
System is an example of a(n): a. object b. class c. method d. namespace e. directive
Namespace
ASP.NET creates which type of application? a. Windows b. console c. command d. Web e. services
Web
A(n) ____________ is a mock-up of desired output. a. prototype b. algorithm c. diagram d. specification e. none of the above
prototype
To mark the beginning and end of a block of code, C# programmers use: a. [ ] b. { } c. ( ) d. begin end e. start stop
{ }