stud
bud
Sign up
Log in
Home
Library
Explore
SAT
More
Duplicate of Java Programming Concepts Flashcards | StudBud
Explore
/
Duplicate of Java Programming Concepts
Duplicate of Java Programming Concepts
15 terms
·
StudBud Administration
Learn basic programming concepts in #Java
Flashcards
15 cards
F
Practice quiz
P
Host live
L
Questions
15
Answers
1
The "Scanner" is a class.
True
False
2
This code is a method call:
get.next();
False
True
3
The syntax for class declaration is: <modifier> <return_type> <method_name>(argument_list){ }
False
True
4
This is a C-style comment: /*Complete name and section. */
False
True
5
This is a method to accept numeric user input:
next()
True
False
6
This code is a variable declaration:
age = get.nextInt();
False
True
7
Object is an instance of a class.
True
False
8
This is the code to create an instance of the Scanner:
Scanner get = new Scanner(System.in);
False
True
9
Java codes are case-sensitive.
False
True
10
This is a comment: \\Complete name and section
False
True
11
This is the correct program code used to import the
Scanner
:
import java.util.scanner;
False
True
12
Class is the basic element of a program.
False
True
13
"int" is a data type
True
False
14
class
is a valid variable name.
True
False
15
This is a valid program statement: System.out.print("Hello");
False
True