
Quiz 1
Authored by Ms. Asst.Prof
Computers
University
Used 3+ times

AI Actions
Add similar questions
Adjust reading levels
Convert to real-world scenario
Translate activity
More...
Content View
Student View
13 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
int x=5, y=20;
x+=32;
y/=4;
System.out.println("x="+x+", y="+y);
x=32, y=4
x=9, y=52
x=37, y=5
x=160, y=80
2.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Every Java application program must have
a class named MAIN
a method named main
comments
integer variables
3.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
To print "Hello, world" on the moniter, use the following Java statement
SystemOutPrintln("Hello, world");
System.out.println{"Hello, world"}
System.out.println("Hello, world");
Print "Hello, world"
4.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Predict the output?
final double x=99.0;
x=54.3;
System.out.println("x="+x);
x=54.3
x=99
x=153.3
Nothing, this is an error
5.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which of the following is a valid Java statement?
String str='John Doe';
string str="John Doe";
string str='John Doe';
String str="John Doe";
6.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which of the following does not describe a valid comments in Java?
Single line comments, two forward slashes - //
Multi-line comments, start with /* and end with */
Multi-line comments, start with / and end with /
Documentation comments, starting with /** and ending with */
7.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which of the following statements correctly creates a Scanner object for keyboard input?
Scanner kbd = new Scanner(System.keyboard);
Scanner keyboard = new Scanner(System.in);
Scanner keyboard(System.in);
Keyboard scanner =new Keyboard(System.in);
Access all questions and much more by creating a free account
Create resources
Host any resource
Get auto-graded reports

Continue with Google

Continue with Email

Continue with Classlink

Continue with Clever
or continue with

Microsoft
%20(1).png)
Apple
Others
Already have an account?
Similar Resources on Wayground
15 questions
СОР_8 класс_раздел 1
Quiz
•
10th Grade - University
12 questions
Computer Software
Quiz
•
University
17 questions
Algorytmy 8
Quiz
•
1st Grade - University
15 questions
Computer and Other Human Inventions
Quiz
•
University
10 questions
Session 2
Quiz
•
University
10 questions
Python with DataScience
Quiz
•
7th Grade - University
10 questions
C Programming Quiz-5
Quiz
•
University
12 questions
ロジックテスト (Đề kiểm tra năng lực IT)
Quiz
•
University
Popular Resources on Wayground
15 questions
Fractions on a Number Line
Quiz
•
3rd Grade
20 questions
Equivalent Fractions
Quiz
•
3rd Grade
25 questions
Multiplication Facts
Quiz
•
5th Grade
29 questions
Alg. 1 Section 5.1 Coordinate Plane
Quiz
•
9th Grade
22 questions
fractions
Quiz
•
3rd Grade
11 questions
FOREST Effective communication
Lesson
•
KG
20 questions
Main Idea and Details
Quiz
•
5th Grade
20 questions
Context Clues
Quiz
•
6th Grade
Discover more resources for Computers
12 questions
IREAD Week 4 - Review
Quiz
•
3rd Grade - University
7 questions
Fragments, Run-ons, and Complete Sentences
Interactive video
•
4th Grade - University
7 questions
Renewable and Nonrenewable Resources
Interactive video
•
4th Grade - University
10 questions
DNA Structure and Replication: Crash Course Biology
Interactive video
•
11th Grade - University
5 questions
Inherited and Acquired Traits of Animals
Interactive video
•
4th Grade - University
5 questions
Examining Theme
Interactive video
•
4th Grade - University
20 questions
Implicit vs. Explicit
Quiz
•
6th Grade - University
7 questions
Comparing Fractions
Interactive video
•
1st Grade - University