C# Lesson 1- Quiz

5 Questions | Attempts: 48
Share
Please wait...
Question 1 / 5
0 %
0/100
Score 0/100
1. The C# langauge teats which of the following as comments?

Explanation

C# recognizes several styles of comments. Beginning a line with '//' is one way to prevent that lines from being executed, or from interfering with code.

Submit
Please wait...
About This Quiz
Lesson Quizzes & Trivia

This is the Lesson 1 Quiz. Each question is worth 5 points. Your final score will reflect the percentage of total points that you earned. Please consider re-assessing this lessons if you score less than 70%.

Tell us your name to personalize your report, certificate & get on the leaderboard!
2. The first part of a C# program to execute is named:

Explanation

The first part of a C# program to be run by the computer is the function named “main”.

Submit
3. The 'namespaces' in a C# program are mostly used to:

Explanation

Every object and type of object in C# belongs to a namespace. As long as two such things are in different namespace, they can have the same name, but not otherwise

Submit
4. In C#, the programmer passes values into a function by:

Explanation

In C#, parentheses are 'function operators'. They tell C# that a name is the name of a function, and they provide a space where data can be listed to be sent to a function.

Submit
5. The C# source code that is compiled into a program is written in "clear text". Which of the following programs cannot create C# source code?

Explanation

C# programs consist of standard text that can be created by most text editors, as long as the editor saves that text in a 'plain' or 'clear text' format.

Submit
View My Results

Quiz Review Timeline (Updated): Mar 20, 2022 +

Our quizzes are rigorously reviewed, monitored and continuously updated by our expert board to maintain accuracy, relevance, and timeliness.

  • Current Version
  • Mar 20, 2022
    Quiz Edited by
    ProProfs Editorial Team
  • Apr 16, 2012
    Quiz Created by
    Shishira
Cancel
  • All
    All (5)
  • Unanswered
    Unanswered ()
  • Answered
    Answered ()
The C# langauge teats which of the following as comments?
The first part of a C# program to execute is named:
The 'namespaces' in a C# program are mostly used to:
In C#, the programmer passes values into a function by:
The C# source code that is compiled into a program is written in...
Alert!

Advertisement