AP-Computer Science A

AP-Computer Science A

12th Grade

19 Qs

quiz-placeholder

Similar activities

Acumulativa Período 1

Acumulativa Período 1

8th Grade - University

21 Qs

Color Theory Test Review

Color Theory Test Review

9th - 12th Grade

15 Qs

ASPEK LEGAL TIK XII

ASPEK LEGAL TIK XII

12th Grade

20 Qs

CPA MS-Office Hotkeys Quiz

CPA MS-Office Hotkeys Quiz

8th Grade - Professional Development

21 Qs

Math and IT - Elimination Round

Math and IT - Elimination Round

10th - 12th Grade

20 Qs

Ինֆորմատիկա 10 II   կիսամյակի  ամփոփիչ աշխատանք

Ինֆորմատիկա 10 II կիսամյակի ամփոփիչ աշխատանք

10th - 12th Grade

20 Qs

KUIZ RAMADAN SeMAI

KUIZ RAMADAN SeMAI

12th Grade

20 Qs

Ôn tập kỳ 2 tin 6

Ôn tập kỳ 2 tin 6

1st - 12th Grade

15 Qs

AP-Computer Science A

AP-Computer Science A

Assessment

Quiz

Computers

12th Grade

Practice Problem

Medium

Created by

Abdelsalam Bakr

Used 14+ times

FREE Resource

AI

Enhance your content in a minute

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

19 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What does the program below print?

int first = 10;

int second = first + 5;

first = 20;

System.out.println(second);

10

15

20

25

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What does the following program print?

int age = 32;

int height = 178;

height = age + 10;

System.out.println(age);

32

178

188

42

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What does the program below print?

int dividend = 3;

int divisor = 2;

double result = dividend / divisor * 1.0;

System.out.println(result);

3.0

2.0

1.5

1.0

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What does the program below print?

int second = 32;

int first = 25;

second = 17;

first = second;

System.out.println(second);

32

17

25

49

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which of the following ways are valid method of declaring and initializing a variable of type double, named money, to equal 3.55?

double money,

money = 3.55;

double money = 3.55;

int money = 3.55;

int money = 3-55;

6.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What variable type should be used to represent the number of children in a class?

boolean

double

String

int

7.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

int x = 1;

int y = 2;

int z = 3;

z = x;

x = 0;

y = y + 1;

x = 0, y = 2, z = 1

x = 0, y = 3, z = 3

x = 0, y = 3, z = 1

x = 3, y = 2, z = 3

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?