Software Engineering Mcqs

Which method is used to perform DML statements in JDBC ?

(A) executeUpdate()

(B) executeQuery()

(C) execute()

(D) None of above

Submitted By: Ali Uppal


pow () is associated with which class ?

(A) Input stream class

(B) Object class

(C) Math class

(D) None of above

Submitted By: Ali Uppal


Submitted By: Ali Uppal


Which statements are most accurate regarding the following classes? class A{private int i; protected int j; } class B extends A{ private int k; protected int m; } ?

(A) An object of B contains data fields j, k, m

(B) An object of B contains data fields k, m

(C) An object of B contains data fields j, m

(D) An object of B contains data fields i, j, k, m

Submitted By: Ali Uppal


The following fraction of code double STATIC = 2.5 ; System.out.println( STATIC ); ?

(A) Prints 2.5

(B) Raises an exception

(C) Raises an error as STATIC is used as a variable which is a keyword

(D) None of these

Submitted By: Ali Uppal


Submitted By: Ali Uppal


String is the predefined ?

(A) Object

(B) Variable

(C) Class

(D) Method

Submitted By: Ali Uppal


Executable applet is_________________?

(A) .class file

(B) .java file

(C) .java html

(D) .applet file

Submitted By: Ali Uppal


Submitted By: Ali Uppal


Why we use array as a parameter of main method_________________?

(A) Can store multiple values

(B) It is syntax

(C) Both of above

(D) None of above

Submitted By: Ali Uppal