
testquiz
Quiz
•
Information Technology (IT)
•
University
•
Hard
Ahmad Awais
Used 3+ times
FREE Resource
Enhance your content in a minute
25 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What will be the output of the following code?
int[] arr = {2, 4, 6, 8};
System.out.println(arr[arr.length - 2]);
2
6
8
4
2.
MULTIPLE CHOICE QUESTION
20 sec • 1 pt
Which component would best be used for multiline text input in Swing?
JTextField
JTextArea
JPasswordField
JLabel
3.
MULTIPLE CHOICE QUESTION
20 sec • 1 pt
What is true about 2D arrays?
All rows must be the same length
You can't use indexes with them
They can only be declared dynamically
They can be jagged
4.
MULTIPLE CHOICE QUESTION
45 sec • 1 pt
What does the following recursive function return?
int func(int n) {
if (n <= 0) return 1;
return n * func(n - 1); }
System.out.println(func(3));
3
9
6
1
5.
MULTIPLE CHOICE QUESTION
20 sec • 1 pt
In exception handling, finally block:
Executes only if an exception occurs
Never executes
Always executes
Executes after catch only
6.
MULTIPLE CHOICE QUESTION
20 sec • 1 pt
Which of the following can be used to catch an exception?
try-catch
catch-finally
try-finally
throw-catch
7.
MULTIPLE CHOICE QUESTION
20 sec • 1 pt
Which method is used to write text to a file?
File.read()
File.write()
write() of FileWriter
Scanner.next()
Create a free account and access millions of resources
Create resources
Host any resource
Get auto-graded reports

Continue with Google

Continue with Email

Continue with Classlink

Continue with Clever
or continue with

Microsoft
%20(1).png)
Apple
Others
By signing up, you agree to our Terms of Service & Privacy Policy
Already have an account?
Similar Resources on Wayground
20 questions
Analisis Kinerja Komputer
Quiz
•
12th Grade - University
20 questions
RINGKASAN MATERI JARKOM II
Quiz
•
University
20 questions
Quiz 1
Quiz
•
University
20 questions
Quiz Mobile Devices and Internet of Things
Quiz
•
University
20 questions
Uji Pengetahuan Teknologi Informasi
Quiz
•
9th Grade - University
20 questions
Pemahaman Berfikir Komputasional
Quiz
•
9th Grade - University
20 questions
soal informatika bab 3 kelas 7
Quiz
•
7th Grade - University
20 questions
Proses Komputasional dan Pseudocode
Quiz
•
10th Grade - University
Popular Resources on Wayground
20 questions
Halloween Trivia
Quiz
•
6th - 8th Grade
25 questions
Multiplication Facts
Quiz
•
5th Grade
15 questions
Order of Operations
Quiz
•
5th Grade
20 questions
Halloween
Quiz
•
5th Grade
16 questions
Halloween
Quiz
•
3rd Grade
12 questions
It's The Great Pumpkin Charlie Brown
Quiz
•
1st - 5th Grade
20 questions
Possessive Nouns
Quiz
•
5th Grade
10 questions
Halloween Traditions and Origins
Interactive video
•
5th - 10th Grade
Discover more resources for Information Technology (IT)
10 questions
Halloween Movies Trivia
Quiz
•
5th Grade - University
12 questions
Halloween
Quiz
•
3rd Grade - University
5 questions
Using Context Clues
Interactive video
•
4th Grade - University
20 questions
Definite and Indefinite Articles in Spanish (Avancemos)
Quiz
•
8th Grade - University
7 questions
Force and Motion
Interactive video
•
4th Grade - University
14 questions
Eat Healthy,Be Healty
Quiz
•
4th Grade - University
7 questions
History of Halloween: Pagan or Christian?
Interactive video
•
11th Grade - University
7 questions
Renewable and Nonrenewable Resources
Interactive video
•
4th Grade - University
