AP CS A Unit 3 Test PRACTICE

AP CS A Unit 3 Test PRACTICE

9th - 12th Grade

18 Qs

quiz-placeholder

Similar activities

HTML

HTML

9th - 12th Grade

15 Qs

Web Design Advanced HTML CSS

Web Design Advanced HTML CSS

9th - 12th Grade

18 Qs

BAI 26_10

BAI 26_10

10th Grade

20 Qs

HTML tags

HTML tags

9th - 12th Grade

20 Qs

Arithmetic Types Declare Initialize Relation Logical Ops

Arithmetic Types Declare Initialize Relation Logical Ops

9th Grade - University

16 Qs

Toán tử trong C ++

Toán tử trong C ++

10th - 12th Grade

20 Qs

Code.org: Web Development: Unit 2 Lessons 1 - 5 Test

Code.org: Web Development: Unit 2 Lessons 1 - 5 Test

7th - 10th Grade

21 Qs

HTML & CSS Basics

HTML & CSS Basics

9th - 12th Grade

15 Qs

AP CS A Unit 3 Test PRACTICE

AP CS A Unit 3 Test PRACTICE

Assessment

Quiz

Computers

9th - 12th Grade

Hard

Created by

Scott Chamberlain

Used 11+ times

FREE Resource

18 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

5 mins • 1 pt

Media Image

Consider the code shown here which uses the variable points. Which of the following will always produce the same result as this code, regardless of the value of points?

I, II, and III

II and III only

III only

II only

I and II only

2.

MULTIPLE CHOICE QUESTION

2 mins • 1 pt

Media Image

What is output by the code shown here?

11

10

14

13

Error

3.

MULTIPLE CHOICE QUESTION

2 mins • 1 pt

Media Image

Consider the following potential replacements for /* missing code */. Which of these replacements will cause the code segment to always print no?

Media Image
Media Image
Media Image
Media Image
Media Image

4.

MULTIPLE CHOICE QUESTION

2 mins • 1 pt

Which boolean condition is true, given:

int x = 2;

int y = 3;

x > y || y <= x

x != y && y == x

x >= y || !(y >= x)

!(x >= y) && !(x != y)

x == y || y > x

5.

MULTIPLE CHOICE QUESTION

3 mins • 1 pt

Media Image

!P && !Q

!P && Q

!(P && !Q)

!P && (P && !Q)

(P || Q) && !Q

6.

MULTIPLE CHOICE QUESTION

1 min • 1 pt

To test if air pressure p is normal (between 27 and 35, including 27 and excluding 35) you would use the following if statement:

if (p ___ 27 ___ p ___ 35)

Which set of symbols - in the order given - correctly fills in the blanks?

<=, &&, >

>=, ||, <

>=, &&, <

>, &&, <=

<, ||, >=

7.

MULTIPLE CHOICE QUESTION

3 mins • 1 pt

Media Image

Which statement below is equivalent to the one shown here?

Media Image
Media Image
Media Image
Media Image
Media Image

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?