
Computer Programming 2
Authored by John Manuel
Computers
University
Used 5+ times

AI Actions
Add similar questions
Adjust reading levels
Convert to real-world scenario
Translate activity
More...
Content View
Student View
30 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
A while loop carries on as long as...
The condition in the brackets is true
The condition in the brackets is false
i < 10
the for loop has not ended
2.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
A while loop has the following format:
while (condition)
{
...
}
while
{
...
}
continue while (condition)
{
...
}
while [condition]
[
...;
]
3.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
OUTPUT?
int i = 1;
while (i < 4) {
System.out.println("Hello");
i++;
}
Hello
Hello
Hello
Hello
Hello
Hello
Hello
Hello
Hello
Hello
Hello
Hello
Hello
4.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
Which of the following is the complete syntax of creating a class?
public class Main { }
public class Main() { }
public class Main
public class Main()
5.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
Methods are declared within a class.
True
False
6.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
static void myMethod(){ }
What is the name of the method?
static void myMethod
void myMethod
static myMethod
myMethod
7.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
Who invented Java?
James Gosling
Taylor Swift
Steve Jobs
Bill Gates
Tim Berners-Lee
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
25 questions
SQL MIDTERM EXAM
Quiz
•
University
25 questions
Human and Computer Interaction Part 2
Quiz
•
University - Professi...
34 questions
Computer Classification
Quiz
•
University
25 questions
PreAssessment_Computer Basics
Quiz
•
University
30 questions
Linux Quiz (RHCSA)
Quiz
•
University
25 questions
Python Module 1
Quiz
•
University
25 questions
PYTHON CONTEST
Quiz
•
University
25 questions
Set Theory Quiz
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
22 questions
fractions
Quiz
•
3rd Grade
20 questions
Main Idea and Details
Quiz
•
5th Grade
20 questions
Context Clues
Quiz
•
6th Grade
15 questions
Equivalent Fractions
Quiz
•
4th Grade
20 questions
Figurative Language Review
Quiz
•
6th Grade