
Basics of Programming in Java (CH.9)

Quiz
•
Other
•
University
•
Hard

J Gabe
FREE Resource
45 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which of the following is a correctly written Java statement?
2.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Examine the following code. What is missing on the ''if statement''?
An ''end if'' statement
Brackets/braces
An ''else statement''
A semicolon
3.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
The compiler is giving an error on the following statement. Why?
Missing brackets
Missing semicolon
Missing a value
Missing a variable
4.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
A Java statement can be thought of as which one of the following?
An expression
A prompt
An instruction
A loop
5.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What type of statement is the following?
Control
Assignment
Integer
Void
6.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
How is the return value declared in a method?
By the data type alone after the method name
By the data type alone before the method name
By the data type and the variable name following the method name
By the data type and variable names in parentheses
7.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which of the following is NOT true about a method in Java?
Java methods can have no parameters
Java methods can return more than one value
Java methods can have more than one parameter
Java methods can return no values
Create a free account and access millions of resources
Similar Resources on Wayground
50 questions
BCA Quizzler

Quiz
•
University
40 questions
Database Systems Final Exam

Quiz
•
University
50 questions
JavaScript-ITELECTIVE

Quiz
•
University
40 questions
Python Programming Quiz

Quiz
•
University
40 questions
Power Electronics

Quiz
•
University
40 questions
Python Set

Quiz
•
University
47 questions
AJP Vidyalankar Polytechnic CHP 5 Part 1

Quiz
•
University
45 questions
UNIT - 1

Quiz
•
University
Popular Resources on Wayground
50 questions
Trivia 7/25

Quiz
•
12th Grade
11 questions
Standard Response Protocol

Quiz
•
6th - 8th Grade
11 questions
Negative Exponents

Quiz
•
7th - 8th Grade
12 questions
Exponent Expressions

Quiz
•
6th Grade
4 questions
Exit Ticket 7/29

Quiz
•
8th Grade
20 questions
Subject-Verb Agreement

Quiz
•
9th Grade
20 questions
One Step Equations All Operations

Quiz
•
6th - 7th Grade
18 questions
"A Quilt of a Country"

Quiz
•
9th Grade