Search Header Logo

Making decision with if else

Authored by ANIL KUMAR

Computers

Professional Development

 Making decision with if else
AI

AI Actions

Add similar questions

Adjust reading levels

Convert to real-world scenario

Translate activity

More...

    Content View

    Student View

34 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

20 sec • 1 pt

Can you use an if statement to make a decision?

A) Yes, the IF statement guides decision-making in Java.
B) No, the IF statement is for loops only.
C) Yes, but only for numbers.
D) No, IF statements are for strings.

2.

MULTIPLE CHOICE QUESTION

20 sec • 1 pt

What is decision making with a simple if statement in Java?

A) It executes code regardless of conditions.
B) It helps with looping in Java.
C) It evaluates conditions to make decisions.
D) It prints messages to the console.

3.

MULTIPLE CHOICE QUESTION

20 sec • 1 pt

How do you make decision making in Java?

A) By using loops exclusively.
B) By evaluating one or more conditions.
C) By avoiding if statements.
D) By using only switch statements.

4.

MULTIPLE CHOICE QUESTION

20 sec • 1 pt

How do you write decision-making statements with if-else and if-else if?

A) Using an expression without any statements.
B) Writing multiple if statements together.
C) Following an if statement with an else statement.
D) Including optional loops in the code.

5.

MULTIPLE CHOICE QUESTION

20 sec • 1 pt

Is an if statement also known as a decision?

A) Yes, it evaluates expressions.
B) No, it is only for assignments.
C) Yes, it guides decision-making.
D) No, it is for calculations only.

6.

MULTIPLE CHOICE QUESTION

20 sec • 1 pt

How do conditional statements make decisions?

A) By executing all statements in sequence.
B) By randomly choosing statements to execute.
C) By evaluating specified conditions.
D) By ignoring conditions and executing everything.

7.

MULTIPLE CHOICE QUESTION

20 sec • 1 pt

What are the 2 types of decision-making statements in Java?

A) if and switch.
B) while and for.
C) break and continue.
D) try and catch.

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?