UIL Level 1
UIL Level 2
UIL Level 3
Random Questions
100

What is the output of Math.min(3, 4.0)

3.0

100

Which of the following is the smallest?

A. 203(base 7)

B. 250(base 6)

C. 410(base 5)

D. 10211(base 3)

E. 1220(base 4)


A

100

What is:

Math.ceil(-2.9)

-2.0

100

system.out.print ( 20 + 4 )

24

200

What is the output of:

String str="!@#$%^&*";

str.substring(1);

System.out.println(str);

!@#$%^&*

200

What is the ASCII of A?

What is the ASCII Of a?

What is the ASCII of 0?

65

97

48


200

What is stored in num?

int num = 5 & 4 | 3 ^ 2 & 1;


7

200

When decade was Java Invented?

1990s

300

What does Int mean

integer….no decimal

300

What is the bit size of a int?

What is the bit size of a double

32-bits

64-bits

300

Simplify the following:

A||!(B&&A||A)

True

300

system.out.print( “aplus” + 1);

aplus1

400

What does Integer.toString(10, 2) do?

Converts 10 to base 2

400

int[][] mat = new int[3][3]

for(int r = 0; r < 3; r++)

    for(int c = 0; c < 3; c++)

         mat[r][c] = r * c + c;

System.out.println(mat[1][0] + mat[2][1]);

5

400

What sorting algorithim does Java use during Arrays.sort()?

Mergesort

400

Name all the types of loops in Java that we use 

While, For


500

What is the contents of arr:

ArrayList<Integer> arr = new ArrayList<>();

arr.add(5);

arr.add(0, 3);

arr.add(2);

arr.remove(0);

arr.add(100);

arr.set(3, 0);

Index Out of Bounds Error

500
what will the following output?

System.out.println(r(2));

public int r(int rr) {

if(rr < -5) return -1;

else return rr * -2 + r(rr-7);

}


5

500

What is the 2's complement of -165

01101011
500

mrs states favorite drink

dr pepper

M
e
n
u