C# Programming Mock Exam 2.2

C# Programming Mock Exam 2.2

University

44 Qs

quiz-placeholder

Similar activities

Lesson 1 Quiz: Spreadsheets using Excel

Lesson 1 Quiz: Spreadsheets using Excel

University

45 Qs

Ôn Tập Chuong III - Tin 11

Ôn Tập Chuong III - Tin 11

6th Grade - University

40 Qs

Topic 1 Introduction to Computer System

Topic 1 Introduction to Computer System

University

40 Qs

IP MIDTERM

IP MIDTERM

University

45 Qs

Bilgisayar ile İlgili Temel Kavramlar

Bilgisayar ile İlgili Temel Kavramlar

University

40 Qs

Introduction to Multimedia

Introduction to Multimedia

University

45 Qs

Relational Database Design

Relational Database Design

University

47 Qs

ข้อสอบปลายภาควิชาพื้นฐานธุรกิจดิจิทัล 1/2564

ข้อสอบปลายภาควิชาพื้นฐานธุรกิจดิจิทัล 1/2564

University

40 Qs

C# Programming Mock Exam 2.2

C# Programming Mock Exam 2.2

Assessment

Quiz

Computers

University

Practice Problem

Hard

Created by

Penny Kokkali

FREE Resource

AI

Enhance your content in a minute

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

44 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which of the following operators is used to check if two values are equal in C#?

!=

==

=

>=

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is the output of the following C# code when dividing two integers? int x = 8; int y = 3; Console.WriteLine(x / y);

2

2.666

3

An error

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which of the following is a valid looping construct in C#?

for

until

while

do-while

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which of the following is NOT a valid variable name in C#?

varName

int_123

123var

myVariable

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

In a for loop, what is the purpose of the increment section?

To set the initial value of the loop counter

To update the loop counter

To specify the condition for loop termination

To declare and initialize the loop counter

6.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which C# data type should you use for a variable with large decimal values by default?

double

char

decimal

int

7.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What happens if an exception is caught in C#?

The program continues running

The program crashes

The exception is ignored

The system recovers automatically

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?

Discover more resources for Computers