0% found this document useful (0 votes)
77 views4 pages

JDBC, Java Server Pages, and MySQL - Database MCQ Questions and Answers - Technical Aptitude

This document contains 10 multiple choice questions about JDBC, Java Server Pages, and MySQL. The questions cover topics like the different types of JDBC drivers, where MySQL metadata is stored, who invented Java, what is required to run a compiled Java program, which JDBC driver types can be used in applets and servlets, identifying MySQL as an open source DBMS, what a Java applet is, how to create a surrogate key in MySQL, properties of a Java bean, and what a JSP transforms into. Each question is followed by potential answer choices and an option to discuss the question on an online message board.

Uploaded by

aryasurve1210
Copyright
© © All Rights Reserved
Available Formats
Download as PDF, TXT or read online on Scribd
Download as pdf or txt
0% found this document useful (0 votes)
77 views4 pages

JDBC, Java Server Pages, and MySQL - Database MCQ Questions and Answers - Technical Aptitude

This document contains 10 multiple choice questions about JDBC, Java Server Pages, and MySQL. The questions cover topics like the different types of JDBC drivers, where MySQL metadata is stored, who invented Java, what is required to run a compiled Java program, which JDBC driver types can be used in applets and servlets, identifying MySQL as an open source DBMS, what a Java applet is, how to create a surrogate key in MySQL, properties of a Java bean, and what a JSP transforms into. Each question is followed by potential answer choices and an option to discuss the question on an online message board.

Uploaded by

aryasurve1210
Copyright
© © All Rights Reserved
Available Formats
Download as PDF, TXT or read online on Scribd
Download as pdf or txt
Download as pdf or txt
You are on page 1/ 4

07/12/2023, 20:22 JDBC, Java Server Pages, and MySQL - Database MCQ Questions and answers- Technical Aptitude

