Programming Fundamentals Quiz

Programming Fundamentals Quiz

Assessment

Quiz

Information Technology (IT)

University

Hard

Created by

Duan Steyn

Used 1+ times

FREE Resource

Student preview

quiz-placeholder

28 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is the purpose of the Console.WriteLine() method?

Reads only one single character from the standard input stream

Reads a single line from the standard input stream

Writes a specified string value to the standard output stream

Returns an integer after reading a single character

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which data type is used to store characters in C#?

float

char

int

double

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is the result of 20 % 4 in C#?

0

2

1

4

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which operator is used for multiplication in C#?

/

-

*

+

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

If 1 + 1 = 2, and 2 + 2 = 4, what is 3 + 3

6

Fish

A question for a mathematician, not me

6.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is the purpose of the boolean data type in C#?

To store characters

To evaluate conditions as true or false

To perform arithmetic operations

To store floating-point numbers

7.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which operator is used to calculate the remainder of a division operation in C#?

/

*

%

+

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

By signing up, you agree to our Terms of Service & Privacy Policy

Already have an account?