No student devices needed. Know more
30 questions
In this class, what is Java?
A cup of coffee
A programming language
An island
A video game console
Which of these commands is the correct way of printing in Java?
System.Out.println
System.out.Printlln
System.out.println
system.out.println
Which of these commands have errors? Select multiple
System.out.print("Hello World")
System.out.println(Hello World);
System.out.Print("Hello World);
System.out.println("Hello World");
Which of the followings is Java code that starts from the main() method as a mandatory part of every program
public void static main(String args [])
public void main static (args[] String)
public static void main (String args[])
public static void main [String [] Args]
It is an optional statement used to describe what a program or a line of program is doing.
tag
command
code
comment
True or False : Java is case sensitive, which means identifier Hello and hello would have different meanings in Java
True
False
A Java statement is one or more lines of code terminated by a semicolon. True or False?
False
True
A Java block is formed by enclosing statements by open and close parentheses. True or False?
True
False
Comment lines are ignored by the compiler. True or False?
True
False
What is the name of the Java mascot?
Duke
Ronny
Penguin
James
Jack
Which company owns Java?
Oracle
Microsoft
Apple
Intel
The most basic circuitry-level computer language is __________.
C++
Java
High-Level Language
Machine Language (binary)
A __________ translates high-level language statements into machine code.
Programmer
Syntax Detector
Compiler
Decipherer
You must compile classes written in Java into __________.
Bytecode
Source Code
Javadoc Statements
Object Code
All Java programming statements must end with a __________.
Period
Comma
Semicolon
Closing Parenthesis
All Java applications must have a method named __________.
Method ()
Main ()
Java ()
Hello ()
Explain JDK
It stands for Java Development Kit
It is the tool necessary to compile, document and package Java programs
None of the above
Both 1 and 2
Explain JRE
It stands for Java Runtime Environment
JRE refers to a runtime environment in which java bytecode can be executed.
None of the above
Both 1 and 2
What is JVM
It stands for Java Virtual Machine
It is an abstract machine. It is specification that provides run-time environment in which java bytecode can be executed
None of the above
Both 1 and 2
If your code doesn't work, what should you do?
Run around screaming madly
Burn the computer to a pile of ash
Read any error messages carefully
Sit and wait for a teacher to sort it out
What is an algorithm?
A list of instructions
Computer code
A programming language
A type of musical instrument
When you're programming, is there only one way to resolve the problem correctly?
No
Yes
Computers need instructions that are _______.
Wordy
Tricky
Specific
Interesting
What is the name of the IDE that we use to program in Java?
Alice
Greenfoot
Netbeans
BlueJay
Why is it important to use appropriate whitespace in your code?
It keeps your code organized
It prevents readability issues
It prevents mistakes whiles programming
all of the above
What is a breakpoint? Pick 2
used to pause code execution
place in your code where the code breaks
something that affects your code execution when run normally
used to help debug a program
True/False - Netbeans can highlight matching curly braces for you.
True
False
Which of the following is a correctly written comment?
/*This is a comment
/*This is a comment/*
/*This is a comment that is displayed on
multiple lines*/
//This is a comment that is displayed on
multiple lines
How many main methods must a Java program have?
1
2
3
It doesn't have to have one
Explore all questions with a free account