FT1 - App

FT1 - App

University

50 Qs

quiz-placeholder

Similar activities

JAVASCRIPT LONG

JAVASCRIPT LONG

University

55 Qs

ASTS GENAP INFORMATIKA KELAS 8 2024-2025

ASTS GENAP INFORMATIKA KELAS 8 2024-2025

8th Grade - University

50 Qs

Quiz ( SIL )

Quiz ( SIL )

University

45 Qs

Email - Northstar

Email - Northstar

University

50 Qs

Compro Quiz#1

Compro Quiz#1

University

51 Qs

Komputer Akuntansi

Komputer Akuntansi

University

50 Qs

#3 CIW Data Analyst - Certification Prep

#3 CIW Data Analyst - Certification Prep

9th Grade - University

54 Qs

DDPTJKT - Latihan Soal PTS Genap

DDPTJKT - Latihan Soal PTS Genap

10th Grade - University

50 Qs

FT1 - App

FT1 - App

Assessment

Quiz

Computers

University

Practice Problem

Medium

Created by

Vinston Raja

Used 5+ times

FREE Resource

AI

Enhance your content in a minute

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

50 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

20 sec • 1 pt

char ch = 'AB'; Error cause?

Too many characters for char

Missing quotes

Java allows multi-char in char

None

2.

MULTIPLE CHOICE QUESTION

20 sec • 1 pt

String s = "Hello; Error cause?

String cannot have semicolon

Missing ending double quote

Use single quotes for strings

None

3.

MULTIPLE CHOICE QUESTION

20 sec • 1 pt

int num = 5; if(num > 2) System.out.println("Big") else System.out.println("Small"); Error cause?

Missing braces

Missing semicolon after println

Missing semicolon after System.out.println("Big")

None

4.

MULTIPLE CHOICE QUESTION

20 sec • 1 pt

float f = 3.5; Error cause?

Cannot assign double to float without casting

Missing F suffix or cast

Java automatically converts

None

5.

MULTIPLE CHOICE QUESTION

20 sec • 1 pt

for(int i=0; i<5; i++) for(int j=0; j<5; i++) System.out.println(i + "," + j); Problem?

Infinite loop

Compile error

Off-by-one

None

6.

MULTIPLE CHOICE QUESTION

20 sec • 1 pt

String s = "Java"; s.charAt(4); Result?

a

v

IndexOutOfBoundsException

Compile error

7.

MULTIPLE CHOICE QUESTION

20 sec • 1 pt

int a = 5; switch(a){ case 1: System.out.println("One"); default: System.out.println("Default"); case 5: System.out.println("Five"); } Output?

One Default Five

Default Five

Five only

Default only

Create a free account and access millions of resources

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?