
Core Java and JDBC - QUIZ 1
Quiz
•
others
•
•
Practice Problem
•
Medium
shilpa.hiremath shilpa.hiremath
Used 4+ times
FREE Resource
Enhance your content in a minute
37 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
What will be the output of the below statements?
public class Test {
public static void main(String[] args)
{
String s1 = null;
System.out.println(s1); //line 2
System.out.println(s1.toString()); //line 3
}
}
a) null null
b) null NullPointerException
c) NullPointerException NullPointerException
d) None
2.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which of the following methods is used to perform DML statements in JDBC?
executeResult()
executeQuery()
executeUpdate()
execute()
3.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which class is used to read text from the console in Java?
4.
MULTIPLE CHOICE QUESTION
30 sec • 2 pts
What is the output of the following Java program?
5.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which exception is thrown when a string cannot be converted to a numeric type?
6.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which package contains the JDBC API?
java.jdbc
java.db
java.sql
java.oracle
java.mysql
7.
MULTIPLE CHOICE QUESTION
30 sec • 2 pts
What is the purpose of the join() method in Java?
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
34 questions
Grammar Test ELA
Quiz
•
6th - 8th Grade
40 questions
Appositive Phrases Practices
Quiz
•
KG - University
35 questions
Python questions
Quiz
•
12th Grade
33 questions
Backend Gokak
Quiz
•
Professional Development
34 questions
IC3 GS6 SPARK LEVEL 2 - ÔN TẬP 1
Quiz
•
KG
37 questions
Ch. 2 Test - Places in Kentucky
Quiz
•
KG - University
40 questions
ISE 2 QUIZ
Quiz
•
KG - University
40 questions
PENILAIAN TENGAH SEMESTER (PTS) GENAP MAPEL PPKn KELAS VIII (DELAPAN) TAHUN PELAJARAN 2022/2023
Quiz
•
KG - University
Popular Resources on Wayground
10 questions
Honoring the Significance of Veterans Day
Interactive video
•
6th - 10th Grade
9 questions
FOREST Community of Caring
Lesson
•
1st - 5th Grade
10 questions
Exploring Veterans Day: Facts and Celebrations for Kids
Interactive video
•
6th - 10th Grade
19 questions
Veterans Day
Quiz
•
5th Grade
14 questions
General Technology Use Quiz
Quiz
•
8th Grade
25 questions
Multiplication Facts
Quiz
•
5th Grade
15 questions
Circuits, Light Energy, and Forces
Quiz
•
5th Grade
19 questions
Thanksgiving Trivia
Quiz
•
6th Grade
Discover more resources for others
10 questions
Honoring the Significance of Veterans Day
Interactive video
•
6th - 10th Grade
9 questions
FOREST Community of Caring
Lesson
•
1st - 5th Grade
10 questions
Exploring Veterans Day: Facts and Celebrations for Kids
Interactive video
•
6th - 10th Grade
19 questions
Veterans Day
Quiz
•
5th Grade
14 questions
General Technology Use Quiz
Quiz
•
8th Grade
25 questions
Multiplication Facts
Quiz
•
5th Grade
15 questions
Circuits, Light Energy, and Forces
Quiz
•
5th Grade
19 questions
Thanksgiving Trivia
Quiz
•
6th Grade
