4Inf_Java_base

4Inf_Java_base

11th Grade

25 Qs

quiz-placeholder

Similar activities

Cuestionario de Python

Cuestionario de Python

11th Grade

20 Qs

TIẾT 22 BÀI TẬP

TIẾT 22 BÀI TẬP

1st - 12th Grade

20 Qs

Tin học 11 chương I

Tin học 11 chương I

1st - 12th Grade

20 Qs

ALGORITMA DAN PEMROGRAMAN

ALGORITMA DAN PEMROGRAMAN

7th Grade - University

20 Qs

UID uCertify Chapter 9 Test

UID uCertify Chapter 9 Test

8th - 12th Grade

20 Qs

Computer Science: Chapter 2 Test Review

Computer Science: Chapter 2 Test Review

9th - 12th Grade

20 Qs

Round-1 Technical Aptitude

Round-1 Technical Aptitude

11th Grade - Professional Development

20 Qs

Web design

Web design

11th Grade

20 Qs

4Inf_Java_base

4Inf_Java_base

Assessment

Quiz

Computers

11th Grade

Medium

Created by

Agostino Villa

Used 4+ times

FREE Resource

AI

Enhance your content in a minute

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

25 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

1 min • 1 pt

qual è l'output del codice che segue?

public class IncDec {

public static void main(String s[]) {

int a = 1;

int b = 2;

int c;

int d;


c = 2+b;

d = a+1;

c++;

System.out.println("a = " + a);

System.out.print("b = " + b);

System.out.println("c = " + c);

System.out.print("d = " + d);

}

}

a = 1 b = 4 c = 4 d = 2

a = 1 b = 3 c = 4 d = 1

Program does not compile.

a = 1 b = 2 c = 5 d = 2

2.

MULTIPLE CHOICE QUESTION

1 min • 1 pt

qual è l'output del codice che segue?

public class Test

{

public static void main(String [] args)

{

int x=20;

String sup;

if (x>19) { sup = "small" }

if (x<21) { sup = "tiny" }

if (x>20) { sup = "hauge" }

System.out.println(sup);

}

}

small

tiny

huge

Compilation fails

3.

MULTIPLE CHOICE QUESTION

1 min • 1 pt

qual è l'output del codice seguente?.


public class Numbers

{

public static void main(String args[])

{

int a=20, b=10;

if((a<b)&&(b <25))

{

System.out.println("this is any language logic");

}

System.out.println(b);

}

}

10

12

11

Compilation Error

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

individua l'istruzione corretta

int num = "9";

int num = 6

int = 4;

int num = 3;

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

quale sequenza viene mostrata a video da questo spezzone di codice?

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

System.out.println(i);

}

0 - 1 - 2 - 3 - 4 - 5 - 6 - 7 - 8 - 9 - 10

0 - 1 - 2 - 3 - 4 - 5 - 6 - 7 - 8 - 9

1 - 2 - 3 - 4 - 5 - 6 - 7 - 8 - 9

0 - 1 - 2 - 3 - 4 - 5 - 6 - 7 - 8

6.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

+, - , / , * che tipi di operatori sono?

aritmetici

di comparazione

logici

7.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

>, <, =, <> che tipi di operatori sono?

comparazione

logici

aritmetici

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?