STEP Java Assessment
STEP Java Assessment
Instructions:
1, Read the instructions carefully for each question and answer the question accordingly.
2, It is not necessary that every question will have multiple answers.
Email *
0 of 0 points
Name *
https://docs.google.com/forms/d/e/1FAIpQLSfJ5TAYVPif8XU6XR3HdLbU4Yi98XFFHGkDyUR_I-cfreOrYQ/viewscore?vc=0&c=0&w=1&flr=0&viewsco… 1/44
3/31/25, 1:46 PM STEP Java Assessment
class Student {
int rollno;
String name;
void value() {
rollno = 101;
System.out.println("value method rollno =" + rollno);
}
a = 12
Feedback
Option C is correct
https://docs.google.com/forms/d/e/1FAIpQLSfJ5TAYVPif8XU6XR3HdLbU4Yi98XFFHGkDyUR_I-cfreOrYQ/viewscore?vc=0&c=0&w=1&flr=0&viewsco… 2/44
3/31/25, 1:46 PM STEP Java Assessment
Q.2 Which of the following statements is true about static methods and 1/1
variables in Java?
Feedback
Option C is correct
https://docs.google.com/forms/d/e/1FAIpQLSfJ5TAYVPif8XU6XR3HdLbU4Yi98XFFHGkDyUR_I-cfreOrYQ/viewscore?vc=0&c=0&w=1&flr=0&viewsco… 3/44
3/31/25, 1:46 PM STEP Java Assessment
class Example {
static int x = 10;
static {
x += 5;
System.out.println("Static Block: x = " + x);
}
Example() {
x += 10;
System.out.println("Constructor: x = " + x);
}
}
Feedback
Option A is correct
https://docs.google.com/forms/d/e/1FAIpQLSfJ5TAYVPif8XU6XR3HdLbU4Yi98XFFHGkDyUR_I-cfreOrYQ/viewscore?vc=0&c=0&w=1&flr=0&viewsco… 4/44
3/31/25, 1:46 PM STEP Java Assessment
class Student {
int rollno;
String name;
void value() {
myfun(); // Line-5
System.out.println("it is showing an error");
}
class Main {
public
static void main(String ar[]) {
Student s1 = new Student();
s1.display(); // Line-23
}
}
Correct answer
https://docs.google.com/forms/d/e/1FAIpQLSfJ5TAYVPif8XU6XR3HdLbU4Yi98XFFHGkDyUR_I-cfreOrYQ/viewscore?vc=0&c=0&w=1&flr=0&viewsco… 5/44
3/31/25, 1:46 PM STEP Java Assessment
Q.5 Which of the following statements is false regarding static variables 1/1
in Java?
Static variables are initialized before any instance of the class is created.
Static variables are initialized only once, when the class is loaded.
Feedback
Option C is correct
Q.6 Which of the following is true regarding static and non-static context 1/1
in Java?
Feedback
Option A is correct
https://docs.google.com/forms/d/e/1FAIpQLSfJ5TAYVPif8XU6XR3HdLbU4Yi98XFFHGkDyUR_I-cfreOrYQ/viewscore?vc=0&c=0&w=1&flr=0&viewsco… 6/44
3/31/25, 1:46 PM STEP Java Assessment
class A {
Void showMethod(int a) { System.out.println(“int a…..”); }
} class Main {
public
static void main(String ar[]) {
A a = new A();
a.showMethod(23);
}
}
Integer a…..
Object a…..
int a…..
Feedback
Option C is Correct
https://docs.google.com/forms/d/e/1FAIpQLSfJ5TAYVPif8XU6XR3HdLbU4Yi98XFFHGkDyUR_I-cfreOrYQ/viewscore?vc=0&c=0&w=1&flr=0&viewsco… 7/44
3/31/25, 1:46 PM STEP Java Assessment
class Student {
float value(int a, int b) { return (float)(a + b); }
class Main {
public
static void main(String ar[]) {
Student s1 = new Student();
System.out.println(s1.value(2, 4));
System.out.println(s1.value(3, 3));
}
}
6.0 , 6
6 , 6.0
Feedback
Option D is correct
https://docs.google.com/forms/d/e/1FAIpQLSfJ5TAYVPif8XU6XR3HdLbU4Yi98XFFHGkDyUR_I-cfreOrYQ/viewscore?vc=0&c=0&w=1&flr=0&viewsco… 8/44
3/31/25, 1:46 PM STEP Java Assessment
class A {
public
boolean show(int a, int b) {
System.out.println(“show method”);
return !(a > b ? ((a + b) > b) || ((b + a) < a)
: ((a - b) <= b) && ((b * a) > a));
}
} class B extends A {
protected
boolean show(int a, int b) {
System.out.println(“show method”);
return !(a < b ? ((a * b) > b) || ((b - a) > a)
: ((a * b) >= b) && ((a * a) > b));
}
}
Correct answer
https://docs.google.com/forms/d/e/1FAIpQLSfJ5TAYVPif8XU6XR3HdLbU4Yi98XFFHGkDyUR_I-cfreOrYQ/viewscore?vc=0&c=0&w=1&flr=0&viewsco… 9/44
3/31/25, 1:46 PM STEP Java Assessment
class A {
protected
boolean show(int a, int b) {
System.out.println(“show method”);
return !(a > b ? ((a + b) > b) || ((b + a) < a)
: ((a - b) <= b) && ((b * a) > a));
}
} class B extends A {
public
boolean show(int a, int b) {
System.out.println(“show method”);
return !(a < b ? ((a * b) > b) || ((b - a) > a)
: ((a * b) >= b) && ((a * a) > b));
}
}
Correct answer
https://docs.google.com/forms/d/e/1FAIpQLSfJ5TAYVPif8XU6XR3HdLbU4Yi98XFFHGkDyUR_I-cfreOrYQ/viewscore?vc=0&c=0&w=1&flr=0&viewsc… 10/44
3/31/25, 1:46 PM STEP Java Assessment
class A {
int x;
String uname;
A(int a, String b) {
x = a;
uname = b;
System.out.println(
"A constructor x = " + x +” and uname = ”+ uname);
}
}
class B extends A {
int x;
String uname;
B(int a, String b) {
x = a;
uname = b;
System.out.println(
"B constructor x = " + x +” and uname = ”+ uname);
}
} public class Main2 {
public
static void main(String ar[]) { A obj = new B(101, "john"); }
}
A constructor x = 101 and uname = john, B constructor x = 101 and uname = john
Compilation error
Feedback
Option C is correct
https://docs.google.com/forms/d/e/1FAIpQLSfJ5TAYVPif8XU6XR3HdLbU4Yi98XFFHGkDyUR_I-cfreOrYQ/viewscore?vc=0&c=0&w=1&flr=0&viewsc… 11/44
3/31/25, 1:46 PM STEP Java Assessment
Q.1 Which of the following is true about a class declared as final? 1/1
It cannot be subclassed.
Other:
Feedback
Option A is Correct
https://docs.google.com/forms/d/e/1FAIpQLSfJ5TAYVPif8XU6XR3HdLbU4Yi98XFFHGkDyUR_I-cfreOrYQ/viewscore?vc=0&c=0&w=1&flr=0&viewsc… 12/44
3/31/25, 1:46 PM STEP Java Assessment
Q.2 What will happen if you declare a class as both final and abstract? 1/1
// some code
Other:
Feedback
Option A is correct
https://docs.google.com/forms/d/e/1FAIpQLSfJ5TAYVPif8XU6XR3HdLbU4Yi98XFFHGkDyUR_I-cfreOrYQ/viewscore?vc=0&c=0&w=1&flr=0&viewsc… 13/44
3/31/25, 1:46 PM STEP Java Assessment
class A {
final int a;
A() {
a = 10;
System.out.println("constructor called");
}
A(int val) { System.out.println("one pera constructor called"); }
Correct answer
https://docs.google.com/forms/d/e/1FAIpQLSfJ5TAYVPif8XU6XR3HdLbU4Yi98XFFHGkDyUR_I-cfreOrYQ/viewscore?vc=0&c=0&w=1&flr=0&viewsc… 14/44
3/31/25, 1:46 PM STEP Java Assessment
class Test {
final int x;
void modify() { x = 20; }
void display() { System.out.println(“x = ”+ x); }
}
Feedback
Option B is correct
https://docs.google.com/forms/d/e/1FAIpQLSfJ5TAYVPif8XU6XR3HdLbU4Yi98XFFHGkDyUR_I-cfreOrYQ/viewscore?vc=0&c=0&w=1&flr=0&viewsc… 15/44
3/31/25, 1:46 PM STEP Java Assessment
Q.5 What happens if you declare a method in an abstract class without the 1/1
abstract keyword and without a method body?
Feedback
Option A is correct
https://docs.google.com/forms/d/e/1FAIpQLSfJ5TAYVPif8XU6XR3HdLbU4Yi98XFFHGkDyUR_I-cfreOrYQ/viewscore?vc=0&c=0&w=1&flr=0&viewsc… 16/44
3/31/25, 1:46 PM STEP Java Assessment
interface X {
default void show() { System.out.println("X"); }
}
class Y implements X {
public
void show() { System.out.println("Y"); }
} public class Test {
public
static void main(String[] args) {
X obj = new Y();
obj.show();
}
}
Compilation error
Runtime exception
Feedback
Option B is correct
https://docs.google.com/forms/d/e/1FAIpQLSfJ5TAYVPif8XU6XR3HdLbU4Yi98XFFHGkDyUR_I-cfreOrYQ/viewscore?vc=0&c=0&w=1&flr=0&viewsc… 17/44
3/31/25, 1:46 PM STEP Java Assessment
public
class Test {
public
static void main(String[] args) {
try {
throw new RuntimeException("Runtime");
}
catch (RuntimeException e) {
throw new Exception("Exception");
}
catch (Exception e) {
System.out.println(e.getMessage());
}
finally {
System.out.println("Finally");
}
}
}
Exception\nFinally
Runtime\nFinally
Compilation error
Finally
Correct answer
Compilation error
https://docs.google.com/forms/d/e/1FAIpQLSfJ5TAYVPif8XU6XR3HdLbU4Yi98XFFHGkDyUR_I-cfreOrYQ/viewscore?vc=0&c=0&w=1&flr=0&viewsc… 18/44
3/31/25, 1:46 PM STEP Java Assessment
class A {
int id;
String name;
void show() { System.out.println("show method"); }
}
System.out.println(10 / obj.id);
System.out.println(“handling obstacles”);
} catch (ArithmeticException e) {
obj = null;
obj.show();
} catch (NullPointerException e) {
System.out.println(e.getMessage());
} finally {
System.out.println(“finally block called”);
}
}
}
Compilation error
https://docs.google.com/forms/d/e/1FAIpQLSfJ5TAYVPif8XU6XR3HdLbU4Yi98XFFHGkDyUR_I-cfreOrYQ/viewscore?vc=0&c=0&w=1&flr=0&viewsc… 19/44
3/31/25, 1:46 PM STEP Java Assessment
Feedback
Option A is correct
class Main {
public
static void main(String ar[]) {
try {
System.out.println("statement-1");
int a = 9;
int b = 10;
System.out.println("statement-2 and (a+b)= " + (a + b));
} finally {
System.out.println("finally block called and and (a+b)=" + (a + b));
}
}
}
Compilation error
Feedback
Option C is correct
https://docs.google.com/forms/d/e/1FAIpQLSfJ5TAYVPif8XU6XR3HdLbU4Yi98XFFHGkDyUR_I-cfreOrYQ/viewscore?vc=0&c=0&w=1&flr=0&viewsc… 20/44
3/31/25, 1:46 PM STEP Java Assessment
public
static String method1() throws CustomException {
try {
throw new CustomException("Error in method1");
} catch (CustomException e) {
System.out.println("Caught in method1: " + e.getMessage());
throw e; // Re-throwing the exception
} finally {
return "method1: Finally block executed";
}
}
}
Compilation error
Correct answer
https://docs.google.com/forms/d/e/1FAIpQLSfJ5TAYVPif8XU6XR3HdLbU4Yi98XFFHGkDyUR_I-cfreOrYQ/viewscore?vc=0&c=0&w=1&flr=0&viewsc… 21/44
3/31/25, 1:46 PM STEP Java Assessment
https://docs.google.com/forms/d/e/1FAIpQLSfJ5TAYVPif8XU6XR3HdLbU4Yi98XFFHGkDyUR_I-cfreOrYQ/viewscore?vc=0&c=0&w=1&flr=0&viewsc… 22/44
3/31/25, 1:46 PM STEP Java Assessment
class MyException {
public
static void main(String[] args) {
try {
method1();
} catch (Exception e) {
System.out.println("Caught in main: " + e.getMessage());
}
}
public
static void method1() throws Exception {
try {
method2();
} catch (Exception e) {
System.out.println("Caught in method1: " + e.getMessage());
throw new Exception("Exception from method1");
}
}
public
static void method2() throws Exception {
try {
method3();
} catch (Exception e) {
System.out.println("Caught in method2: " + e.getMessage());
throw new Exception("Exception from method2");
}
}
public
static void method3() throws Exception {
throw new Exception("Exception from method3");
}
}
https://docs.google.com/forms/d/e/1FAIpQLSfJ5TAYVPif8XU6XR3HdLbU4Yi98XFFHGkDyUR_I-cfreOrYQ/viewscore?vc=0&c=0&w=1&flr=0&viewsc… 23/44
3/31/25, 1:46 PM STEP Java Assessment
https://docs.google.com/forms/d/e/1FAIpQLSfJ5TAYVPif8XU6XR3HdLbU4Yi98XFFHGkDyUR_I-cfreOrYQ/viewscore?vc=0&c=0&w=1&flr=0&viewsc… 24/44
3/31/25, 1:46 PM STEP Java Assessment
Compilation error
Correct answer
Compilation error
https://docs.google.com/forms/d/e/1FAIpQLSfJ5TAYVPif8XU6XR3HdLbU4Yi98XFFHGkDyUR_I-cfreOrYQ/viewscore?vc=0&c=0&w=1&flr=0&viewsc… 25/44
3/31/25, 1:46 PM STEP Java Assessment
}
public class Main {
public
static void main(String ar[]) {
Mythread mt = new Mythread();
Compilation error
Feedback
Option A is Correct
https://docs.google.com/forms/d/e/1FAIpQLSfJ5TAYVPif8XU6XR3HdLbU4Yi98XFFHGkDyUR_I-cfreOrYQ/viewscore?vc=0&c=0&w=1&flr=0&viewsc… 26/44
3/31/25, 1:46 PM STEP Java Assessment
t1.start();
t1.join(500); // Waits for t1 for 500ms
t2.start();
t1.join(); // Waits for t1 to finish
System.out.println("Main Finished");
}
}
Thread Started
Thread Finished
Main Finished
Thread Finished
https://docs.google.com/forms/d/e/1FAIpQLSfJ5TAYVPif8XU6XR3HdLbU4Yi98XFFHGkDyUR_I-cfreOrYQ/viewscore?vc=0&c=0&w=1&flr=0&viewsc… 27/44
3/31/25, 1:46 PM STEP Java Assessment
Thread Finished
Thread Started
Thread Finished
Main Finished
C.)Thread Started
Main Finished
Thread Finished
Thread Started
Thread Finished
D.)Thread Started
Thread Interrupted
Thread Started
Thread Finished
Main Finished
https://docs.google.com/forms/d/e/1FAIpQLSfJ5TAYVPif8XU6XR3HdLbU4Yi98XFFHGkDyUR_I-cfreOrYQ/viewscore?vc=0&c=0&w=1&flr=0&viewsc… 28/44
3/31/25, 1:46 PM STEP Java Assessment
t1.start();
t2.run();
}
}
A.) Thread-0: 0
Thread-0: 1
Thread-0: 2
Thread-0: 3
Thread-0: 4
main: 0
main: 1
main: 2
main: 3
https://docs.google.com/forms/d/e/1FAIpQLSfJ5TAYVPif8XU6XR3HdLbU4Yi98XFFHGkDyUR_I-cfreOrYQ/viewscore?vc=0&c=0&w=1&flr=0&viewsc… 29/44
3/31/25, 1:46 PM STEP Java Assessment
main: 4
B.)Thread-0: 0
Thread-0: 1
Thread-0: 2
Thread-0: 3
Thread-0: 4
Thread-1: 0
Thread-1: 1
Thread-1: 2
Thread-1: 3
Thread-1: 4
C.)main: 0
main: 1
main: 2
main: 3
main: 4
Thread-0: 0
Thread-0: 1
Thread-0: 2
Thread-0: 3
Thread-0: 4
D.)main: 0
main: 1
https://docs.google.com/forms/d/e/1FAIpQLSfJ5TAYVPif8XU6XR3HdLbU4Yi98XFFHGkDyUR_I-cfreOrYQ/viewscore?vc=0&c=0&w=1&flr=0&viewsc… 30/44
3/31/25, 1:46 PM STEP Java Assessment
main: 2
main: 3
main: 4
Correct answer
Q.1 Which of the following classes allow null values as an element? 0/1
TreeSet
ArrayList
HashSet
Hashtable
Correct answer
ArrayList
HashSet
https://docs.google.com/forms/d/e/1FAIpQLSfJ5TAYVPif8XU6XR3HdLbU4Yi98XFFHGkDyUR_I-cfreOrYQ/viewscore?vc=0&c=0&w=1&flr=0&viewsc… 31/44
3/31/25, 1:46 PM STEP Java Assessment
import java.util.*;
class Student {
int id;
String name;
public
int hashCode() { return this.id; }
public
boolean equals(Object o) { return false; }
public
String toString() { return this.id+" " ; }
https://docs.google.com/forms/d/e/1FAIpQLSfJ5TAYVPif8XU6XR3HdLbU4Yi98XFFHGkDyUR_I-cfreOrYQ/viewscore?vc=0&c=0&w=1&flr=0&viewsc… 32/44
3/31/25, 1:46 PM STEP Java Assessment
sets.add(s1);
sets.add(s2);
sets.add(s3);
sets.add(s4);
sets.add(s5);
sets.add(s6);
sets.add(s7);
sets.add(s8);
sets.add(s9);
System.out.println(sets);
}
}
Correct answer
https://docs.google.com/forms/d/e/1FAIpQLSfJ5TAYVPif8XU6XR3HdLbU4Yi98XFFHGkDyUR_I-cfreOrYQ/viewscore?vc=0&c=0&w=1&flr=0&viewsc… 33/44
3/31/25, 1:46 PM STEP Java Assessment
import java.util.*;
public
class Main {
public
static void main(String[] args) {
List<String> list = new LinkedList<>();
list.add("one");
list.add("two");
list.add("three");
Iterator<String> it = list.iterator();
while (it.hasNext()) {
it.next();
it.remove();
}
System.out.println(list.size());
}
}
Compilation error
Feedback
Option A is Correct
https://docs.google.com/forms/d/e/1FAIpQLSfJ5TAYVPif8XU6XR3HdLbU4Yi98XFFHGkDyUR_I-cfreOrYQ/viewscore?vc=0&c=0&w=1&flr=0&viewsc… 34/44
3/31/25, 1:46 PM STEP Java Assessment
import java.util.*;
public
class Main {
public
static void main(String[] args) {
List<String> list = new LinkedList<>();
list.add("one");
list.add("two");
list.add("three");
Iterator<String> it = list.iterator();
while (it.hasNext()) {
it.next();
}
it.remove();
it.remove();
System.out.println(list.size());
}
}
Compilation error
Correct answer
https://docs.google.com/forms/d/e/1FAIpQLSfJ5TAYVPif8XU6XR3HdLbU4Yi98XFFHGkDyUR_I-cfreOrYQ/viewscore?vc=0&c=0&w=1&flr=0&viewsc… 35/44
3/31/25, 1:46 PM STEP Java Assessment
import java.util.*;
public
class Main {
public
static void main(String[] args) {
List<String> list = new ArrayList<>();
list.add("one");
list.add("two");
list.add("three");
Collections.reverse(list);
list.set(1, "four");
https://docs.google.com/forms/d/e/1FAIpQLSfJ5TAYVPif8XU6XR3HdLbU4Yi98XFFHGkDyUR_I-cfreOrYQ/viewscore?vc=0&c=0&w=1&flr=0&viewsc… 36/44
3/31/25, 1:46 PM STEP Java Assessment
Q.6 What is the time complexity for searching an element in a HashSet? 1/1
O(1)
O(log n)
O(n)
O(n log n)
Feedback
Option A is Correct
https://docs.google.com/forms/d/e/1FAIpQLSfJ5TAYVPif8XU6XR3HdLbU4Yi98XFFHGkDyUR_I-cfreOrYQ/viewscore?vc=0&c=0&w=1&flr=0&viewsc… 37/44
3/31/25, 1:46 PM STEP Java Assessment
import java.util.*;
public
class Main {
public
static void main(String[] args) {
Map<String, String> map = new TreeMap<>();
map.put("c", "three");
map.put("b", "two");
map.put("a", "one");
cba
abc
Runtime Exception
Correct answer
abc
https://docs.google.com/forms/d/e/1FAIpQLSfJ5TAYVPif8XU6XR3HdLbU4Yi98XFFHGkDyUR_I-cfreOrYQ/viewscore?vc=0&c=0&w=1&flr=0&viewsc… 38/44
3/31/25, 1:46 PM STEP Java Assessment
getParameter()
getSession()
getWriter()
getHeader()
Correct answer
getWriter()
Q.2 How can a servlet communicate directly with another servlet? 0/1
By using RequestDispatcher
By using sendRedirect()
By using ServletConfig
By using ServletContext
Correct answer
By using RequestDispatcher
By using sendRedirect()
https://docs.google.com/forms/d/e/1FAIpQLSfJ5TAYVPif8XU6XR3HdLbU4Yi98XFFHGkDyUR_I-cfreOrYQ/viewscore?vc=0&c=0&w=1&flr=0&viewsc… 39/44
3/31/25, 1:46 PM STEP Java Assessment
Q.3 In which directory should you place the web.xml file in a Java web 0/1
application?
/src
/META-INF
/WEB-INF
/WEB-INF/classes
Correct answer
/WEB-INF
https://docs.google.com/forms/d/e/1FAIpQLSfJ5TAYVPif8XU6XR3HdLbU4Yi98XFFHGkDyUR_I-cfreOrYQ/viewscore?vc=0&c=0&w=1&flr=0&viewsc… 40/44
3/31/25, 1:46 PM STEP Java Assessment
Q.4 What is the behavior of the following servlet code if the doPost() 0/1
method is called with the same session already existing?
public
class MyServlet extends HttpServlet {
protected
void doPost(HttpServletRequest request,
HttpServletResponse response) throws ServletException,
IOException {
HttpSession session = request.getSession(true);
session.setAttribute("user", "John");
PrintWriter out = response.getWriter();
out.println(session.getAttribute("user"));
}
}
https://docs.google.com/forms/d/e/1FAIpQLSfJ5TAYVPif8XU6XR3HdLbU4Yi98XFFHGkDyUR_I-cfreOrYQ/viewscore?vc=0&c=0&w=1&flr=0&viewsc… 41/44
3/31/25, 1:46 PM STEP Java Assessment
Q.5 What will happen if the following code is executed when 0/1
getParameter("name") returns null?
public
class MyServlet extends HttpServlet {
public
void doGet(HttpServletRequest req,
HttpServletResponse res) throws ServletException,
IOException {
String name = req.getParameter("name");
PrintWriter out = res.getWriter();
if (name.equals("admin")) {
out.println("Welcome admin!");
} else {
out.println("Hello, user!");
}
}
}
https://docs.google.com/forms/d/e/1FAIpQLSfJ5TAYVPif8XU6XR3HdLbU4Yi98XFFHGkDyUR_I-cfreOrYQ/viewscore?vc=0&c=0&w=1&flr=0&viewsc… 42/44
3/31/25, 1:46 PM STEP Java Assessment
Q.6 Which JSP directive is used to include content from another file at the 0/1
translation time?
<jsp:include />
Correct answer
Q.7 Which of the following tag libraries is used for JSTL (JavaServer 1/1
Pages Standard Tag Library)?
Feedback
Option A is Correct
Forms
https://docs.google.com/forms/d/e/1FAIpQLSfJ5TAYVPif8XU6XR3HdLbU4Yi98XFFHGkDyUR_I-cfreOrYQ/viewscore?vc=0&c=0&w=1&flr=0&viewsc… 43/44
3/31/25, 1:46 PM STEP Java Assessment
https://docs.google.com/forms/d/e/1FAIpQLSfJ5TAYVPif8XU6XR3HdLbU4Yi98XFFHGkDyUR_I-cfreOrYQ/viewscore?vc=0&c=0&w=1&flr=0&viewsc… 44/44