SAMPLE LIBRARY

Sample Java practice questions

See the types of prompts SmartFRQ uses to coach high school CS students through free-response practice sessions.

What to expect

Each sample shows the scope of questions you'll find inside SmartFRQ, including the kind of reasoning and follow-up work the AI feedback targets.

QUESTION TYPES

What you'll practice

01

Methods & Control Structures

Questions involving method writing, loops, conditionals, and lightweight algorithms.

Write a method to find the longest sequence of consecutive increasing integers.

Complete a method that processes a list of student scores.

Write helper methods to analyze word patterns in a text.

02

Class Design

Practice constructing classes, constructors, and cohesive method behavior.

Design a class to represent a library book with borrowing functionality.

Create a class hierarchy for different types of vehicles.

Build a class to manage a collection of playing cards.

03

ArrayList Workflows

Manipulate ArrayLists, perform searches, and reshape data collections.

Implement methods to filter and sort student records.

Process daily weather readings stored in ArrayLists.

Analyze a collection of test scores with helper methods.

04

2D Arrays

Traverse grids, apply transformations, and reason about multi-step logic.

Process a 2D array representing a game board.

Analyze patterns inside a matrix of data.

Implement image-style algorithms that scan neighborhoods.

FORMAT GUIDE

How these questions are structured

Part A (3-4 points)

  • Focuses on a single method or helper function.
  • Checks core control-flow skills.
  • Usually solvable with straightforward logic.
  • Sets up the context for later parts.

Part B (4-5 points)

  • Builds on previous code or adds fresh requirements.
  • Combines multiple concepts in one solution.
  • Rewards clear decomposition and naming.
  • Often includes edge-case handling.

Part C (2-3 points)

  • Short follow-up or modification.
  • Highlights special cases or refactors.
  • May pivot to a different data set.
  • Encourages precise reading of directions.

DIFFICULTY RANGE

Choose the right challenge

Beginner

Basic syntax, loops, and direct logic—ideal for warming up or reinforcing fundamentals.

★★

Intermediate

Multiple methods, class design, or ArrayList manipulation—mirrors the bulk of real exams.

★★★

Advanced

Complex data flows, 2D arrays, or recursion—perfect for stretch goals and deep dives.

NEXT STEP

Ready to practice FRQs?

Jump into the SmartFRQ demo to experience AI feedback, or compare plans when you're ready for full access.