What class is used to read from the keyboard?
Scanner
What is a Data Type?
The kind of information stored in a variable.
What is the correct symbol for a comment?
// and/or /* */
System.out.printl("Hello!");
println
Print "Hello World!"
System.out.println("Hello World!");
What function is used to read a String value from the user?
nextLine()
Name a non-primitive data type.
String, Scanner
This is a direct representation of data in the code.
Literal
int x = 4.5;
4.5 is not a whole number
Declare and Initialize a String Variable called x to the literal text value hello
String x = "hello";
Name one way of giving input to a computer program that is not a keyboard.
Voice, mouse, touchscreen, console, VR headset, etc.
What's the difference between int and double?
int - whole number
double - decimal
This refers to a specific place in computer memory and the current value stored there.
Variable
int x = kb.nextLine();
should be nextBoolean()
What block in Scratch temporarily stores the data typed by the user?
answer
Which of these is NOT a Scanner library call (to the best of your knowledge):
A. nextBoolean()
B. nextDouble()
C. nextChar()
nextChar()
An error with Data Types is considered a ______ Error.
Compile-Time
These have specific, unchangeable meaning in the computer language.
Key Word
//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.
A String is made of ________.
chars
This is code that someone else wrote that you can use.
Library
System.out.println("5 + 4");
Logic Error
Write the import statement needed for the Scanner library
import java.util.*;
or
import java.util.Scanner;