You are on page 1of 12

questions:

· Which of the following restrictions for partial methods are true? c#

· The partial keyword is must defining or imlpementing a partial method

· Partial methods must return void

· Partial methods are implicitly public

· Partial methods can return ref but not out

· 1,2,3,4

· 1,3,4

· 1,2,4

· 1,2,3

· Which feature is needed to make a programming language object oriented JAVA1

· Inheritance

· Polymorphism

· Encapsulation

· Both a and b

· all of the above

· Which of the following statements are true with respect to exceptions in java? JAVA1

· Repeated re-throwing of the same exception must be avoided as it may slow


down programs that are known for frequently raising exceptions

· 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

· Consider the following code snippet: JAVA1


ArrayList marks = new ArrayList();

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);

What is the output of the code?

· [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

· Can invoke static and normal methods

· Can use super keyword

· Can access only static data

· Cannot use this keyword

· Which of the following statements are true regarding a constructor in a class? JAVA1

· A constructor returns void


· A constructor has an associated destructor

· A constructor has the same name as the class name to which it belongs

· A constructor can be overloaded

· Which of the following statements id false?

· The executeUpdate() method is used to execute SQL DDL statements true

· The executeQuery() method is used to execute SQL statements which return


more than one result set

· The executeUpdate() method returns an integer indicating the number of rows


affected by the execution of the SQL statements true

· 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

S.N S.N Correct Answer for column


Left Column Right Column
o o A
It is used when the modification
A1 Native B1 of a class or data member is to B1 B2 B3 B4
be restricted.
It is used with a variable that will
A2 Final B2 not be stored as part of object in B1 B2 B3 B4
the persistence storage.
It is used to invoke a method that
A3 Transient B3 B1 B2 B3 B4
resides outside JVM.
It allows the content of a variable
A4 Volatile B4 to be synchronized across all B1 B2 B3 B4
running threads.

· Which of the following statements truly specifies the characteristics of static methods
in java? JAVA1

· Can invoke static and normal methods

· Can use super keyword

· Can access only static data

· Cannot use this keyword

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

· Visual Studio .NET provides which feature? C#

· Syntax checking

· Application deployment

· Debugging

· Both a and b

· All of the above


· What is function of the form Query keyword? C#

· Used to group query based on a specified key value

· Used to indicate a data source and a range variable

· Used to indicates how the elements in the returned sequence will look like when
the query is executed

Used to sort query results in ascending or descending order

(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

You might also like