C# - Quiz

C# - Quiz

9th - 12th Grade

10 Qs

quiz-placeholder

Similar activities

Programs and Variables in Code and Play

Programs and Variables in Code and Play

5th - 9th Grade

7 Qs

Les variables sous Python

Les variables sous Python

10th - 12th Grade

10 Qs

CALL: TOEFL Exercise skill 1-3

CALL: TOEFL Exercise skill 1-3

12th Grade

10 Qs

Parcial-Dibujo

Parcial-Dibujo

12th Grade

10 Qs

OOP 1 Undiksha

OOP 1 Undiksha

12th Grade - University

13 Qs

C# 11

C# 11

1st - 10th Grade

10 Qs

8525 AQA GCSE  3.1.1 Pseudo-code

8525 AQA GCSE 3.1.1 Pseudo-code

10th - 11th Grade

14 Qs

Mengoperasikan Website

Mengoperasikan Website

10th Grade

10 Qs

C# - Quiz

C# - Quiz

Assessment

Quiz

Computers

9th - 12th Grade

Medium

Created by

David Klecker

Used 5+ times

FREE Resource

AI

Enhance your content in a minute

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

10 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which is the correct syntax for printing text to the console?

Debug.log("Hello World");

Debug.Log("Hello World");

debug("Hello World");

log("Hello World");

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which code represents the correct way to create a variable of type int and name of "score" and initial value of 12?

int score;

int score = 12;

int[] score;

Integer score = 12

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which code will correctly print "Hello World" to the console when the user presses the Enter key? (any Operating System).

Media Image
Media Image
Media Image
Media Image

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

How does one write a conditional statement?

int score;

if (condition) {...} else {...}

while(condition){...}

Debug.Log("Hello World")

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What do we mean when we say a variable is "out of scope"?

It has been defined as an instance variable and we are trying to access it locally in a specific method.

It is out of our sight from our lookout.

It has been declared in a part of our code which is local to the variable but not local to where we are trying to access it.

It has reached its maximum value and cannot go any higher.

6.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Functions perform what task for us in C#

Functions are organized blocks code which perform a given task.

Functions make the code go through the CPU faster.

Functions upgrade my memory

Functions compile my code.

7.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

How to you include a library into our C# program?

include

using

namespace

int

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?