Search Header Logo

C# Structured, Selection and Iteration

Authored by Terry Watts

Computers

9th Grade - University

Used 3+ times

C# Structured, Selection and Iteration
AI

AI Actions

Add similar questions

Adjust reading levels

Convert to real-world scenario

Translate activity

More...

    Content View

    Student View

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

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?