FT1 - App

FT1 - App

University

50 Qs

quiz-placeholder

Similar activities

OOPs Model Exam

OOPs Model Exam

University

50 Qs

2ND DIAGNOSTIC TEST

2ND DIAGNOSTIC TEST

9th Grade - University

51 Qs

MIDTERM ITC-103

MIDTERM ITC-103

University

50 Qs

codinggss

codinggss

University

50 Qs

Quiz on C Operators

Quiz on C Operators

University

49 Qs

VB.NET BASIC QUIZ

VB.NET BASIC QUIZ

University

50 Qs

Exploring Programming Paradigms and Java

Exploring Programming Paradigms and Java

University

55 Qs

Simulado_Python_ADS

Simulado_Python_ADS

University

52 Qs

FT1 - App

FT1 - App

Assessment

Quiz

Computers

University

Medium

Created by

Vinston Raja

Used 5+ times

FREE Resource

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
or continue with
Microsoft
Apple
Others
By signing up, you agree to our Terms of Service & Privacy Policy
Already have an account?