Courseiva
Controlling Program FlowmediumMatchingObjective-mapped

1Z0-829 Controlling Program Flow Practice Question

Match each I/O stream class to its description.

Drag a concept onto its matching description — or click a concept then click the description.

Concepts
Matches

Reads text from a character-input stream, buffering characters

Reads raw bytes from a file

Writes primitive types and Java objects to an OutputStream

Prints formatted representations of objects to a text-output stream

Reads primitive Java data types from an underlying input stream

Answer choices

Why each option matters

Answer the question above first, then reveal the full breakdown to understand why each option is right or wrong.

Correct answer & explanation

FileInputStream: Reads bytes from a file

The correct matches are based on the direction (read vs write) and type (byte vs character) of the stream. FileInputStream reads bytes; FileOutputStream writes bytes. BufferedReader reads characters with buffering; BufferedWriter writes characters with buffering.

Answer analysis

Option-by-option breakdown

For each option: why learners choose it and why it is or isn't the right answer here.

  • FileInputStream: Reads bytes from a file

    Why this is correct

    FileInputStream is used for reading raw bytes from a file.

  • FileOutputStream: Writes bytes to a file

    Why this is correct

    FileOutputStream is used for writing raw bytes to a file.

  • BufferedReader: Reads text from a character-input stream, buffering characters

    Why this is correct

    BufferedReader provides efficient reading of characters by buffering.

  • BufferedWriter: Writes text to a character-output stream, buffering characters

    Why this is correct

    BufferedWriter provides efficient writing of characters by buffering.

  • FileInputStream: Writes bytes to a file

    Why it's wrong here

    Incorrect — this describes FileOutputStream, not FileInputStream.

  • BufferedReader: Writes text to a character-output stream

    Why it's wrong here

    Incorrect — this describes BufferedWriter, not BufferedReader.

About these practice questions

This 1Z0-829 question is part of Courseiva's 513-question bank — original exam-style content with full explanations and wrong-answer analysis, never real exam questions or exam dumps. Learn why practice questions differ from exam dumps →

How Courseiva writes practice questions · Editorial policy

JA

Written by Johnson Ajibi, MSc IT Security

Senior Network & Security Engineer · founder of Courseiva

This 1Z0-829 practice question is part of Courseiva's free Oracle certification practice question bank. Courseiva provides original exam-style practice questions with explanations, topic-based practice, mock exams, readiness tracking, and study analytics to help learners prepare for the 1Z0-829 exam.