
AIML252 OOP Lab Exam 15/May/2025

Quiz
•
Computers
•
University
•
Medium
Aman Kumar
Used 4+ times
FREE Resource
25 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Arjun is developing a Java application that needs to store and retrieve user data from a database. What is the purpose of JDBC in Java?
The purpose of JDBC in Java is to enable Java applications to connect to and interact with databases.
To manage memory allocation in Java applications.
To enhance the performance of Java applications.
To provide a graphical user interface for databases.
2.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
How do you connect to an MS Access database using JDBC?
Utilize a PostgreSQL JDBC driver for the connection.
Connect using a MySQL JDBC driver.
Use UCanAccess JDBC driver to connect to MS Access database.
Use ODBC driver to connect to MS Access database.
3.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is the difference between Statement and PreparedStatement in JDBC?
Statement is for simple queries; PreparedStatement is for precompiled queries with parameters.
Statement can only execute SELECT queries; PreparedStatement can execute any type of query.
Statement does not support SQL injection prevention; PreparedStatement does.
PreparedStatement is slower than Statement for all queries.
4.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
How can you retrieve data from an Oracle database in Java?
Use JDBC to connect, execute queries, and process ResultSet.
Connect using ODBC and execute stored procedures.
Retrieve data using XML parsing methods.
Use SQL*Plus to run scripts directly on the database.
5.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is the role of the DriverManager class in JDBC?
The DriverManager class is responsible for managing database drivers and establishing connections to the database in JDBC.
The DriverManager class is used for executing SQL queries directly.
The DriverManager class is responsible for managing user permissions in the database.
The DriverManager class handles the formatting of SQL statements.
6.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Explain the concept of multithreading in Java.
Multithreading in Java is the execution of a single thread for better performance.
Multithreading in Java is a method to increase the size of the memory allocation.
Multithreading in Java refers to the use of multiple processes instead of threads.
Multithreading in Java is the concurrent execution of two or more threads, allowing for parallel task execution and efficient resource utilization.
7.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is the difference between a thread and a process?
A process is an independent execution unit with its own memory, while a thread is a lightweight execution unit that shares memory with other threads in the same process.
A process is always faster than a thread.
Threads cannot communicate with each other.
A process can only run one thread at a time.
Create a free account and access millions of resources
Similar Resources on Wayground
21 questions
РМП 3 курс 6 семестр

Quiz
•
11th Grade - University
20 questions
Programming Knowledge Quiz (Easy)

Quiz
•
5th Grade - Professio...
30 questions
Java Programming

Quiz
•
University
20 questions
Minitest FrontEnd

Quiz
•
University
20 questions
Multithreading in java

Quiz
•
University
20 questions
Web Development and Programming

Quiz
•
University
20 questions
SSIP Grand Quiz

Quiz
•
University
20 questions
IntraSympo Round One

Quiz
•
University
Popular Resources on Wayground
20 questions
Brand Labels

Quiz
•
5th - 12th Grade
10 questions
Ice Breaker Trivia: Food from Around the World

Quiz
•
3rd - 12th Grade
25 questions
Multiplication Facts

Quiz
•
5th Grade
20 questions
ELA Advisory Review

Quiz
•
7th Grade
15 questions
Subtracting Integers

Quiz
•
7th Grade
22 questions
Adding Integers

Quiz
•
6th Grade
10 questions
Multiplication and Division Unknowns

Quiz
•
3rd Grade
10 questions
Exploring Digital Citizenship Essentials

Interactive video
•
6th - 10th Grade
Discover more resources for Computers
11 questions
NFL Football logos

Quiz
•
KG - Professional Dev...
20 questions
Definite and Indefinite Articles in Spanish (Avancemos)

Quiz
•
8th Grade - University
7 questions
Force and Motion

Interactive video
•
4th Grade - University
36 questions
Unit 5 Key Terms

Quiz
•
11th Grade - University
38 questions
Unit 6 Key Terms

Quiz
•
11th Grade - University
20 questions
La Hora

Quiz
•
9th Grade - University
7 questions
Cell Transport

Interactive video
•
11th Grade - University
7 questions
What Is Narrative Writing?

Interactive video
•
4th Grade - University