GoConqr has a new look! Let us know what you think.

Quiz

Simulador de preparacion exmen certificacion JAVA 7 developer

JUAN JOSÈ ORJUEL 53 questions

Take the quiz

Questions in this quiz (53)

  1. 1what are the valid components of a java source file (choose all that apply)
    1. Apackage statement
    2. Bimport statements
    3. Cmethods
    4. Dvariables
    5. Ejava compiler
    6. Fjava runtime environment
  2. 2the following munbered list of java class components is not in any particular order. select the correct order of their occurrence in a java class (choose all that apply):

    1. comments
    2. import statements
    3. package statement
    4. methods
    5. class declaration
    6. variables.
    1. A1,3,2,5,6,4
    2. B3,1,2,5,4,6
    3. C3,2,1,4,5,6
    4. D3,2,1,5,6,4
  3. 3which of the following examples define the correct java class structure
    1. AImage for option A
    2. BImage for option B
    3. CImage for option C
    4. DImage for option D
    5. EImage for option E
    6. FImage for option F
  4. 4given the following definition of the class EjavaGuru,

    what is the output of the previous class, if it is executed using the command:

    "java EjavaGuru one two three four"

    Image for question 4
    1. Aone:two:three
    2. BEJavaGuru:one:tow
    3. Cjava:EJavaGuru:one
    4. Dtow:three:four
  5. 5given the following contents of the java source code file MyClass.java select the correct optionsImage for question 5
    1. Athe imported class, java.util.Date, can be accessed only in the class Student.
    2. Bthe imported class, java.util.Date, can be accessed by both the Student and Course classes
    3. CBoth of the classes Student and Course are defined in the package com.ejavaguru.
    4. DCourse is defined in the default java package.
  6. 6which of the following options, when inserted at //INSERT CODE HERE will print out EJavaGuru
    1. Apublic void main (String [] args)
    2. Bpublic void main (String args [] )
    3. Cstatic public void main (String[] array)
    4. Dpublic static void main (String args)
    5. Estatic public main (String args[])
  7. 7select the correct options
    1. Ayou can start the execution of a java application through the main method
    2. Bthe java compiler calls and executes the main method
    3. Cthe java virtual machine calls and executes the main method
    4. Da class calls and executes the main method
  8. 8A class Course is definided in a package com.ejavaguru. Given that the physical location of the corresponding class file is /mycode/com/ejavaguru/Course.class and execution takes place within the mycode directory, which of the following lines of code, when inserted //INSERT CODE HERE, will import the Course class into the class MyCourseImage for question 8
    1. Aimport mycode.com.ejavaguru.Course;
    2. Bimport com.ejavaguru.Course;
    3. Cimport mycode.com.ejavaguru;
    4. Dimport com.ejavaguru;
    5. Eimport mycode.com.ejavaguru.*;
    6. Fimport com.ejavaguru.*;
  9. 9examine the following code:

    which of the following statements will be true if the variable courseName is defined as a private variable?
    Image for question 9
    1. Aclass EJavaGuru will print Java
    2. Bclass EJavaGuru will print null
    3. Cclass EJavaGuru will won't compile
    4. Dclass EJavaGuru will throw an exception at runtime
  10. 10Given the following definition of the class Course:

    what's the output of the following code?
    Image for question 10
    1. Athe class EJavaGuru will print java
    2. Bthe class EJavaGuru will print null
    3. Cthe class EJavaGuru will not compile
    4. Dthe class EJavaGuru will throw an exception at runtime

Information

Description
se trata de hacer un examen para prepararse para el examen de certificacion de java
Language
Español
Views
274
Rating
No ratings yet
Rate this quiz
Rate this quiz

Feedback

What is it about?

What do you think of the new look?

How do you like it?