Help shape GoConqr. What should we add next?

Quiz

Programming in Java

Faheem Ahmed 51 questions 1,673 views

Take the quiz

This quiz has a time limit, so it opens in the usual player.

Questions in this quiz (51)

  1. 1What modifier is to be used if you wish to declare that you want to no longer allow subclasses to override your variables or methods?
    1. AFinally
    2. BAbstract
    3. CFinal
    4. DSynchronized
    5. EVolatile
  2. 2AWT stands for
    1. AAdvanced windowing tool kit
    2. BAbstract Windowing Term Kit
    3. CAbstract Windowing Tool Kit
    4. DApplet Window Tool Kit
    5. EAsynchronous windowing tool kit
  3. 3Which operator is used for concatenation in java?
    1. A-
    2. B. (Dot)
    3. C*
    4. D%
    5. E+
  4. 4What is the type and value of the following expression?
    -4 + 1/2 + 2*-3 + 5.0
    1. Aint -5
    2. Bdouble -4.5
    3. Cint -4
    4. Ddouble -5.0
  5. 5In object-oriented programming, the process by which one object acquires the properties of another object is called
    1. AEncapsulation
    2. BPolymorphism
    3. COverloading
    4. DInheritance
    5. EOverriding
  6. 6Java compiler javac translates Java source code into ………………………

    1. AAssembler language
    2. BByte code
    3. CBit code
    4. DMachine code
    5. EPlatform dependent code
  7. 7Which of the following statements about Java Threads is correct?

    1. AJava threads don’t allow parts of a program to be executed in parallel
    2. BJava is a single-threaded language
    3. CJava’s garbage collector runs as a high priority thread
    4. DReady, running and sleeping are three states that a thread can be in during its life cycle
    5. EEvery java application is not multithreaded
  8. 8The wrapping up of data and functions into a single unit is called

    1. AEncapsulation
    2. BAbstraction
    3. CData Hiding
    4. DPolymorphism
    5. EMessage passing
  9. 9In Java, declaring a class abstract is useful

    1. ATo prevent developers from further extending the class
    2. BWhen it doesn't make sense to have objects of that class
    3. CWhen default implementations of some methods are not desirable
    4. DTo force developers to extend the class not to use its capabilities
    5. EWhen it makes sense to have objects of that class
  10. 10Which of the following is a member of the java.lang package?

    1. AList
    2. BQueue
    3. CMath
    4. DStack
    5. EProcess

Information

Description
SecondYear Second Year Quiz on Programming in Java, created by Faheem Ahmed on 26/03/2018.
Language
English
Views
1,673
Tags
programmingjavasecond yearsecondyear
Rating
No ratings yet
Rate this quiz
Rate this quiz

Feedback

What is it about?

What should we add next?