AP CS A unit 1

AP CS A unit 1

11th Grade

36 Qs

quiz-placeholder

Similar activities

Programming Logic and Design - Chapter 4 - Making Decisions

Programming Logic and Design - Chapter 4 - Making Decisions

University - Professional Development

35 Qs

Python intro

Python intro

8th - 12th Grade

32 Qs

First  QUIZ of Database - Edited by: Eng. Javier Daza 2023-1

First QUIZ of Database - Edited by: Eng. Javier Daza 2023-1

University

40 Qs

KUIS SISTEM OPERASI

KUIS SISTEM OPERASI

University

40 Qs

Kuis E-Business 2 TI 4 (POLINEMA)

Kuis E-Business 2 TI 4 (POLINEMA)

University

40 Qs

DSA QUIZ - 2 (17-06-23)

DSA QUIZ - 2 (17-06-23)

University

40 Qs

Algoritma dan Logika Informatika

Algoritma dan Logika Informatika

University

35 Qs

Python Quiz

Python Quiz

University

40 Qs

AP CS A unit 1

AP CS A unit 1

Assessment

Quiz

Computers

11th Grade

Practice Problem

Medium

Created by

Ержан Ауезов

Used 4+ times

FREE Resource

AI

Enhance your content in a minute

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

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

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?