(https://www.examveda.com/)  Login
(https://www.exam
url=https%3A%2F%
mcq-question-
on-jdbc%2C-
java-server-
pages%2C-
and-
mysql%2F)

Home (https://www.examveda.com/) Aptitude (https://www.examveda.com/mcq-question-on-arithmetic-ability/)

English (https://www.examveda.com/mcq-question-on-competitive-english/) Reasoning 

DI (https://www.examveda.com/mcq-question-on-data-interpretation/) GK (https://www.examveda.com/mcq-question-on-general-knowledge/)

Current Affairs (https://www.examveda.com/daily-current-affairs/) Interview (https://www.examveda.com/interview/) Computer  Programming 

Engineering  Subject  Ask Question (https://www.examveda.com/ask-question/)

JDBC, Java Server Pages, and MySQL - Database MCQ Questions and answers- Technical Aptitude
Home (https://www.examveda.com/) / Database (https://www.examveda.com/mcq-question-on-database/) / JDBC, Java Server Pages, And MySQL

Ola S1 X+ now at ₹89,999. Get 5% off up to ₹


5000 on Credit Card EMI with select banks.

Ola Electric Open

1. How many JDBC driver types does Sun define?

A. One

B. Two 

C. Three 

D. Four

Answer & Solution Discuss in Board (https://www.examveda.com/how-many-jdbc-driver-types-does-sun-define-24326/) Save for Later

Answer & Solution

Answer: Option D
No explanation is given for this question Let's Discuss on Board (https://www.examveda.com/how-many-jdbc-driver-types-does-sun-
define-24326/)

Powered By (https://vdo.ai/contact?
utm_medium=video&utm_term=examveda.com&utm_source=vdoai_logo)

https://www.examveda.com/database/practice-mcq-question-on-jdbc,-java-server-pages,-and-mysql/ 1/4
07/12/2023, 20:22 JDBC, Java Server Pages, and MySQL - Database MCQ Questions and answers- Technical Aptitude

2. Where is metadata stored in MySQL?

A. In the MySQL database metadata

B. In the MySQL database metasql

C. In the MySQL database mysql 

D. None of the above is correct 

Answer & Solution Discuss in Board (https://www.examveda.com/where-is-metadata-stored-in-mysql-24327/) Save for Later

Answer & Solution

Answer: Option C
No explanation is given for this question Let's Discuss on Board (https://www.examveda.com/where-is-metadata-stored-in-mysql-24327/)

3. Who invented Java?

A. Netscape

B. Microsoft

C. Sun

D. None of the above is correct

Answer & Solution Discuss in Board (https://www.examveda.com/who-invented-java-24328/) Save for Later

4. To run a compiled Java program, the machine must have what loaded and running?

A. Java virtual machine

B. Java compiler

C. Java bytecode

D. A Web browser

Answer & Solution Discuss in Board (https://www.examveda.com/to-run-a-compiled-java-program-the-machine-must-have-what-loaded-and-running-24329/) Save for Later

5. Which JDBC driver Type(s) can be used in either applet or servlet code?

https://www.examveda.com/database/practice-mcq-question-on-jdbc,-java-server-pages,-and-mysql/ 2/4
07/12/2023, 20:22 JDBC, Java Server Pages, and MySQL - Database MCQ Questions and answers- Technical Aptitude

A. Both Type 1 and Type 2

B. Both Type 1 and Type 3

C. Both Type 3 and Type 4

D. Type 4 only

Answer & Solution Discuss in Board (https://www.examveda.com/which-jdbc-driver-types-can-be-used-in-either-applet-or-servlet-code-24330/) Save for Later

6. ________ is an open source DBMS product that runs on UNIX, Linux and Windows.

A. MySQL

B. JSP/SQL

C. JDBC/SQL

D. Sun ACCESS

Answer & Solution Discuss in Board (https://www.examveda.com/is-an-open-source-dbms-product-that-runs-on-unix-linux-and-windows-24331/) Save for Later

7. What is sent to the user via HTTP, invoked using the HTTP protocol on the user's computer, and run on the
user's computer as an application?

A. A Java application

B. A Java applet

C. A Java servlet

D. None of the above is correct

Answer & Solution

Discuss in Board (https://www.examveda.com/what-is-sent-to-the-user-via-http-invoked-using-the-http-protocol-on-the-users-computer-and-run-on-the-users-computer-as-an-application-24332/)

Save for Later

8. What MySQL property is used to create a surrogate key in MySQL?

A. UNIQUE

B. SEQUENCE

C. AUTO_INCREMENT

D. None of the above -- Surrogate keys are not implemented in MySQL

Answer & Solution Discuss in Board (https://www.examveda.com/what-mysql-property-is-used-to-create-a-surrogate-key-in-mysql-24333/) Save for Later

9. What is not true of a Java bean?

A. There are no public instance variables.

https://www.examveda.com/database/practice-mcq-question-on-jdbc,-java-server-pages,-and-mysql/ 3/4
07/12/2023, 20:22 JDBC, Java Server Pages, and MySQL - Database MCQ Questions and answers- Technical Aptitude

B. All persistent values are accessed using getxxx and setxxx methods.

C. It may have many constructors as necessary.

D. All of the above are true of a Java bean.

Answer & Solution Discuss in Board (https://www.examveda.com/what-is-not-true-of-a-java-bean-24334/) Save for Later

10. A JSP is transformed into a(n):

A. Java applet.

B. Java servlet.

C. Either 1 or 2 above.

D. Neither 1 nor 2 above.

Answer & Solution Discuss in Board (https://www.examveda.com/a-jsp-is-transformed-into-an-24335/) Save for Later

1 2 (https://www.examveda.com:443/database/practice-mcq-question-on-jdbc,-java-server-pages,-and-mysql/?page=2)

3 (https://www.examveda.com:443/database/practice-mcq-question-on-jdbc,-java-server-pages,-and-mysql/?page=3)

4 (https://www.examveda.com:443/database/practice-mcq-question-on-jdbc,-java-server-pages,-and-mysql/?page=4)

 (https://www.examveda.com:443/database/practice-mcq-question-on-jdbc,-java-server-pages,-and-mysql/?page=2)

Copyright © 2023 Examveda.com (https://www.examveda.com/)   


(https://www.tw
(https://ww
(http

About Us | (https://www.examveda.com/about/) Terms & Condition | (https://www.examveda.com/terms-and-condition/) Privacy Policy | (https://www.examveda.com/privacy-policy/)

Contact Us (https://www.examveda.com/contact-us/)

https://www.examveda.com/database/practice-mcq-question-on-jdbc,-java-server-pages,-and-mysql/ 4/4

You might also like