Thursday, April 30, 2015

Java Objective Type Questions & Answers

1.The exception class is in ___________ package

1.java.file

2.java.io

3.java.lang

4.java.util

2.Which keyword is used to monitor statment for exception

1.try

2.catch

3.throw

4.throws

3.If and exception is generated in try block, then it is caught in _____ block

1.finally

2.throw

3.throws

4.catch

4.To explicitly throw an exception, ____ keyword is used

1.try

2.catch

3.throw

4.throwing

5. If a statement tries to divide by zero which exceptio is thrown

1.ArithemticException

2.NullPointerException

3.NumberFormatException

4.None of these

6. when a method can throw an exception then it is specified by_______ keyword

1.finally

2.throw

3.throws

4.catch

7. Which block gets executed compulsory whether exception is caught or not

1.finally

2.throw

3.throws

4.catch

7. To create our own exception class, we have to __________

1.Extend exception class

2.Create our own try and catch block

3.use finally block

4.use throws keyword

8.Java was first developed in

1.1990

2.1991

3.1993

4.1996

9.Which of the following feature is not supported by java

1.Multithreading

2.Reflection

3.operator overloading

4.Garbage collection

10.which of the following is not keyword in java

1.null

2.import

3.volatile

4.package

11.What is the full form of JVM

1.Java Virtual Machine

2.Java Variable Machine

3.Java Virtual Mechanism

4.Java Variable

12.Which among the followin is the compulsory section of java program

1.package statment

2.import statement

3.Documentation section

4.Class declaration section

13.The extension name of a java source code file is

1. .java

2. .obj

3. .class

4. .exe

14.Java is also known as ........stage language

1. One

2. Two

3. Three

4. Four

15.what is HotJava

1. System software

2. web browser

3. java environment

4. IDE

15.what is HotJava

1. System software

2. web browser

3. java environment

4. IDE

16.who invented JAVA

1. James Gosling

2. Dennis Ritchie

3. G.N.Sujeer

4. None of the above

17.Which is a reserved word in the java programming language

1. method

2. native

3. subclasse

4. array

18.Which method executed only once

1. start()

2. init()

3. destroy()

4. none of the above

19.who invented java

1. Netscape

2. Microsoft

3. Sun

4. none of the above

20.Which of these stream contains the classes which can work on charactr stream

1. InputStream

2. OutputStream

3. CharacterStream

4. All of the mentioned

20.Which of these class is used to read characters in a file

1. FileReader

2. FileWriter

3. FileInputStream

4. FileStreamReader

21.Which of these is a method to clear all the data present in output buffers

1. clear()

2. flush()

3. fflush()

4. close()

22.Which of these packages contain classes and interfaces used for input and output operators of a program

1. java.util

2. java.lang

3. java.io

4. All of the mentioned

22.Which of the following is the smallest integer data type

1. int

2. long

3. byte

4. short

23.Which of the following is not a primittive data type

1. byte

2. short

3. enum

4. int

24.What is the range of data type short in java

1. -128 to 127

2. -32768 to 32767

3. -2147483648 to 2147483647

4. none of the mentioned

25.What is the range of data type int in java

1. -128 to 127

2. -32768 to 32767

3. -2147483648 to 2147483647

4. none of the mentioned

26.Default value of Boolean data type in java

1. true

2. false

3. 1

4. 0

26.Which of the following is the reference data type

1. int

2. short

3. double

4. array

27.Which keyword is used while using interface

1. extend

2. implements

3. throw

4. thows

28.If method have same name as class name and method don't have any return type then it is known as

1. object

2. variable

3. Constructor

4. none of the above

28.Thread class is available in

1. java.io package

2. java.lang package

3. java.awt package

4. java.util package

29.The Applet class is in...............package

1. java.applet

2. java.awt

3. java.io

4. java.util

30.which of the following is an optional attribute of applet tag

1. code

2. name

3. width

4. height


Monday, April 27, 2015

1.Time sharing provides

1. Disk management

2.File System management

3.concurrent execution

4.all of the above


