0% found this document useful (0 votes)
10 views

INFOVIEW QUESTION SET1

The document contains a set of questions related to computer science concepts, including data structures, algorithms, and Java programming. It covers topics such as hyper edges, in-order traversal, memory management, and exceptions in Java. The questions are designed for assessment in a training and placement context at VSB Engineering College, Karur.

Uploaded by

karthivela4
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
10 views

INFOVIEW QUESTION SET1

The document contains a set of questions related to computer science concepts, including data structures, algorithms, and Java programming. It covers topics such as hyper edges, in-order traversal, memory management, and exceptions in Java. The questions are designed for assessment in a training and placement context at VSB Engineering College, Karur.

Uploaded by

karthivela4
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
You are on page 1/ 3

VSB ENGINEERING COLLEGE-KARUR

CENTRE FOR TRAINING AND PLACEMENT


INFOVIEW QUESTION SET-1
1. In graphs, A hyper edge is an edge that is allowed to take on any number of __________
A. Vertices B. edges C. both a and b D. labels
2. Which of the following ways is a in-order traversal?
A. Root->left sub tree-> right sub tree B. Root->right sub tree-> left sub tree
C. right sub tree-> left sub tree->Root D. left sub tree-> root->right sub tree
3. Key value pair is usually seen in
A. Hash tables B. Heaps C. Both a and b D. Skip list
4. What will be the data type of the result of the following operation?
(float)a * (int)b / (long)c * (double)d a) int b) long c) float d) double
5. An empty list is the one which has no
A. nodes B. data C. both a and b D. address
6. Which of the following data structure can't store the non-homogeneous data elements?
A) Arrays B) Records C) Pointers D) Stacks
7. In the …………….. traversal we process all of a vertex’s descendants before we move to an adjacent
vertex. A) Depth First B) Breadth First C) With First D)Depth Limited
8. In general, the binary search method needs no more than ……………. comparisons.
A) [log2n]-1 B) [logn]+1 C) [log2n] D) [log2n]+1
9. There is an extra element at the head of the list called a ……….
A) Antinel B) Sentinel C) List header D) List head
10. Array can be considered as set of elements stored in consecutive memory locations but
having__________.
A. Different Data Type B. None of these C. Same Data Type D. Same Scope\
11. In order to access any element of an array if the position of element is known , Time complexity will be
equal to _________ A. O(n2) B. O(n) C. O(1) D. O(n-1)
12. What will happen if in a C program you assign a value to an array element whose subscript exceeds the
size of array?
A. The array size would appropriately grow. B. The element will be set to 0.
C. The program may crash if some important data gets overwritten.
D. The compiler would report an error
13. What would be the equivalent pointer expression for referring the array element a[i][j][k][l]
A. ((((a+i)+j)+k)+l) B. *(*(*(*(a+i)+j)+k)+l) C. (((a+i)+j)+k+l) D. ((a+i)+j+k+l)
14. What function should be used to free the memory allocated by calloc() ?
A. dealloc(); B. malloc(variable_name, 0) C. free(); D. memalloc(variable_name, 0)
15. The keyword used to transfer control from a function back to the calling function is
A. switch B. goto C. go back D. return
16. If a person walks at 14 km/hr instead of 10 km/hr, he would have walked 20 km more. The actual distance
travelled by him is: A. 50 km B. 56 km C. 70 km D. 80 km
17. Two students appeared at an examination. One of them secured 9 marks more than the other and his marks
was 56% of the sum of their marks. The marks obtained by them are:
A. 39, 30 B. 41, 32 C. 42, 33 D. 43, 34
18. Seats for Mathematics, Physics and Biology in a school are in the ratio 5 : 7 : 8. There is a proposal to
increase these seats by 40%, 50% and 75% respectively. What will be the ratio of increased seats?
A. 2 : 3 : 4 B. 6 : 7 : 8 C. 6 : 8 : 9 D. None of these
19. Three pipes A, B and C can fill a tank from empty to full in 30 minutes, 20 minutes, and 10 minutes
respectively. When the tank is empty, all the three pipes are opened. A, B and C discharge chemical solutions
P,Q and R respectively. What is the proportion of the solution R in the liquid in the tank after 3 minutes?
A. 5/11 B. 6/11 C. 7/11 D. 8/11
20. A alone can do a piece of work in 6 days and B alone in 8 days. A and B undertook to do it for Rs. 3200.
With the help of C, they completed the work in 3 days. How much is to be paid to C?
A. Rs. 375 B. Rs. 400 C. Rs. 600 D. Rs. 800

