Q: What is the variables declared in a class for the use of all methods of the class called?
Anonymous Quiz
26%
Object
42%
Instance variables
28%
Reference variable
3%
None
βπ»βπ»......πππ......βπ»βπ»
Q: What is the implicit return type of constructor?
Q: What is the implicit return type of constructor?
Anonymous Quiz
16%
No return type
55%
A class object in which it is defined
25%
void
3%
None
βπ»βπ»......πππ.......βπ»βπ»
Q: When is the finalize() method called?
Q: When is the finalize() method called?
Anonymous Quiz
23%
Before garbage collection
42%
Before an object goes out of scope
29%
Before a variable goes out of scope
5%
None
βπ»βπ»......πππ......βπ»βπ»
Q: Identify the prototype of the default constructor.
Q: Identify the prototype of the default constructor.
Anonymous Quiz
27%
Public class Solution {}
20%
Solution(void)
22%
Solution()
23%
public Solution(void)
8%
public Solution()
βπ»βπ»......πππ......βπ»βπ»
Q: Select the valid statement to declare and initialize an array.
Q: Select the valid statement to declare and initialize an array.
Anonymous Quiz
18%
int[] A = {}
54%
int[] A = {1, 2, 3}
22%
int[] A = (1, 2, 3)
6%
int[][] A = {1,2,3}
βπ»βπ»......πππ......βπ»βπ»
Q: Arrays in java are..?
Q: Arrays in java are..?
Anonymous Quiz
27%
Object references
28%
objects
42%
Primitive data type
3%
None
βπ»βπ»......πππ......βπ»βπ»
Q: When is the object created with new keyword?
Q: When is the object created with new keyword?
Anonymous Quiz
25%
At run time
34%
At compile time
36%
Depends on the code
4%
None
βπ»βπ»......πππ......βπ»βπ»
Q: Identify the corrected definition of a package.
Q: Identify the corrected definition of a package.
Anonymous Quiz
24%
A package is a collection of editing tools
23%
A package is a collection of classes
42%
A package is a collection of classes and interfaces
11%
A package is a collection of interfaces
βπ»βπ»......πππ......βπ»βπ»
My SQL
Q. What is a stored procedure?
Stored Procedure is a function consists of many SQL statement to access the database system. Several SQL statements are consolidated into a stored procedure and execute them whenever and wherever required.
Q. What is a trigger?
A DB trigger is a code or programs that automatically execute with response to some event on a table or view in a database. Mainly, trigger helps to maintain the integrity of the database.
Example: When a new student is added to the student database, new records should be created in the related tables like Exam, Score and Attendance tables.
Q. What is the difference between DELETE and TRUNCATE commands?
DELETE command is used to remove rows from the table, and WHERE clause can be used for conditional set of parameters. Commit and Rollback can be performed after delete statement.
TRUNCATE removes all rows from the table. Truncate operation cannot be rolled back.
@Compu
My SQL
Q. What is a stored procedure?
Stored Procedure is a function consists of many SQL statement to access the database system. Several SQL statements are consolidated into a stored procedure and execute them whenever and wherever required.
Q. What is a trigger?
A DB trigger is a code or programs that automatically execute with response to some event on a table or view in a database. Mainly, trigger helps to maintain the integrity of the database.
Example: When a new student is added to the student database, new records should be created in the related tables like Exam, Score and Attendance tables.
Q. What is the difference between DELETE and TRUNCATE commands?
DELETE command is used to remove rows from the table, and WHERE clause can be used for conditional set of parameters. Commit and Rollback can be performed after delete statement.
TRUNCATE removes all rows from the table. Truncate operation cannot be rolled back.
@Compu
βπ»βπ»......πππ......βπ»βπ»
1. Number of primitive data types in Java are?
1. Number of primitive data types in Java are?
Anonymous Quiz
35%
6
31%
7
28%
8
5%
9
βπ»βπ»......πππ......βπ»βπ»
2. What is the size of float and double in java?
2. What is the size of float and double in java?
Anonymous Quiz
50%
32 and 64
26%
32 and 32
18%
64 and 64
6%
64 and 32
βπ»βπ»......πππ......βπ»βπ»
3. Automatic type conversion is possible in which of the possible cases?
3. Automatic type conversion is possible in which of the possible cases?
Anonymous Quiz
35%
Byte to int
33%
Int to long
23%
Long to int
10%
Short to int
βπ»βπ»......πππ......βπ»βπ»
4. Find the output of the following code.
int Integer = 24; char String = βIβ; System.out.print(Integer); System.out.print(String);
4. Find the output of the following code.
int Integer = 24; char String = βIβ; System.out.print(Integer); System.out.print(String);
Anonymous Quiz
24%
Compile error
35%
Throws exception
17%
I
25%
24 I
βπ»βπ»......πππ......βπ»βπ»
5. Find the output of the following program.
public class Solution{ public static void main(String[] args){ short x = 10; x = x * 5; System.out.print(x); } }
5. Find the output of the following program.
public class Solution{ public static void main(String[] args){ short x = 10; x = x * 5; System.out.print(x); } }
Anonymous Quiz
37%
50
25%
10
32%
Compiler error
6%
Exception
βπ»βπ»......πππ.....βπ»βπ»
Q. Select the valid statement.
Q. Select the valid statement.
Anonymous Quiz
20%
char[] ch = new char(5)
44%
char[] ch = new char[5]
28%
char[] ch = new char()
8%
char[] ch = new char[]
βπ»βπ»......πππ......βπ»βπ»
Q.When an array is passed to a method, what does the method received
Q.When an array is passed to a method, what does the method received
Anonymous Quiz
34%
The reference of the array
35%
A copy of the array
23%
Length of the array
8%
Copy of first element
βπ»βπ»......πππ......βπ»βπ»
Q. Select the valid statement to declare and initialize an array.
Q. Select the valid statement to declare and initialize an array.
Anonymous Quiz
21%
int[] A = {}
53%
int[] A = {1, 2, 3}
19%
int[] A = (1, 2, 3)
7%
int[][] A = {1,2,3}