Just IT: Java Entry Test

10 Questions | Total Attempts: 1045

SettingsSettingsSettings
Please wait...
Just IT: Java Entry Test

3. This test will assess your suitability for our program. The pass score is 50%.


Questions and Answers
  • 1. 
    Which two keywords directly support looping?
    • A. 

      If

    • B. 

      For

    • C. 

      While

    • D. 

      Switch

    • E. 

      Foreach

  • 2. 
    Which are primitive data types?
    • A. 

      Int

    • B. 

      Integer

    • C. 

      String

    • D. 

      Long

    • E. 

      Boolean

  • 3. 
    Given: 1. public interface Player { 2. // insert code here 3. // insert code here 4. } 5. class F implements Player { 6. public void play(){ 7. // ... 8. } 9. public void stop(){ 10. // ... 11. } 12. } Which two, inserted independently at lines 2 and 3, allow the code to compile? (Choose two.)
    • A. 

      Void play (); int stop ();

    • B. 

      Void play (); void stop();

    • C. 

      Static void play (); static void stop();

    • D. 

      Public void play (); public void stop();

    • E. 

      Private void play (); private void stop();

  • 4. 
    You are asked to create code that defines a Beverage, and includes method implementation code for some beverage behaviors. Beverage subtypes will be required to provide implementations of some, but not all, of the methods defined in Beverage. Which approach correctly implements these goals?
    • A. 

      Create an abstract Beverage class that defines only abstract methods.

    • B. 

      Create a Beverage interface that all beverage subtypes must implement.

    • C. 

      Create a concrete Beverage class that defines both abstract and concrete methods.

    • D. 

      Create an abstract Beverage class that defines both abstract and concrete methods.

  • 5. 
    Given: 1. // insert code here 2. void play(); 3. void stop(); 4. } 5. // insert code here 6. public void play() { } 7. public void stop() { } 8. } Which, inserted at lines 1 and 5, allows the code to compile?
    • A. 

      1. interface Player { 5. class DVDPlayer implements Player {

    • B. 

      1. implements Player { 5. class DVDPlayer interface Player {

    • C. 

      1. class Player { 5. interface DVDPlayer implements Player {

    • D. 

      1. interface Player { 5. class DVDPlayer extends Player {

    • E. 

      1. abstract class Player { 5. class DVDPlayer extends Player {

  • 6. 
    Which two are true? (Choose two.)
    • A. 

      An interface can implement another interface.

    • B. 

      A class can implement more than one interface.

    • C. 

      Many classes can implement the same interface.

    • D. 

      Every class must implement at least one interface.

  • 7. 
    Which two are true about JavaScript and HTML? (Choose two.)
    • A. 

      JavaScript is part of the J2SE.

    • B. 

      JavaScript and HTML are NOT compiled.

    • C. 

      JavaScript provides more client-side functionality than HTML alone.

    • D. 

      JavaScript code is always processed on the server, NOT on the client.

    • E. 

      JavaScript is guaranteed to be portable across all browsers on any platform.

  • 8. 
    Which ones are legal declarations?
    • A. 

      String st = null;

    • B. 

      String st = "Hello";

    • C. 

      String st = 'Hello';

    • D. 

      String st =="Hello";

    • E. 

      String st = new String ("Hello");

  • 9. 
    Which type of primitive can be assigned a new value within a conditional expression?
    • A. 

      Int

    • B. 

      Short

    • C. 

      Byte

    • D. 

      Boolean

    • E. 

      Char

  • 10. 
    Which demonstrates inheritance?
    • A. 

      Class A this B { }

    • B. 

      Class A super B { }

    • C. 

      Class A extends B { }

    • D. 

      Class A implements B { }

Back to Top Back to top