Java Questions
1.Which of the following features in not supported by Java?
a. Multithreading b. Reflection c. operator overloading d. Garbage Collection
2.Which class is the root(apex) call of all exception handling class hierarchy?
a. Throwable class b. Exception class c. Error class d. RuntimeException class
3.Java was influenced by and has features from many languages. which of the following did not influence
java(when it was created)?
a. C++ Language b. Objective C Language c. C# Language d. Smalltalk language
4.Which of the following two modifiers cannot be combined together for a class?
a. public and strictfp b. public and final c. abtract and strict fp d. final and abstract
5.Which of the following methods need to be overridden if equals method is overidden?
a. hashCode method b. toString method c. compareTo method d. equal method
6.Which of the following is a checked exception?
a. IndexoutofBoundException b. FileNotFoundException c. NegativeArrarySizeException d.
NullPointerException
7.Which of the following is the default access specifier for class member?
a. Public Access b. Private Access c. Protected Access d. Package Access
8.Which interface is not meant for serialization/peristence?
a. Externalizable b. Serializable c. Persistent d. None of the above
9.Which of the following is a 'marker interface'?
a. Comparable interface b. Enumerable interface c. Cloneble interface d. Runnable inerface
10.What is the range of 'byte' data type?
a. -128 to +127 b. -128 to +128 c. -255 to +255 d. -256 to +255
11.Which of the following is not a predefined stream in Sytem class?
a. System.in b. System.out c. Systemn.log d. System.err
12.Which of the following operator is short-circuit operator?
a. &(bitwise AND operator) b. &&(logical AND operatot) c. |(bitwise OR operator)
d. !(logical NOT operator)
13.Which of the following expression results in divide-by-zero exception(Arithmetic Exception)?
a. 10% 0 b. 1.0% 0.0 c. 10.0/0.0 d. 10/10-10
14.Which of following is the base class for unrecoverable exceptions and non programming errors that is
thrown by the java runtime?
a. Throwable b. Error c. Exception d. Runtime Exception
15.What does AWT Stand for?
a. Abstract Windowing Toolkit b. A web Toolkit c. Absoultely Wonderful Toolkit
d. Application With Type
16.Which of the following methods from Object is final(that is, cannot be overridden)?
a. Finalize method b. clone method c. hashCode method d. getClass method
17. Which access specifiers can be used with top level class ?
a. public or default b. public or private c. public or protected d. protected or default
18. Which of the following cannot be marked static ?
a. Constructors , Classes ( Outer ) , Classes ( nested ), Interfaces , Local variables , Inner Class methods and
instance variables.
b. Constructors , Classes ( Outer ) , Interfaces , Local variables , Class variables , Class Methods , Inner Class
methods and instance variables.
c. Constructors , Classes ( Outer ) , Interfaces , Local variables , Inner Class methods and instance
variables.
d. Constructors , Classes ( Outer ) , Classes (Nested), Interfaces , Local variables , Inner Class methods and
instance variables
19. Which is of the following is NOT TRUE for JVM ?
a. JVM reads Byte Code and generates Machine Code.
b. JVM is a virtual Machine that acts as a intermediary between Java Application and Host Operating System.
c. JVM reads Source Code and generates Byte Code.
d. JVM acts as a translator that translates different Machine code ( on the basis of Host Machine ) for a
common Byte Code.
20. Interface can only have ...
a. Member elements and Methods. b. Static Variables and Static Methods.
c. Static Final Variables and Instance Method Declarations.
d. Member Elements , Instance Methods, Static variables and Static Methods.

You might also like