TGT APCSA

TGT APCSA

11th Grade

20 Qs

quiz-placeholder

Similar activities

Class XI Basics

Class XI Basics

11th - 12th Grade

15 Qs

Security and Ethics

Security and Ethics

9th - 12th Grade

17 Qs

Computer System

Computer System

9th - 11th Grade

21 Qs

Design your website

Design your website

7th - 12th Grade

20 Qs

OCR Sys Arch J277

OCR Sys Arch J277

10th - 12th Grade

16 Qs

Social Media and the Internet Safety

Social Media and the Internet Safety

1st - 11th Grade

21 Qs

3D Objects - Terms & Transfomations

3D Objects - Terms & Transfomations

6th Grade - Professional Development

20 Qs

Web design

Web design

11th Grade

20 Qs

TGT APCSA

TGT APCSA

Assessment

Quiz

Computers

11th Grade

Practice Problem

Easy

Created by

VIRENA MERLA

Used 12+ times

FREE Resource

AI

Enhance your content in a minute

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

20 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 5 pts

What are the primitive data types?

int, double, boolean

int,double,boolean, String

int, float, boolean

integer, boolean, doubly

2.

MULTIPLE CHOICE QUESTION

30 sec • 5 pts

What does the following code print?

System.out.print("9 ");

System.out.println("+ 5 = 14");

error

9 + 5 = 14

9

+ 5 = 14

9+5+14

3.

MULTIPLE CHOICE QUESTION

30 sec • 5 pts

What’s the difference between System.out.println and System.out.print?

They do the same thing - no differences

print adds a return character at the end, while println does not

println adds a return character at the end, while print does not.

println creates a tab at the end while print does not

4.

MULTIPLE CHOICE QUESTION

30 sec • 5 pts

What is 8 % 3?

2

0

1

3

5.

MULTIPLE CHOICE QUESTION

30 sec • 5 pts

What does modulo do?

returns the dividend

divides the numbers

returns the remainder

divides with an integer result

6.

MULTIPLE CHOICE QUESTION

30 sec • 5 pts

What does it mean for a value to be declared as final?

final is not in java

It can only be changed

It cannot be changed.

it is the final answer to the problem

7.

MULTIPLE CHOICE QUESTION

30 sec • 5 pts

What does the following code do?

chips *= 7;

"chips" is equal to 7

Multiplies the value of "chips" by 1 and stores the result in "chips"

Adds 7 to "chips"

Multiplies the value of "chips" by 7 and stores the result in "chips".

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?