C# - Quiz

C# - Quiz

9th - 12th Grade

10 Qs

quiz-placeholder

Similar activities

ว30285-ทดสอบเรื่องคำสั่งแบบเงื่อนไข

ว30285-ทดสอบเรื่องคำสั่งแบบเงื่อนไข

10th Grade

10 Qs

Interstate Competition

Interstate Competition

7th - 10th Grade

11 Qs

PC1.8 Evaluate computer program

PC1.8 Evaluate computer program

9th Grade

10 Qs

INTERNET CONNECTION

INTERNET CONNECTION

12th Grade

13 Qs

Code.org (Introdução à programação)

Code.org (Introdução à programação)

5th - 9th Grade

12 Qs

Tin10CĐA Bài2: Sự ưu việt của m.tính và những th.tựu của tin học

Tin10CĐA Bài2: Sự ưu việt của m.tính và những th.tựu của tin học

10th Grade

10 Qs

SOAL PTS 1 KOMPUTER AKUNTANSI KELAS XI

SOAL PTS 1 KOMPUTER AKUNTANSI KELAS XI

11th Grade - University

10 Qs

Computer Lab Rules

Computer Lab Rules

9th - 12th Grade

13 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

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?