Teravision Java Recruiting Quiz Questions

14 Questions | Total Attempts: 118

SettingsSettingsSettings
Please wait...
Java Quizzes & Trivia

Please choose the correct answers to the following questions. And learn about the java recruiting and technical quiz questions!


Questions and Answers
  • 1. 
    Q1. Visualizing program components as objects is characteristics of what language
    • A. 

      Object oriented programming language

    • B. 

      Machine language

    • C. 

      Command line operating system

    • D. 

      Procedural language

    • E. 

      SKIP THE QUESTION

  • 2. 
    Q2. Attribute of an Object is also know as its
    • A. 

      State

    • B. 

      Method

    • C. 

      Behavior

    • D. 

      Procedures

    • E. 

      SKIP THE QUESTION

  • 3. 
    Q3. The java language is architecturally
    • A. 

      Neutral

    • B. 

      Oriented

    • C. 

      Specific

    • D. 

      Abstract

    • E. 

      SKIP THE QUESTION

  • 4. 
    Q4. All Java application programs must have this method to run
    • A. 

      Main()

    • B. 

      Hello()

    • C. 

      Start()

    • D. 

      Method()

    • E. 

      SKIP THE QUESTION

  • 5. 
    Q5. Command to execute a compiled java programs is
    • A. 

      Run

    • B. 

      Java

    • C. 

      Javac

    • D. 

      Execute

    • E. 

      SKIP THE QUESTION

  • 6. 
    Q6. Identify non-primitive data types in the following declarations
    • A. 

      'b'

    • B. 

      "base ball'

    • C. 

      12.34

    • D. 

      True

    • E. 

      SKIP THE QUESTION

  • 7. 
    Q7. Which of the following is not mandatory in variable declaration
    • A. 

      A semicolon

    • B. 

      An assignment

    • C. 

      An identifier

    • D. 

      A type

    • E. 

      SKIP THE QUESTION

  • 8. 
    Q8. What will be the result of compiling following code public class MyClass{  final int i ;  public static void main(String[] arguments)  {    System.out.println(new MyClass().i);  }}
    • A. 

      Will print 0

    • B. 

      Will give compile error

    • C. 

      Will give runtime error

    • D. 

      SKIP THE QUESTION

  • 9. 
    Q9. Which of the following values you can assign to variable of type char(1) 'A' (2)  9 (3)  "Hello"(4)  12.3
    • A. 

      (1) and (2)

    • B. 

      (1), (2) and (3)

    • C. 

      (1)

    • D. 

      None of the above

    • E. 

      SKIP THE QUESTION

  • 10. 
    Q10. When you attempt to add a float, int and byte the result will be
    • A. 

      Float

    • B. 

      Int

    • C. 

      Byte

    • D. 

      Double

    • E. 

      SKIP THE QUESTION

  • 11. 
    Q11. The 16 bit coding scheme employed in Java programming is
    • A. 

      Unicode

    • B. 

      EBSDIC

    • C. 

      ASCII

    • D. 

      Hexadecimal

    • E. 

      SKIP THE QUESTION

  • 12. 
    Q12. Which of the following statements are true(1) A series of statements written to perform a particular task is called"procedure" in Java(2) The return type for a method can be any Java type, including void(3) An important principal of object oriented programming is implementation hiding(4) When you perform mathematical calculations on the unlike data type, java will perform  a implicit conversion to unify the types
    • A. 

      All

    • B. 

      2,3 and 4

    • C. 

      1,2 and 3

    • D. 

      None

    • E. 

      SKIP THE QUESTION

  • 13. 
    Q13. Which of the following is not a method access modifier in Java 1.2
    • A. 

      Private

    • B. 

      Protected

    • C. 

      Public

    • D. 

      Private protected

    • E. 

      SKIP THE QUESTION

  • 14. 
    Q14. A method named HelloWorld() is void and takes no arguments. If you have to define this method, which of the following is correct declaration
    • A. 

      HelloWorld();

    • B. 

      HelloWorld(void);

    • C. 

      Void HelloWorld();

    • D. 

      Void HelloWorld(void);

    • E. 

      SKIP THE QUESTION

Back to Top Back to top