Input Basics
Data Types
Parts of Coding Language
Where's the Error?!
How Do I Code That?
100

What class is used to read from the keyboard?

Scanner

100

What is a Data Type?

The kind of information stored in a variable.

100

What is the correct symbol for a comment?

// and/or /* */

100

System.out.printl("Hello!");

println

100

Print "Hello World!"

System.out.println("Hello World!");

200

What function is used to read a String value from the user?

nextLine()

200

Name a non-primitive data type.

String, Scanner

200

This is a direct representation of data in the code.

Literal

200

int x = 4.5;

4.5 is not a whole number

200

Declare and Initialize a String Variable called x to the literal text value hello

String x = "hello";

300

Name one way of giving input to a computer program that is not a keyboard.

Voice, mouse, touchscreen, console, VR headset, etc.

300

What's the difference between int and double?

int - whole number

double - decimal

300

This refers to a specific place in computer memory and the current value stored there.

Variable

300

int x = kb.nextLine();

should be nextBoolean()

300

What block in Scratch temporarily stores the data typed by the user?

answer

400

Which of these is NOT a Scanner library call (to the best of your knowledge):

A. nextBoolean()

B. nextDouble()

C. nextChar()

nextChar()

400

An error with Data Types is considered a ______ Error.

Compile-Time

400

These have specific, unchangeable meaning in the computer language.

Key Word

400

Scanner kb = new Scanner();

Scanner(System.in);

400

Create the Scanner object kb

Scanner kb = new Scanner(System.in);

500

//Will this code print the user entered value?

Scanner kb = new Scanner(System.in);

S.O.P("Who is your daddy and what does he do: ")

kb.nextLine();

NO.

500

A String is made of ________.

chars

500

This is code that someone else wrote that you can use.

Library

500

System.out.println("5 + 4");

Logic Error

500

Write the import statement needed for the Scanner library

import java.util.*;

or

import java.util.Scanner;