Understanding Code

Understanding Code

11th Grade

30 Qs

quiz-placeholder

Similar activities

CPM2 Quiz Review

CPM2 Quiz Review

10th - 12th Grade

25 Qs

Data Types and Operators

Data Types and Operators

9th - 12th Grade

26 Qs

AP CSA Unit Review

AP CSA Unit Review

11th - 12th Grade

25 Qs

Новогодняя по Pythony

Новогодняя по Pythony

9th - 12th Grade

26 Qs

Unit 1 APCSA

Unit 1 APCSA

9th Grade - University

32 Qs

Practice for 3rd AP Java quiz

Practice for 3rd AP Java quiz

9th - 12th Grade

25 Qs

SC025 Week 6

SC025 Week 6

11th - 12th Grade

26 Qs

Python Functions

Python Functions

10th - 12th Grade

28 Qs

Understanding Code

Understanding Code

Assessment

Quiz

Computers

11th Grade

Medium

Created by

Francesca [Student]

Used 4+ times

FREE Resource

30 questions

Show all answers

1.

FILL IN THE BLANK QUESTION

1 min • 1 pt

What is the output of the following statement?

System.out.print(13 % 5);

2.

FILL IN THE BLANK QUESTION

1 min • 1 pt

Media Image

For each error, write the corrected line.

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

The character \n is not allowed in literal strings.

True

False

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which of the following statements prints a backslash?


System.out.print(\);

System.out.print("\\");

System.out.print(\\);

System.out.print(\bs);

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

An empty string is represented either as "" or as a null reference.

True

False

6.

FILL IN THE BLANK QUESTION

1 min • 1 pt

What is the output of the following statement?

System.out.print(5 / 10);

7.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Media Image

What is the value of the following code executed?

0

2

1

4

Create a free account and access millions of resources

Create resources
Host any resource
Get auto-graded reports
or continue with
Microsoft
Apple
Others
By signing up, you agree to our Terms of Service & Privacy Policy
Already have an account?