Java Programming Review Questions and Exercises: Chapters 1-3, Quizzes of Java Programming

A comprehensive set of review questions and exercises covering the fundamental concepts of java programming, including data types, variables, operators, expressions, and basic input/output operations. It is designed to help students solidify their understanding of these core concepts and prepare for assessments or further study in java programming.

Typology: Quizzes

2022/2023

Uploaded on 10/14/2024

brittany-quansah
brittany-quansah 🇺🇸

2 documents

1 / 5

Toggle sidebar

This page cannot be seen from the preview

Don't miss anything!

bg1
Chapter 1 Review
- What is a computer program?
( any device that stores data)
- Give an example of hardware...
( CPU or RAM)
- Two most important hardware components?
( Perform calculations and stores information)
- Five basic things that appear in most programming languages?
( Output, math, input, repetition, decision )
- What is programming?
( breaking down large task )
- How to set up a Java program? First few lines...
(// Brittany Quansah
(// This is for…..
(Public class (file name){
( public static void main (Strings[] args) {
- Give an example of a statement...
( System.out.println( “ It rained today”);
- Give an example of a print statement in Java
- What is a method in Java?
( sequence of statements)
- What is a class in Java?
( collection of methods)
- What are comments?
(// comment)
- What is a high-level language?
(python, C, Javascript)
pf3
pf4
pf5

Partial preview of the text

Download Java Programming Review Questions and Exercises: Chapters 1-3 and more Quizzes Java Programming in PDF only on Docsity!

Chapter 1 Review

  • What is a computer program? ( any device that stores data)
  • Give an example of hardware... ( CPU or RAM)
  • Two most important hardware components? ( Perform calculations and stores information)
  • Five basic things that appear in most programming languages? ( Output, math, input, repetition, decision )
  • What is programming? ( breaking down large task )
  • How to set up a Java program? First few lines... (// Brittany Quansah (// This is for….. (Public class (file name){ ( public static void main (Strings[] args) {
  • Give an example of a statement... ( System.out.println( “ It rained today”);
  • Give an example of a print statement in Java
  • What is a method in Java? ( sequence of statements)
  • What is a class in Java? ( collection of methods)
  • What are comments? (// comment)
  • What is a high-level language? (python, C, Javascript)
  • What is machine language? ( Low level language)
  • What does it mean for a language to be portable? ( run on different languages)
  • What does an interpreter do? ( executes program)
  • What does a compiler do? ( complies program) read it
  • Is Java compiled or interpreted? (both)
  • What is source code? Where might you have interacted with source code? ( high level program,
  • What is object code? ( translated program)
  • What is byte code? ( object code, easy to interpret)
  • What are strings? ( phrases that appear in quotation marks)
  • What are escape sequences? ( /n or two characters )
  • What is an algorithm? ( sequence of steps on how to solve a problem)
  • What is computer science? ( algorithm)
  • What is a bug? ( programming errors)
  • What is debugging? ( correcting a program)
  • What are operands?
  • What operators are used for addition, subtraction, multiplication, division?
  • How does integer division work in Java?
  • What is a floating-point number? How can we use these in Java?
  • When might rounding errors occur in Java?
  • What is concatenation?
  • What is the order of operations?
  • How can we group operations within an expression?
  • What are the three basic types of errors?
  • What is a compile-time, run-time, logic error?
  • What is parsing? Chapter 3 Review
  • What is a package in Java?
  • What is the Java API?
  • Give an example of using something from the API...
  • What does the Scanner class do?
  • Give an example of an import statement...
  • What are the language elements of Java. How do they relate to one another?
  • What is a literal?
  • What is a constant?
  • What does it mean to prompt the user?
  • What are format specifiers?
  • What is a stack trace?
  • What is type casting, when would you use it?
  • What is the remainder operator, give an example of it in use...
  • What is the scanner bug?