AP CS A unit 1

AP CS A unit 1

11th Grade

36 Qs

quiz-placeholder

Similar activities

Java Control Structures

Java Control Structures

11th Grade - Professional Development

39 Qs

AP CSA Unit 3

AP CSA Unit 3

10th - 12th Grade

34 Qs

Midterm Exam - CTCC0323

Midterm Exam - CTCC0323

University

33 Qs

Exception in Java

Exception in Java

University

41 Qs

SKT5 : Bab 3 : c) Standard Library, Subaturcara, Tatasusunan

SKT5 : Bab 3 : c) Standard Library, Subaturcara, Tatasusunan

10th - 12th Grade

35 Qs

Test

Test

University

35 Qs

Test 2

Test 2

University

36 Qs

AP Java Exam

AP Java Exam

8th Grade - University

35 Qs

AP CS A unit 1

AP CS A unit 1

Assessment

Quiz

Computers

11th Grade

Medium

Created by

Ержан Ауезов

Used 1+ times

FREE Resource

36 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Consider the following code segment.


System.out.println("W");

System.out.println("X");

System.out.print("Y");

System.out.print("Z");


What is printed as a result of executing the code segment?

WXYZ

W

XYZ

WX

YZ

W

X

YZ

W

X

Y

Z

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Consider the following code segment.


String str = "AP";

str += "CS " + 1 + 2;

System.out.println(str);


What is printed as a result of executing the code segment?

CS AP12

AP CS3

CSAP 12

APCS 12

APCS 3

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Media Image

What is the expected output?

-1

0

1

17

18

4.

MULTIPLE SELECT QUESTION

30 sec • 1 pt

Which of these are escape characters? Choose all that apply!

\n

\t

\

"

/

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Is the following identifier legal or illegal?

MyFirstProgram

legal

illegal

6.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

If x = 4, x++ =?

16

8

5

3

7.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

if int a = 10, what does b = if b= 15/4

1

5

0

3

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?