Advanced Java Programming Quiz

Advanced Java Programming Quiz

University

10 Qs

quiz-placeholder

Similar activities

CH8 of database

CH8 of database

University

11 Qs

SQL - Constraints

SQL - Constraints

University

15 Qs

OOP - Java Classes

OOP - Java Classes

12th Grade - University

15 Qs

DDL

DDL

University

15 Qs

NP Lab exam (12/11/20)

NP Lab exam (12/11/20)

University

10 Qs

Lenguaje Estructurado de Consultas

Lenguaje Estructurado de Consultas

University

12 Qs

Quiz sobre Tipos de Datos en Bases de Datos

Quiz sobre Tipos de Datos en Bases de Datos

University

10 Qs

Actividad de Repaso - Semana 6

Actividad de Repaso - Semana 6

University

15 Qs

Advanced Java Programming Quiz

Advanced Java Programming Quiz

Assessment

Quiz

Computers

University

Medium

Created by

Dr.C.Sharmila Asst.Prof - CSE Dept

Used 2+ times

FREE Resource

10 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

1 min • 1 pt

What exception is thrown if the driver is null?

SQLException

NullPointerException

IOException

ClassNotFoundException

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What does the executeQuery() method return?

int

boolean

ResultSet

void

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is the SQL query to create a table named employee_details?

create table employee_details (empNum number(10), lastName varchar(50), firstName varchar(50), email varchar(255) , deptNum number(10), salary number(10));

create employee_details table (empNum number(10), lastName varchar(50), firstName varchar(50), email varchar(255) , deptNum number(10), salary number(10));

create table employee_details;

insert into employee_details;

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is the SQL query to insert data into the employee_details table?

insert into employee_details values (1001, 'Luther', 'Martin', 'ml@gmail.com', 1, 13000);

insert employee_details (1001, 'Luther', 'Martin', 'ml@gmail.com', 1, 13000);

add employee_details values (1001, 'Luther', 'Martin', 'ml@gmail.com', 1, 13000);

insert into employee_details (empNum, lastName, firstName, email, deptNum, salary) values (1001, 'Luther', 'Martin', 'ml@gmail.com', 1, 13000);

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What are Applets in Java?

Programs that run in a web browser

Standalone applications

Server-side programs

None of the above

6.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is the life cycle of an applet?

init(), start(), paint()

start(), paint(), stop()

init(), stop(), destroy()

None of the above

7.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

How to run an applet?

Through HTML file

Using appletviewer tool

Both A and B

None of the above

Create a free account and access millions of resources

Create resources
Host any resource
Get auto-graded reports
or continue with
Microsoft
Apple
Others
By signing up, you agree to our Terms of Service & Privacy Policy
Already have an account?