Search Header Logo

Lab2_Quiz

Authored by bme programming

Computers

University

Lab2_Quiz
AI

AI Actions

Add similar questions

Adjust reading levels

Convert to real-world scenario

Translate activity

More...

    Content View

    Student View

10 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

The Console.WriteLine instruction needs to be followed by

Square brackets [ ]

Parentheses ( )

Double forward slash //

Curly braces { }

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

A line of code is called a statement. Each statement in C# needs to end with a

colon :

Angle bracket >

comma ,

semicolon ;

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Is C# case-sensitive?

Yes, only for variable names but not keywords.

No, C# is not case-sensitive.

Yes, C# is fully case-sensitive.

No, only method names are case-sensitive.

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is the purpose of comments in programming?

To execute hidden code in the program.

To describe the functionality of the code for reader or programmer.

To optimize the performance of the program.

To define new variables in the program.

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What does the "using" directive do in a C# program?

Allow the program to include a namespace, such as "system".

To group and organize code, avoiding naming conflicts.

Define the entry point of the program.

it can be accessed only within the same assembly.

6.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is a "namespace" in C#?

Allow the program to include a namespace, such as "system".

To group and organize code, avoiding naming conflicts.

Define the entry point of the program.

it can be accessed only within the same assembly.

7.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is an "internal class" in C#?

Allow the program to include a namespace, such as "system".

To group and organize code, avoiding naming conflicts.

Define the entry point of the program.

it can be accessed only within the same assembly.

Access all questions and much more by creating a free account

Create resources

Host any resource

Get auto-graded reports

Google

Continue with Google

Email

Continue with Email

Classlink

Continue with Classlink

Clever

Continue with Clever

or continue with

Microsoft

Microsoft

Apple

Apple

Others

Others

Already have an account?