Search Header Logo

Computer Programming 2

Authored by John Manuel

Computers

University

Used 5+ times

Computer Programming 2
AI

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

Media Image

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

Google

Continue with Google

Email

Continue with Email

Classlink

Continue with Classlink

Clever

Continue with Clever

or continue with

Microsoft

Microsoft

Apple

Apple

Others

Others

Already have an account?

Discover more resources for Computers