Back to marketplace

Unit 1 - Primitive Types

No description yet. This curated deck is ready for daily study.

Total cards: 21•Content version: v4•Public deck•Updated: 8/1/2026

Card preview (21)

#1
Front (Question)

What are block comments?

Back (Answer)

All text between / and / that will be ignored by the compiler when in a program

#2
Front (Question)

What is a class declaration?

Back (Answer)

Identifies the name, start, and end of class Encapsules all lines of code between { and }

#3
Front (Question)

What is the main Method?

Back (Answer)

Controls all of action in a program

#4
Front (Question)

What is System.out?

Back (Answer)

Object that generates output to the console

#5
Front (Question)

System.out.print vs System.out.println

Back (Answer)

System.out.print displays whatever is in the () on the screen but wait at the end of line for more information to display System.out.println displays whatever is in the () on the screen, then move cursor to the next line

#6
Front (Question)

What is a string literal?

Back (Answer)

Exact sequence of characters (letters, numbers, or symbols) which are enclosed between two quotation marks

#7
Front (Question)

What is a syntax error?

Back (Answer)

An error that occurs when the syntax in the program was created incorrectly Program will not compile while these errors are present

#8
Front (Question)

Identify the syntax error in each line System.ot.print (“Hi”); system.out.print(“Hello);

Back (Answer)

Line one- out spelled ot Line two- Uncapitalized system and missing second quotation mark

#9
Front (Question)

What is an exception?

Back (Answer)

Program attempts to divide a number by zero Occurs while the program is running Will cause the program to terminate abnormally

#10
Front (Question)

What is a logical error?

Back (Answer)

Programmer accidently uses the wrong symbol for an operation such as using minus instead of plus to find sum of two numbers Detected when actual output differs from anticipated output

#11
Front (Question)

What are primitive data types?

Back (Answer)

Automatically part of the Java program which does not need to be created by a programmer

#12
Front (Question)

What are non-primitive data types?

Back (Answer)

Methods created by programmer to perform actions that primitive types can’t

#13
Front (Question)

Is String a primitive or non-primitive type?

Back (Answer)

Primitive data type

#14
Front (Question)

What is boolean?

Back (Answer)

Outputs “true” or “false” Smallest data type at one bit

#15
Front (Question)

What is int?

Back (Answer)

Refers to whole numbers Medium data type at 32 bits

#16
Front (Question)

What is double?

Back (Answer)

Floating point numbers (w/decimals) Largest data type at 64 bits

#17
Front (Question)

Give an example of int, double boolean, and string.

Back (Answer)

int - any whole numbers double - any numbers with a decimal boolean - true or false string- any sequence in “”

#18
Front (Question)

Give a situation where each data type is most suitable to be used

Back (Answer)

int - any discrete data points double - grades, GPA, height, any continuous data boolean - Scenarios where an occurrence is true or false string - Scenarios where a name or title, words are used

#19
Front (Question)

What is a type?

Back (Answer)

Set of values (a domain) and a set of operations the set uses

#20
Front (Question)

What is a variable?

Back (Answer)

Name given to a memory location that is holding a value

#21
Front (Question)

What is an example of a variable?

Back (Answer)

firstName numNotebooks course