Professional Documents
Culture Documents
Paper by Aisha Hanif
Paper by Aisha Hanif
· 1,2,3,4
· 1,3,4
· 1,2,4
· 1,2,3
· Inheritance
· Polymorphism
· Encapsulation
· Both a and b
· Which of the following statements are true with respect to exceptions in java? JAVA1
· The Exception subclasses are used when the called method handles the
exception
· The try statement must be followed by only one catch or a finally block
· Use the throw statement to throw an exception that a method does not handle
by itself
Mark:add(67);
Mark:add(90);
Marks:add(78);
Marks:add(90);
Marks:add(34);
Marks:add(56);
Collections.sort(marks);
System.out.println(marks);
· [90,78,67,56,34]
· Compilation error
· [34,56,67,78,90,90
· [90,90,78,67,56,34]
· Which of the following statements truly specifies the characteristics of static methods
in java? JAVA1
· Which of the following statements are true regarding a constructor in a class? JAVA1
· A constructor has the same name as the class name to which it belongs
· The execute() method returns true when a result set object is created due to
the execution of an SQL statement true
4) Arrange the step for implementing batch update in the correct sequence? JAVA2
1. Disable the auto statement to the batch
2. Execute the batch commands
3. Remove the command s from the batch
4. Commit the changes to the database
5. Create a statement instance
6. Add SQL statement to the batch
· 5,1,6,2,3,4
· 5,6,1,2,3,4
· 1,5,6,2,3,4
· 1,5,6,2,4,3
50. Identity the code that represent a country in the internalization process. java2
· Alpha-3 ISO 639 code
· Alpha-4 ISO 639 code
· ISO 3166 alpha-4 code
· ISO 3166 alpha-2 code
· Which of the following are true? java2
· The Set interface is designed to ensure that implementing classes have unique
members.
· The Set Interface is designed for sorting record returned from a database query.
· The Map Interface is not part of the Collection Framework.
· Classes that implement the List interface may not contain duplicate elements.
1 Match the attributes values with the descriptions.
S.n Left Column S.no Right column Correct answer for Column A
o
A1 Value B1 Value must be included B1 B2 B3 B4
A2 #REQUIRED B2 Values is fixed B1 B2 B3 B4
A3 #IMPLIED B3 Default B1 B2 B3 B4
A4 #FIXED B4 Value does not have to B1 B2 B3 B4
be included
3) XML inherited the concept of DTDs from ,which is an international standard for markup
language.
a) sgml
b)html
c)css
d)gml
· Which of the following area in the memory stores object references, method
parameters, and its local variables? JAVA1
· Heap
· Register
· Stack
· Accumulator
· Which of the following statements truly specifies the characteristics of static methods
in java? JAVA1
The_____________ class is declared without a name within a code block such as the body of a
method.
· Static nested class
· Anonymous class
· Local inner class
· Final class
which of the following options are the correct implementations of a queue ? java1
· PriorityQueue
· ArrayList
· LinkedList
· CircularQueue
Which is the following interface does not inherit from the collection interface ? java1
· Map
· List
· Queue
· Set
Which of the following statement are true while using the import statement?(CHECK BOX)
· Classes that are declared and used along with their package name do not
require the import statement
· Import statement is not required for the class inherited from some other
package
· Not required to import classes present int the java.lang.package
· Import statement is not required for the classes located in the same package
q) which of the following are the valid development tools in java
a) javah
b)javadoc
c)jar
d)javac
--------------- is a statement that enables a user to check his/her assumptions
a)assertions
b)assumptions
c)exception
d)assert
· ______ is browser technology which enables applications to exchange data with a server
by updating the parts of web page without reloading the whole page.
· WCF
· WPF
· AJAX
· LINQ
· Syntax checking
· Application deployment
· Debugging
· Both a and b
· Used to indicates how the elements in the returned sequence will look like when
the query is executed
(5) Which of the following are commonly used query keywords seen in query expression?
c#
· Join
· Select
· If
· From
(15) Which of the following is not a property of transactions? java2
· Isolation
· Durability
· Atomicity
· Concurrency