Quiz Round-2

Quiz Round-2

University

20 Qs

quiz-placeholder

Similar activities

Day - 3 Workshop quiz

Day - 3 Workshop quiz

University

15 Qs

Dasar Manajemen dan Bisnis

Dasar Manajemen dan Bisnis

University - Professional Development

20 Qs

Web Essentials -Quiz 1

Web Essentials -Quiz 1

University

20 Qs

SJIT ECE APTITUDE PRACTICE TEST-1@10-11-2023

SJIT ECE APTITUDE PRACTICE TEST-1@10-11-2023

University

20 Qs

Quiz Sistem Informasi Geografis

Quiz Sistem Informasi Geografis

University

20 Qs

BASICS OF JAVA-1

BASICS OF JAVA-1

University

20 Qs

PU_4

PU_4

University

20 Qs

Embedded Security Quiz No 4

Embedded Security Quiz No 4

University

15 Qs

Quiz Round-2

Quiz Round-2

Assessment

Quiz

Other

University

Hard

Created by

Nisha Sakthivel

Used 1+ times

FREE Resource

20 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

20 sec • 1 pt

1) Find the output of the following code.

Public class Solution{

Public static void main(String args[]){

Int i;

for(i = 1; i < 6; i++){

if(i > 3) continue;

}

System.out.println(i);

}

}

a) 3

b) 4

c) 5

d) 6

2.

MULTIPLE CHOICE QUESTION

20 sec • 1 pt

2) Which of the below is valid way to instantiate an array in java?

a) int myArray [] = {1, 3, 5};

b) int myArray [] [] = {1,2,3,4};

c) int [] myArray = (5, 4, 3);

d) int [] myArray = {“1”, “2”, “3”};

3.

MULTIPLE CHOICE QUESTION

20 sec • 1 pt

3) What will be output of below program?

public class Test {

public void main(String[] args) {

int x = 10*20-20;

System.out.println(x);

}

}

a) Runtime Error

b) Prints 180

c) Prints 0

d) Compile-time error

4.

MULTIPLE CHOICE QUESTION

20 sec • 1 pt

4) What is output of the code in Python Language:

>>>strl = 'All the Best'

>>>strl=[-3]

a) ’I’

b) ’e’

c) ’H’

d) ’b’

5.

MULTIPLE CHOICE QUESTION

20 sec • 1 pt

5) What will be the output of the following code :

print type(type(int))

a) type

b) type \ 'type\'

c) 3

d) Error

6.

MULTIPLE CHOICE QUESTION

20 sec • 1 pt

6) time.time() returns ________

a) the current time

b) the current time in milliseconds

c) the current time in milliseconds since midnight, January 1, 1970

d) the current time in milliseconds since midnight, January 1, 1970 GMT (the Unix time)

7.

MULTIPLE CHOICE QUESTION

20 sec • 1 pt

7) What will be the output of the following code snippet?

<script type="text/javascript">

a = 5 + "9";

document.write(a);

</script>

a) Compilation Error

b) 14

c) Runtime Error

d) 59

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?