
FT1 - App

Quiz
•
Computers
•
University
•
Medium
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
Similar Resources on Wayground
50 questions
Java Programming Quiz 2-6

Quiz
•
University
50 questions
Java Test2

Quiz
•
University
53 questions
Exception Handling

Quiz
•
University
55 questions
ITC 112 - Topic 1 Quiz

Quiz
•
University
49 questions
Test 1

Quiz
•
University
50 questions
Kiến thức về xử lý mảng 1 chiều trong C++

Quiz
•
University
50 questions
Dasar Pemrograman Java

Quiz
•
University
50 questions
quiz oop [encapsulation, inherit, interface, abstract]

Quiz
•
University
Popular Resources on Wayground
10 questions
Lab Safety Procedures and Guidelines

Interactive video
•
6th - 10th Grade
10 questions
Nouns, nouns, nouns

Quiz
•
3rd Grade
10 questions
Appointment Passes Review

Quiz
•
6th - 8th Grade
25 questions
Multiplication Facts

Quiz
•
5th Grade
11 questions
All about me

Quiz
•
Professional Development
22 questions
Adding Integers

Quiz
•
6th Grade
15 questions
Subtracting Integers

Quiz
•
7th Grade
20 questions
Grammar Review

Quiz
•
6th - 9th Grade