C1S170 Week 1 Sample Quiz in C# – 35/35 marks
1. Question : (TCO 1) In the context of object-oriented programming, the Solution Explorer window _____.
exposes the properties of the control
shows the physical components of the program
lists the events associated with a control
lists the controls on the form
2. Question : (TCO 1) What is a quick way to use Visual Studio.Net to compile and run a C# program using your keyboard?
Press the F5 key
Put a control on the form
Save the project
Build the project
3. Question : (TCO 1) C# comments are represented by which characters?
// and /* */
:: and //
// and >>
>
4. Question : (TCO 2) Which is not a C# syntax rule?
C# is not case sensitive.
Blocks of code are defined by curly braces.
Statements must end with a semicolon.
Every C# program must have a function named “main.”
5. Question : (TCO 1) _____ provides access to programming language definitions within the code editor.
Intellisense
Bookmark
Break point
Step through
Instructor Explanation: Lecture 1
6. Question : (TCO 2) Visual Studio.NET is an example of a(n) _____.
C# programming language
debugger
compiler
IDE
7. Question : (TCO 2) The problem specification phase of software development involves _____.
creating a detailed plan on how the program will accomplish the requirements
writing the software with a program such as Visual Studio.NET C#
collecting the requirements about what the program will accomplish
Both A and B
8. Question : (TCO 2) What escape sequence is used to produce a new line within a string literal on the output console?
Special characters cannot be added to string literals
\t
\n
return character
9. Question : (TCO 2) What is the result of this code segment:
int doors = 2;
Console.WriteLine(“The Car has {0}”,doors);
The Car has 2
The Car has {0} doors
The Car has 2 doors
The statement will not compile.
10. Question : (TCO 3) Which data type has two states?
Double
Integer
String
Boolean
11. Question : (TCO 2) Which of the following local variable names are not allowed in C#, and why? Which have a correct naming style?
* You can also use 2CO option if you want to purchase through Credit Cards/Paypal but make sure you put the correct billing information otherwise you wont be able to receive any download link.
* Your paypal has to be pre-loaded in order to complete the purchase or otherwise please discuss it with us at [email protected].
* As soon as the payment is received, download link of the solution will automatically be sent to the address used in selected payment method.
* Please check your junk mails as the download link email might go there and please be patient for the download link email. Sometimes, due to server congestion, you may receive download link with a delay.
* All the contents are compressed in one zip folder.
* In case if you get stuck at any point during the payment process, please immediately contact us at [email protected] and we will fix it with you.
* We try our best to reach back to you on immediate basis. However, please wait for atleast 8 hours for a response from our side. Afterall, we are humans.
* Comments/Feedbacks are truely welcomed and there might be some incentives for you for the next lab/quiz/assignment.
* In case of any query, please donot hesitate to contact us at [email protected].
* MOST IMPORTANT Please use the tutorials as a guide and they need NOT to be used for any submission. Just take help from the material.
******************************************** Good Luck ***************************************************
Any personal information received will only be used to fill your order. We will not sell or redistribute your information to anyone.
We will try our best to resolve the issue and if still persists we can discuss for a refund in case its required.