Loops and operators java

Loops and operators java

University

13 Qs

quiz-placeholder

Similar activities

R Controlled Vowels

R Controlled Vowels

KG - University

10 Qs

OCA Chuong 2

OCA Chuong 2

University

11 Qs

Mảng động trong C

Mảng động trong C

University

17 Qs

DataTypes & Operators in C

DataTypes & Operators in C

University

15 Qs

Future

Future

University

16 Qs

Computer Security

Computer Security

University

10 Qs

Trump

Trump

University

15 Qs

Strings & Arrays

Strings & Arrays

University

12 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?