
Week 1 C# Quiz
Authored by Lohansa Bandaranayake
Information Technology (IT)
University
Used 7+ times

AI Actions
Add similar questions
Adjust reading levels
Convert to real-world scenario
Translate activity
More...
Content View
Student View
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 (a)
Access all questions and much more by creating a free account
Create resources
Host any resource
Get auto-graded reports

Continue with Google

Continue with Email

Continue with Classlink

Continue with Clever
or continue with

Microsoft
%20(1).png)
Apple
Others
Already have an account?