Session 1

Session 1

9th - 12th Grade

10 Qs

quiz-placeholder

Similar activities

Kuis Dadakan ;)

Kuis Dadakan ;)

10th Grade - University

15 Qs

C sharp

C sharp

11th Grade

9 Qs

Quiz 2 Java

Quiz 2 Java

11th Grade

15 Qs

Python-Basic

Python-Basic

3rd Grade - University

15 Qs

Java Beginners

Java Beginners

11th Grade

15 Qs

C# lesson10

C# lesson10

1st - 10th Grade

10 Qs

Python Basics

Python Basics

6th - 12th Grade

9 Qs

Java

Java

11th Grade

10 Qs

Session 1

Session 1

Assessment

Quiz

Computers

9th - 12th Grade

Medium

Created by

Mohammad Saleem

Used 4+ times

FREE Resource

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

Create a free account and access millions of resources

Create resources
Host any resource
Get auto-graded reports
or continue with
Microsoft
Apple
Others
By signing up, you agree to our Terms of Service & Privacy Policy
Already have an account?