Code Junction 4

Code Junction 4

University

20 Qs

quiz-placeholder

Similar activities

Java Object Creation and Classes

Java Object Creation and Classes

University

20 Qs

Two-Dimensional Array in Java

Two-Dimensional Array in Java

University

20 Qs

coe java 24 june 21 7:30 to 745 pm only

coe java 24 june 21 7:30 to 745 pm only

University

20 Qs

Test Faham?

Test Faham?

12th Grade - Professional Development

23 Qs

Java

Java

11th Grade - University

23 Qs

Intro to Java 1

Intro to Java 1

University

15 Qs

Web Development and Programming

Web Development and Programming

University

20 Qs

Lógica de programación JAVA

Lógica de programación JAVA

University

18 Qs

Code Junction 4

Code Junction 4

Assessment

Quiz

Computers

University

Hard

Created by

Amit Maan

Used 4+ times

FREE Resource

20 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 5 pts

Number of primitive data types in Java are?

6

7

8

9

2.

MULTIPLE CHOICE QUESTION

30 sec • 5 pts

What is the size of float and double in java?

32 and 64

32 and 32

64 and 64

64 and 32

3.

MULTIPLE CHOICE QUESTION

3 mins • 5 pts

Find the output of the following code:

int Integer = 24;

char String = ‘I’;

System.out.print(Integer);

System.out.print(String);

compile error

throws exception

I

24 I

4.

MULTIPLE CHOICE QUESTION

3 mins • 5 pts

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); } }

50

10

compile error

exception

5.

MULTIPLE CHOICE QUESTION

3 mins • 5 pts

Find the output of the following program:

public class Solution{

public static void main(String[] args){

byte x = 127;

x++;

x++;

System.out.print(x); } }

-127

127

129

2

6.

MULTIPLE CHOICE QUESTION

3 mins • 5 pts

Find the output of the following program.

public class Solution{

public static void main(String[] args){

int[] x = {120, 200, 016};

for(int i = 0; i < x.length; i++){

System.out.print(x[i] + “ “); } } }

120 200 016

120 200 14

120 200 16

none

7.

MULTIPLE CHOICE QUESTION

3 mins • 5 pts

Find the value of A[1] after execution of the following program.

int[] A = {0,2,4,1,3};

for(int i = 0; i < a.length; i++){

a[i] = a[(a[i] + 3) % a.length]; }

0

1

2

3

Create a free account and access millions of resources

Create resources
Host any resource
Get auto-graded reports
or continue with
Microsoft
Apple
Others
By signing up, you agree to our Terms of Service & Privacy Policy
Already have an account?