Search Header Logo

AP CSA Unit 3

Authored by Anne Kohart

Computers

10th - 12th Grade

CCSS covered

Used 269+ times

AP CSA Unit 3
AI

AI Actions

Add similar questions

Adjust reading levels

Convert to real-world scenario

Translate activity

More...

About

This quiz covers fundamental concepts in AP Computer Science A, specifically focusing on Unit 3 topics that are appropriate for grades 10-12. The content addresses essential programming concepts including boolean logic and short-circuit evaluation, string manipulation methods, data types and variable storage, array operations, and number system conversions between binary, decimal, and octal. Students need a solid understanding of Java syntax, particularly how primitive and reference variables differ in memory storage, how string methods like charAt() and substring() work with zero-based indexing, and how mathematical operations behave with different data types. The quiz also requires knowledge of fundamental computer science concepts such as binary representation, powers of two, and how different number bases function, along with control structures like loops and break statements. Created by Anne Kohart, a Computers teacher in US who teaches grade 10-12. This comprehensive assessment serves as an excellent tool for measuring student understanding of core AP Computer Science A concepts and can be effectively used for formative assessment, homework assignments, or review sessions before unit tests. The quiz's varied question formats, from multiple choice conceptual questions to code analysis problems, make it ideal for identifying areas where students need additional support while reinforcing critical programming fundamentals. Teachers can use this as a warm-up activity to activate prior knowledge or as practice for AP exam-style questions, helping students build confidence with both theoretical concepts and practical coding applications. The content aligns with College Board standards for AP Computer Science A, particularly focusing on variables, control structures, and data representation that form the foundation for more advanced programming concepts.

    Content View

    Student View

34 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What does short circuit evaluation mean in the following code?

i) if (a < b && c != d)

if a < b is false it evaluates c != d

if a < b is false it doesn't evaluate c != d

if c != d is false it evaluates a < b

f c != d is false it doesn't evaluate a < b

if a < b is true it doesn't evaluate c != d

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which if statement below tests if the variable letter holds the char value #?

if (letter == #)

if (letter == "#")

if (letter == '#')

if (letter >= '#')

if (letter = '#')

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is 0 0 1 1 1 0 0 0 in base ten?

54

55

56

57

58

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is 67 in binary?

0 1 0 0 0 0 1 0

0 1 0 0 0 0 1 1

0 1 0 0 0 1 1 0

0 1 0 0 0 1 1 1

0 1 0 0 1 1 1 0

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Consider the following code:

String w = "Rapunzel";

for (int i = 0; i < w.length(); i++) {

System.out.print(w.charAt(i) + " ");

if (i%4 == 3)

System.out.println();

}

What is output?

R a p u

n z e l

R a p

n z e l

R a p u n z e l

u l

R a p n z e

6.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What does the String method substring() do?

Returns a portion of the String.

Tests two String objects for equality.

Compares this String with a second String for greater than, equal to, or less than.

Returns the character at a certain location as a char value.

Returns the length of a String.

7.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What does the following code do?

String w3 = "aardvark";

System.out.println(w3.charAt(w3.length() – 2));

Prints the second letter in the String.

Prints the second to last letter in the String.

Prints the last letter in the String.

Prints the first letter in the String.

Causes an index out of bounds error.

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?