Search Header Logo

Week 4: Recap Java Programming

Computers

University

Used 16+ times

Week 4: Recap Java Programming
AI

AI Actions

Add similar questions

Adjust reading levels

Convert to real-world scenario

Translate activity

More...

    Content View

    Student View

10 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which of the following is the correct way to write a class signature? (The line of code to create an application)

public class NameOfApplication{

public class NameOfApplication

public NameOfApplication{

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which of the following is the correct way to declare a variable to store an integer value named num1?

double num1;

int num1;

int double num1;

final int num1;

3.

MULTIPLE SELECT QUESTION

45 sec • 1 pt

Fill in the missing blank:

keyboard=________ Scanner(System.in);

space

new

in

keyboard

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which is the correct naming convention for naming an application?

newApplication

NewApplication

newapplication

NEWAPPLICATION

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is the correct naming convention for naming a constant?

constantName

Constantname

ConstantName

CONSTANTNAME

6.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is the correct naming convention for naming a variable?

VariableName

variableName

VARIABLENAME

variablename

7.

FILL IN THE BLANKS QUESTION

1 min • 1 pt

Fill in the missing blank?

num1= (a)   .nextInt();

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

Microsoft

Continue with Microsoft

or continue with

Facebook

Facebook

Apple

Apple

Others

Others

Already have an account?