Search Header Logo
KUIZ 1 (COMPUTER PROGRAMMING)

KUIZ 1 (COMPUTER PROGRAMMING)

Assessment

Interactive Video

•

Other

•

2nd Grade

•

Practice Problem

•

Hard

Created by

Asmawiafandy Abu Seman

Used 1+ times

FREE Resource

11 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

1) Which of the following is a valid C# variable declaration?

A. int number = "10";

B. int number = 10;

C. var int = 10;

D. number int = 10;

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

2) Which type is best for storing a true/false value?

A. int

B. char

C. bool

D. string

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is the result type of the expression 5 / 2 in C# (both operands are int)?

A. double with value 2.5

B. int with value 2

C. decimal with value 2.5

D. float with value 2.5

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

4) Which literal correctly represents a char in C#?

A. "A"

B. 'A'

C. `A`

D. A

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

5) Which statement correctly concatenates two strings first and last with a space?

A. var full = first + last;

B. var full = first + " " + last;

C. var full = "first last";

D. var full = $"{first}"+{last};

6.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

6) What does the var keyword mean in C#?

A. Dynamic type checked at runtime only

B. An implicitly typed local variable inferred at compile time

C. A global variable

D. A nullable reference type

7.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

7) Which of the following is a valid if statement?

A. if (x = 10) { }

B. if x == 10 { }

C. if (x == 10) { }

D. if (x: 10) { }

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

Microsoft

Continue with Microsoft

or continue with

Facebook

Facebook

Apple

Apple

Others

Others

Already have an account?