Loops and operators java

Loops and operators java

University

13 Qs

quiz-placeholder

Similar activities

MD2-2.1-Câu lệnh lặp

MD2-2.1-Câu lệnh lặp

University

10 Qs

Fragments, run ons, splices

Fragments, run ons, splices

University

15 Qs

Java Basics Assessment

Java Basics Assessment

University

10 Qs

LL U5 Collocations Transport/ Vocabulary Travel

LL U5 Collocations Transport/ Vocabulary Travel

University

18 Qs

Android - Quiz 15

Android - Quiz 15

University

15 Qs

De todo

De todo

1st Grade - Professional Development

16 Qs

The Skin I'm In Ch. 14-17

The Skin I'm In Ch. 14-17

KG - University

10 Qs

OCA Chuong 3

OCA Chuong 3

University

15 Qs

Loops and operators java

Loops and operators java

Assessment

Quiz

English

University

Hard

Created by

Abdul Rahman

Used 2+ times

FREE Resource

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

Create a free account and access millions of resources

Create resources
Host any resource
Get auto-graded reports
or continue with
Microsoft
Apple
Others
By signing up, you agree to our Terms of Service & Privacy Policy
Already have an account?