C# Structured, Selection and Iteration

C# Structured, Selection and Iteration

9th Grade - University

15 Qs

quiz-placeholder

Similar activities

Python basics

Python basics

9th - 12th Grade

16 Qs

C Program Array and strings

C Program Array and strings

University

10 Qs

Programming Java

Programming Java

University

20 Qs

C# Math

C# Math

10th Grade

10 Qs

JavaScript Basics

JavaScript Basics

12th Grade - University

15 Qs

Quiz UTS Pemrograman Dasar C++

Quiz UTS Pemrograman Dasar C++

10th Grade

20 Qs

Basics Of C Programming

Basics Of C Programming

University

10 Qs

Java Conditional Constructs

Java Conditional Constructs

9th - 10th Grade

20 Qs

C# Structured, Selection and Iteration

C# Structured, Selection and Iteration

Assessment

Quiz

Computers

9th Grade - University

Easy

Created by

Terry Watts

Used 3+ times

FREE Resource

15 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 5 pts

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

Console.Writeline("Hello World");

Console.WriteLine("Hello World");

Console.WriteLine("Hello World ");

Console.WriteLine("Hello World");

2.

MULTIPLE CHOICE QUESTION

30 sec • 5 pts

How do you insert COMMENTS in C# code?

/* This is a comment

# This is a comment

// This is a comment

3.

MULTIPLE CHOICE QUESTION

30 sec • 5 pts

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

String

int

txt

string

4.

MULTIPLE CHOICE QUESTION

30 sec • 5 pts

How do you create a variable with the numeric value 5?

num x = 5

int x = 5;

int x == 5;

double x = 5;

5.

MULTIPLE CHOICE QUESTION

30 sec • 5 pts

How do you create a variable with the decimal number 2.8?

byte x = 2.8;

double x = 2.8;

int x = 2.8;

int x = 2.8D;

6.

MULTIPLE CHOICE QUESTION

30 sec • 5 pts

Which string handling function can be used to find the length of a string?

.Length()

.length();

.getLength();

.Length

7.

MULTIPLE CHOICE QUESTION

30 sec • 5 pts

Which operator is used to add together two values?

The & sign

The + sign

The * sign

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?