Search Header Logo

Session 1

Authored by Mohammad Saleem

Computers

9th - 12th Grade

Used 4+ times

Session 1
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

What is the correct syntax to output "Hello World" in C#?

System.Print(Hello World);

Print(" Hello World");

Consol.WriteLine(" Hello World");

cout<<"Hello World";

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

How do you insert COMMENTS in C# code?

//

Cmnt->

<--

#

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which data type is used to create a variable that should store text?

Txt

str

CStrting

string

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is the output of this code:
double x = 5.4;

int y = (int)x;

Console.WriteLine(y);

5.4

5

4

error

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is the output of this code:

double x = 7;

x++;

//x = x + 3;

Console.WriteLine(x);

10

7

8

error

6.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is the output of this code:
int var = " Hello ";

int var2 = " World"

Console.WriteLine(var+var2);

HelloWorld

Hello World

Hello
World

error

7.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

In this standard, the first letter of the word is always in small letter and after that, each word starts with a capital letter.

Camel Case

Pascal Case

Underscore Prefix

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?