Loops and operators java

Loops and operators java

University

13 Qs

quiz-placeholder

Similar activities

people

people

University

10 Qs

Week 3 T2: Citation and References

Week 3 T2: Citation and References

University

18 Qs

Do you have an unusual home habit?

Do you have an unusual home habit?

University

10 Qs

BÀI TẬP VỀ TÍNH TỪ VÀ TRẠNG TỪ 2

BÀI TẬP VỀ TÍNH TỪ VÀ TRẠNG TỪ 2

KG - University

10 Qs

Greeting and Seating Restaurant Guests

Greeting and Seating Restaurant Guests

University

15 Qs

Year 1 Course Introduction Quiz

Year 1 Course Introduction Quiz

University

15 Qs

Modals of Probability

Modals of Probability

University

10 Qs

BusinessPartner_3.1_A company's story

BusinessPartner_3.1_A company's story

University - Professional Development

16 Qs

Loops and operators java

Loops and operators java

Assessment

Quiz

English

University

Practice Problem

Hard

Created by

Abdul Rahman

Used 2+ times

FREE Resource

AI

Enhance your content in a minute

Add similar questions
Adjust reading levels
Convert to real-world scenario
Translate activity
More...

13 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

How to get 'char' input from the user?

next();

nextLine();

next(0);

next.charAt(0);

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is the encoding system used in 'char' datatype in java

Unicode

ASCII

Jcode

JavaEncoding

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

for(int i=0;i++ < 5;i++){

System.out.print(i);

}

135

error

12345

1234

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

for(int i=0;i< 5 || i++< 7;){

System.out.print(i);

}

135

1234567

01234567

infinite loop

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

int a=5;

System.out.println(a++ + ++a - a-- - --a);

0

1

2

3

6.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

if(1){

System.out.println("hello");

}

error

hello

no output

7.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

int a=5;

if(a==5){

System.out.println("five");

}

a=6;

else{

System.out.println("fivefive");

}

error

five

fivefive

5

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?