Week 1 C# Quiz

Week 1 C# Quiz

University

8 Qs

quiz-placeholder

Similar activities

Chap 3 CS

Chap 3 CS

University

8 Qs

Lec3_Part1

Lec3_Part1

University

10 Qs

G12-Computational Thinking & Problem Solving

G12-Computational Thinking & Problem Solving

12th Grade - University

7 Qs

Quiz Larik (Array)

Quiz Larik (Array)

11th Grade - University

13 Qs

group 5

group 5

University

10 Qs

Quiz 4

Quiz 4

University

10 Qs

Basic ICT quiz

Basic ICT quiz

University

10 Qs

KELAB KOMPUTER SMKS

KELAB KOMPUTER SMKS

12th Grade - University

12 Qs

Week 1 C# Quiz

Week 1 C# Quiz

Assessment

Quiz

Information Technology (IT)

University

Hard

Created by

Lohansa Bandaranayake

Used 7+ times

FREE Resource

8 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What role does the program counter play in the execution of a program?

It stores all the variables used in the program

It tracks the total number of executed instructions

It determines the next instruction to execute by keeping track of the current address

It compiles the program into machine code

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which of the following best describes the computer’s execution of instructions?

The CPU uses artificial intelligence to decide which instructions to execute

The computer reads and executes instructions in sequence, one at a time

 The computer adapts the sequence based on the user’s intent

The program begins executing instructions in random order for efficiency

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What would be the result and data type of the expression 3 / 2.0 in C#?

1.5, float

 1, int

1.5, double

1.0, int

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

 Which of the following C# types is used to store a single alphanumeric character?

string

char

text

5.

MULTIPLE CHOICE QUESTION

30 sec • 2 pts

Which part of a method declaration tells you whether you can call the method directly using its name?

Whether it is declared public static

Whether it is declared void or not

 Its return type

The number of parameters it takes

6.

MULTIPLE CHOICE QUESTION

30 sec • 2 pts

Which of the following correctly describes what happens when FillCircle(ColorRed(), 400, 300, 100); is called in a SplashKit program?

 A red circle is drawn using default screen coordinates and size

 The method attempts to draw a red circle but will fail unless assigned to a variable

A red circle is drawn starting from the top-left corner at (400, 300) and extending to radius 100

 A red circle is drawn with its centre at (400, 300) and a radius of 100

7.

FILL IN THE BLANK QUESTION

30 sec • 1 pt

📝 Console.ReadLine() returns a ______

8.

MULTIPLE SELECT QUESTION

30 sec • 3 pts

Which of the following statements have the same effect of increasing the variable age by 1?

(Select all that apply)

age = age + 1;

age += 1;

age++;

age =+ 1;