2. A process execution of the following code for(i=0;i

1.n

2.2n-1

3.2n

4.2n-1-1

3.The performance of Round Robin algorithm depends heavily on

1.size of the process

2.The i/o bursts of the process

3.The CPU burst of the process

4.The size of the time quantum

4.Match the following :

OLAP (A) Regression

OLTP (B) Data Warehouse

Decision Tree (C) RDBMS

Neural Network (D) Classification

(i) (ii) (iii) (iV)

(A) (B) (C) (A) (D)

(b) (B) (C) (D) (A)

(c) (C) (B) (A) (D)

(d) (C) (B) (D) (A)

1.a

2.b

3.c

4.d

5.In win32, which function is used to create windows application ?

1.winAPP

2.winAPI

3.WinMain

4.Winvoid

6.the GSM network is divided into the following three major systems:

1.55,BSS,055

2.BSS,BSC,MSC

3.CELL,BSC,OSS

4.SS,CELL,MSC

7.the document standards for EDI were first developed by large business house during the 1970s and are now under the control of the following standard organization :

1.ISO

2.ANSI

3.ITU-T

4.IEEE

8. a typical digital telephone channel in TDM circuits is allocated a speed of :

1.4 kbms

2.8 kbms

3.64 kbps

4.1.544 Mbps

9. Which of the following is not a WAN technology:

1.X.25

2.Frame Relay

3.ATM

4.None of the above

The coupling between different modules of a software is categorized as follows:

(I) Content coupling

(II) Common coupling

(III) Control coupling

(IV) Stamp coupling

(V) Data coupling

Coupling between modules can be ranked in the order of strongest (least desirable) to weakest (Most desirable)

as follows:

1.I,II,III ,IV ,V

2.V,IV,III,II,I

3.I,III.V.II.IV

4.IV,II,V,III,!

The proof of the proposition

“Every simple graph with at least two vectors has two vertices of equal degree” is based on

1.Inclusion-Exclusion principle

2.Pigeonhole principle

3.Elementory counting technique

4.None of the above

Which statement is true

1.The modal of deterministic finite machine includes the model of non-deterministic finite state

2.The modal of non-deterministic finite state machine includes the model of deterministic finite state as

3.Non-deterministic finite state machines are not more powerful than deterministic

4.None of the above

Algorithm to find optimal spanning tree is

1.Kruskal's algorithm

2.DEPTH-FIRST search

3.BREADTH-FIRST Search

4.none of the above

Which of the following is a good reason to use linked lists in a program?

1.To make execution faster

2.To access any element randomly

3.To allocate space dynamically whenever needed

4.To make deletion of elements easier

Which of the following operations is performed more efficiently by doubly linked list than by linear linked list?

1.Deleting a node whose location is given

2.Searching an unsorted list for a given item

3.Inserting a node after the node with a given location

4.Traversing the list to process each node

The rules which govern the formation of valid lexical units in the source program are

1.Syntax rules

2.Semantic rules

3.Lexical rules

4.Syntehesis phase

Consider the following statement about kernel level thread and user level thread. Which one of the following is false?

1.Context switch time is longer for kernal level threads than for user level threads

2.User level threads do not need any hardware suppprt

3.Related kernal level thread can be scheduled on different processors in multiprocessor system

4.Blocking one kernal level thread blocks all related thread

Fuzzy Set theory defines fuzzy operators. Choose the fuzzy operators from the following.

1.AND

2.OR

3.NOT

4.All of the above

There are also other operators, more linguistic in nature, called __________ that can be applied to fuzzy set theory.

1.Hedges

2.Lingual variable

3.Fuzz variable

4.None of the mentioned

What’s the difference between servlets and applets?

(1) Servlets executes on Servers, where as Applets executes on Browser

(2) Servlets have no GUI, where as an Applet has GUI

(3) Servlets creates static web pages, where as Applets creates dynamic web pages

(4) Servlets can handle only a single request, where as Applet can handle multiple requests

AppletViewer tool is available in which of the folder of JDK

There are also other operators, more linguistic in nature, called __________ that can be applied to fuzzy set theory.

1.Bin

2.Lib

3.Source

4.Class

Which is the method that starts the applet?

1.Main()

2.Destroy()

3.Init

4.Reprint

Which of the following concepts means adding new concepts to a program as it runs ?

1.Data hiding

2.Dynamic loading

3.Dynamic typing

4.dynamic binding

Match the following with respect to programming languages :

List -1 List - II

(A) Structured Language (i) JAVA

(B) Non-structured Language (ii) BASIC

(C) Object Oriented Language (iii) PASCAL

(D) Interpreted Language (iv) FORTRAN

Language Codes : A B C D

1.iii iv i ii

2.iv iii ii i

3.ii iv i iii

4.ii iii iv i

Important advantage of using new and delete operators in C++ is

1.Allocation of memory

2.Frees the memory previously allocated

3.Initialization of memory easily

4.allocation of memory and frees the memory previously allocated

Which LAN standard has the highest data rate?

1.10Base3

2.10Base-T

3.Twisted pair Token Ring

4.FDDI

Which of the following IP Network addresses is a reserved address?

1.127.0.0.0

2.130.58.0.0

3.197.65.10.0

4.4.0.0.0

When installing an Ethernet 10BASE-T network, what type of cable is used?

1.Fiber optic

2.Coaxial caple

3.Twisted pair

4.Wireless

The key requirement/s for a routing function in packet-switching networks is/are:

1.Efficiency

2.Correctness, Simplicity and fairness

3.Optimality, Robustness and stability

4.All of the above

In alternate routing scheme (circuit-switched networks), the responsibility to select the appropriate route for each call rests on the:

1.End station

2.Routing station or switch at mid point

3.Originating switch

4.End station and the originating switch

The length of a Hamiltonian path (if exists) in a connected graph of n vertices is

1.n

2.n - 1

3.n + 1

4.n / 2

A graph with n vertices and n – 1 edges that is not a tree, is

1.Euler

2.A circuit

3.Disconnected

4.Connected

The midpoint circle drawing algorithm also uses the __of the circle to generate?

1.two-way symmetry

2.four-way symmetry

3.eight-way symmetry

4.both (a) & (b)

Consider the following two statements:

P: Every regular grammar is LL(1)

Q: Every regular set has a LR(1) grammar

Which of the following is TRUE?

1.Both P and Q are true

2.P is true and Q is false

3.P is false and Q is true

4.Both P and Q are false

What is the appropriate pairing of items in the two columns listing various activities encountered in a software life cycle?

(P) Requirements capture (1) Module development and integration

(Q) Design (2) Domain analysis

(R) Implementation (3) Structural and behavioural modeling

(S) Maintenance (4) Performance tuning

1.P-3,Q-2,R-4,S-1

2.P-2,Q-3,R-1,S-4

3.P-3,Q-2,R-1,S-4

4.P-2,Q-3,r-4,s-1