Computer Programming 2

Quiz
•
Computers
•
University
•
Medium
John Manuel
Used 4+ times
FREE Resource
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
Create a free account and access millions of resources
Similar Resources on Wayground
25 questions
OOPs Fundamentals

Quiz
•
University
25 questions
Тест на знание C#

Quiz
•
University
25 questions
Java - SET -1

Quiz
•
University
25 questions
C- Geniusia

Quiz
•
University
30 questions
JAVA PROGRAMMING

Quiz
•
University
30 questions
Java Programming

Quiz
•
University
25 questions
C Programming Language Quiz

Quiz
•
University
25 questions
Aptitude Competition(FY)

Quiz
•
University
Popular Resources on Wayground
18 questions
Writing Launch Day 1

Lesson
•
3rd Grade
11 questions
Hallway & Bathroom Expectations

Quiz
•
6th - 8th Grade
11 questions
Standard Response Protocol

Quiz
•
6th - 8th Grade
40 questions
Algebra Review Topics

Quiz
•
9th - 12th Grade
4 questions
Exit Ticket 7/29

Quiz
•
8th Grade
10 questions
Lab Safety Procedures and Guidelines

Interactive video
•
6th - 10th Grade
19 questions
Handbook Overview

Lesson
•
9th - 12th Grade
20 questions
Subject-Verb Agreement

Quiz
•
9th Grade