C# Structured, Selection and Iteration

C# Structured, Selection and Iteration

9th Grade - University

15 Qs

quiz-placeholder

Similar activities

Bai Tap Bai 18 Tin hoc 10

Bai Tap Bai 18 Tin hoc 10

10th Grade

10 Qs

Javascript

Javascript

University

12 Qs

Quiz on List and Tuples

Quiz on List and Tuples

University

16 Qs

CSS GRADE 9 - QUIZ PECs and EM

CSS GRADE 9 - QUIZ PECs and EM

9th Grade

20 Qs

CSS background, border

CSS background, border

11th Grade

10 Qs

สอบเก็บคะแนน ไพทอน ม.4

สอบเก็บคะแนน ไพทอน ม.4

9th - 12th Grade

10 Qs

Bài 6_Lớp 11_Tại lớp

Bài 6_Lớp 11_Tại lớp

12th Grade

10 Qs

conditional constructs in Java

conditional constructs in Java

10th Grade

10 Qs

C# Structured, Selection and Iteration

C# Structured, Selection and Iteration

Assessment

Quiz

Computers

9th Grade - University

Practice Problem

Easy

Created by

Terry Watts

Used 3+ times

FREE Resource

AI

Enhance your content in a minute

Add similar questions
Adjust reading levels
Convert to real-world scenario
Translate activity
More...

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

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?