Session 1

Session 1

9th - 12th Grade

10 Qs

quiz-placeholder

Similar activities

JavaScript Basics

JavaScript Basics

12th Grade - University

15 Qs

Introduction to Computer Science

Introduction to Computer Science

12th Grade

8 Qs

C# lesson10

C# lesson10

1st - 10th Grade

10 Qs

C# - Quiz

C# - Quiz

9th - 12th Grade

10 Qs

Python-Basic

Python-Basic

3rd Grade - University

15 Qs

PCEP Section 1E: Perform Input/Output console operations

PCEP Section 1E: Perform Input/Output console operations

12th Grade

10 Qs

Programming Recap - 9F5

Programming Recap - 9F5

9th - 11th Grade

15 Qs

С№ 15

С№ 15

10th 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?