Font size
WorksheetsJava Chapter 1 CS2
Total questions: 16
Worksheet time: 8mins
Class is another name for a program in Java
Computers process data under the control of sets of instructions called
logic
programs
classes
software
The rules of a programming language constitute its __________.
Syntax
Logic
Format
Objects
Java is architecturally __________.
Specific
Oriented
Neutral
Abstract
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 ()
Files containing Java source code use the file extension __________.
.java
.class
.txt
.src
He was the developer of Java Language.
James Gowsling
Jackie Gosling
James Gosling
Jackie Gosling
Which of this command is the correct way of printing in Java?
System.Out.println
System.out.Println
System.out.println
system.out.println
Which of this command has errors? Select multiple
System.out.println("Hello World")
System.out.println(Hello World);
System.out.Println("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 meaning in Java
True
False
A Java statement is one or more lines of code terminated by a semicolon. True or False?
False
True
Identifiers can start with a number. True or False?
True
False
