0

Core Java Quiz

Description: Core Java Quiz
Number of Questions: 10
Created by:
Tags: java
Attempted 0/10 Correct 0 Score 0
  1. 1.java

  2. 2.javaw

  3. 3.javapath

  4. 4.javadoc


Correct Option: C

A/An___instance variable is shared by all instances of the class.It exist even before the object is created

  1. 1.instance

  2. 2.abstract

  3. 3.interface

  4. 4.static


Correct Option: A
  1. 1.add(Object x)

  2. 2.remove(Object x)

  3. 3.contains(Object x)

  4. 4.insert(int i,Object x)

  5. 5.set(int I,Object x)


Correct Option: D

Which of the following best descibes the set of all paires of values for boolean variables a and b such that, (!a && b)==!(a||b) evaluates to true?

  1. 1.Empty set

  2. 2.one pair a==true,b==false

  3. 3.two pairs in which a==true

  4. 4.two paires in which a!=b

  5. 5.All 4possible combination


Correct Option: C

A "has a" relationship between classes represents ___ and "is a" represents__

  1. 1.static,nonstatic class

  2. 2.Inheritance,Composition

  3. 3.Composition,Inheritance

  4. 4.Overriding,Overloading


Correct Option: C

What is the default layout manager for a panel?

  1. 1.BorderLayout

  2. 2.Ther is no layout

  3. 3.FlowLayout

  4. 4.GridLayout


Correct Option: A

What happens in a method if an unchecked exception is thrown in a try block and there is no matching catch block?

  1. 1.program ignores exceptn

  2. 2.program halts immediately

  3. 3.Program will not compile

  4. 4.None of the above


Correct Option: B
  1. 1.Robust

  2. 2.Procedural

  3. 3.Distributed

  4. 4.Multithreaded


Correct Option: B
- Hide questions