SkillNet Development Pre-interview Assessment

What is your email address. This form only collects email address for candidate tracking during the interview period. It is removed after the interview period is complete.
Given Two Files
Q1
 
What will be the output?
"5 7"
"5 6 7"
The field Foo.a is not visible
The field Foo.b is not visible
Assume that the following classes are all in the same package.
 
Q2
 
Which of the following are valid examples of Java extensions or implementations given the following java files?
IBar can implement IFoo
IFoo can extend IBar
IFoo can extend TestA
TestA can extend IFoo and IBar
TestA can implement IFoo and IBar
TestA can implement IFoo or IBar
TestA can extend IFoo or IBar
Which of the following allows you to migrate you implementations over time without breaking the code that depends on the public interface of your classes?
Polymorphism
Encapsulation
Inheritance
Both Encapsulation and Polymorphism

The following two rules define what type of coding usage?

1. The parameters may differ in their type, number or both.

2. They may have the same of different return types.

Method overloading
Method overriding
Constructor overloading
Class Extensions
Which access specifier(s) can be used on a class members so they can be accessed by a different class in a different package?
Private
Protected
Public
Which of the following statements about arrays is true?
An array holds only one type of data
An array can only hold primitive data types.
Java array sizes must be declared at compile time.
Java arrays contain accessible pointers to their first element and last elements.
Java empty array elements contain "/n" by default.
What will be output if you run the following code:
 
Q8
Default,
2,
Compilation Error
Default,0,1,
What will be output if you run the following code:
 
Q9
"New File Created"
"General exception caught"
"IOException exception caught"
Compilation Error
Which of the following statements are true about finalize()?
It is possible for objects, on whom finalize has been invoked by the JVM, to avoid garbage collection.
For a specific object, it is not possible for finalize() to be invoked more than once.
Overriding finalize() ensures that objects of that type will always be garbage collected by the JVM when they become eligible
Finalize() is not a valid Java function.
What will be output if you run the following code:
 
Q11
O1
O2
O3
O4
Compilation Error
What will be output if you run the following code:
 
2
4
Compilation Error
Run-time Error
What will be output if you run the following code:
 
A B C D E 4 [D, B, C, E]
Compilation Error
Run-time Error
B C E 3 [B, C, E]
Given these two classes:
 
 
Which method override(s) for "runMe" is/are valid in class Bar?
Public int runMe () {}
Public void runMe () {}
Public void runMe () throws FileNotFoundException {}
Public void runMe throws Exception {}
Private void runMe throws IOException {}
A TreeSet's ordering cannot be changed once it is created
True
False
In SQL, What is the proper keyword to put together data sets from two different tables?
Combine
Join
Select
Concat
What is the proper syntax to count the number of rows in the following table, STUDENTS, where STUDENT_ID is the primary key?
 
Q17
Select ROWNUM from STUDENTS
Select count(*) from STUDENTS
Select count(STUDENT_ID) from STUDENTS
Count STUDENT_ID from STUDENTS
What would be added to the previous answer if we needed to count only the CS majors?
 
Q17
DISTINCT COUNT()
WHERE MAJOR = "CS"
WHERE MAJOR = 'CS'
ONLY MAJOR = "CS"
What SQL keyword can remove results from a result set?
REMOVE
NOT IN
EXCLUDING
ONLY
in SQL, when adding a row to a table, the statement must include both the column to populate and the values for each column.
True
False
What is the correct SQL keyword if a developer wanted to order the SQL results by more recent date?
UPPER
DESC
ASC
LOWER
Java programs perform I/O through what?
Java built in I/O methods
I/O packages
Streams
'out' and 'in' methods
Which of the following transaction management properties defines that either all changes made by a transaction to a database are successfully updated, else all changes are rolled back?
Atomicity
Consistency
Finalize
Transactional
In SQL, a table MUST have a primary key field.
True
False
In SQL, relying a column from another table to validate the entries for a column in a separate tables is called a?
Foreign Key
Joined Key
Primary Key
This is not allowed in SQL
Please List all resources you used to take this assessment.
{"name":"SkillNet Development Pre-interview Assessment", "url":"https://www.quiz-maker.com/QPREVIEW","txt":"What is your email address. This form only collects email address for candidate tracking during the interview period. It is removed after the interview period is complete., Given Two Files   What will be the output?, Assume that the following classes are all in the same package.     Which of the following are valid examples of Java extensions or implementations given the following java files?","img":"https://www.quiz-maker.com/3012/images/ogquiz.png"}
Powered by: Quiz Maker