
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
Test 1 IMC651

Quiz
•
University
50 questions
BSMT (COURSE) MIDTERM , FIRST Semester 2024-2025 NAV 3 TEST QUE

Quiz
•
University
40 questions
Quiz Android Development

Quiz
•
University
50 questions
Prelim Examination in MFIL 5

Quiz
•
University
50 questions
METHODOLOGIES EXAM 1 AND 2

Quiz
•
University
48 questions
ECG/EKG

Quiz
•
12th Grade - University
40 questions
PAS B.Inggris 11

Quiz
•
11th Grade - University
50 questions
Elec 06-01 to Elec 06-04 Semicon

Quiz
•
University
Popular Resources on Wayground
10 questions
Lab Safety Procedures and Guidelines

Interactive video
•
6th - 10th Grade
10 questions
Nouns, nouns, nouns

Quiz
•
3rd Grade
10 questions
9/11 Experience and Reflections

Interactive video
•
10th - 12th Grade
25 questions
Multiplication Facts

Quiz
•
5th Grade
11 questions
All about me

Quiz
•
Professional Development
22 questions
Adding Integers

Quiz
•
6th Grade
15 questions
Subtracting Integers

Quiz
•
7th Grade
9 questions
Tips & Tricks

Lesson
•
6th - 8th Grade
Discover more resources for Other
21 questions
Spanish-Speaking Countries

Quiz
•
6th Grade - University
20 questions
Levels of Measurements

Quiz
•
11th Grade - University
7 questions
Common and Proper Nouns

Interactive video
•
4th Grade - University
12 questions
Los numeros en español.

Lesson
•
6th Grade - University
7 questions
PC: Unit 1 Quiz Review

Quiz
•
11th Grade - University
7 questions
Supporting the Main Idea –Informational

Interactive video
•
4th Grade - University
12 questions
Hurricane or Tornado

Quiz
•
3rd Grade - University
7 questions
Enzymes (Updated)

Interactive video
•
11th Grade - University