Search Header Logo

Computer Science Student Quiz

Authored by Kanishka Siriwardana

Computers

12th Grade

Used 2+ times

Computer Science Student Quiz
AI

AI Actions

Add similar questions

Adjust reading levels

Convert to real-world scenario

Translate activity

More...

    Content View

    Student View

14 questions

Show all answers

1.

FILL IN THE BLANK QUESTION

1 min • 5 pts

Media Image

Which line of code contains an error?

2.

MULTIPLE CHOICE QUESTION

30 sec • 5 pts

Media Image

What is the line that should go in the space?

int[amount] score = new int[amount];

int[] score = new int[amount]

int[] score = int[amount];

int[] score = new int[amount];

3.

MULTIPLE CHOICE QUESTION

30 sec • 5 pts

Media Image

What is wrong with this program?

The while loops need a semi colon at the end

The count won't show in the final sentence

The count won't be changed by the while loops since its value isn't stated inside them

If the number 10 is entered the program will break

4.

FILL IN THE BLANK QUESTION

1 min • 5 pts

Media Image

Which line of code contains an error?

5.

MULTIPLE CHOICE QUESTION

30 sec • 5 pts

Media Image

What is the error?

Missing if statement between lines 15 and 16

Missing int c , line 7

Missing if statement line 32

Missing else statement line 23

6.

MULTIPLE SELECT QUESTION

45 sec • 5 pts

Media Image

This program does not work. Which two lines would allow it to work properly

float.Parse(Console.ReadLine());

float.Parse(Console.ReadLine);

string a = Console.ReadLine();

string a = Console.ReadLine;

7.

MULTIPLE CHOICE QUESTION

30 sec • 5 pts

Media Image

Which line is missing from the program?

bool v = true;

string v = "true";

int v = 1

bool v = bool.Parse(Console.ReadLine());

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?