FT1 - App

FT1 - App

University

50 Qs

quiz-placeholder

Similar activities

Neuro Foundation Final Assessment Quiz

Neuro Foundation Final Assessment Quiz

University

50 Qs

CAD_solidworks

CAD_solidworks

University

51 Qs

JARINGAN KOMPUTER

JARINGAN KOMPUTER

University

50 Qs

Python Basic

Python Basic

University

50 Qs

Computer Architecture and Organization

Computer Architecture and Organization

University

55 Qs

s.e-unit-1-mcq

s.e-unit-1-mcq

University

45 Qs

Pre-Midterm Review Questions BSME-2A/2B/2C/2D

Pre-Midterm Review Questions BSME-2A/2B/2C/2D

University

55 Qs

11th COMPUTER SCIENCE CH-1 to CH-6 TN SB I-MID

11th COMPUTER SCIENCE CH-1 to CH-6 TN SB I-MID

11th Grade - University

53 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

By signing up, you agree to our Terms of Service & Privacy Policy

Already have an account?