Set - 1

Set - 1

University

20 Qs

quiz-placeholder

Similar activities

Basic Java Quiz

Basic Java Quiz

University

15 Qs

Code Combat

Code Combat

University

15 Qs

Unit-2 Test-1

Unit-2 Test-1

University

20 Qs

C Programming Quiz

C Programming Quiz

12th Grade - University

20 Qs

BASIC C PROGRAMMING

BASIC C PROGRAMMING

University

15 Qs

Java, part I

Java, part I

11th Grade - University

20 Qs

Structures and union

Structures and union

University

15 Qs

Unit-2 Test-2

Unit-2 Test-2

University

15 Qs

Set - 1

Set - 1

Assessment

Quiz

Computers

University

Hard

Created by

Vedadri Harith Nadupalle

FREE Resource

20 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which of the following option leads to the portability and security of Java?

Bytecode is executed by JVM

The applet makes the Java code secure and portable

Use of exception handling

Dynamic binding between objects

2.

MULTIPLE CHOICE QUESTION

1 min • 1 pt

Evaluate the following Java expression, if x=3, y=5, and z=10:

++z + y - y + z + x++

24

23

20

25

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What will be the output of following Java code?

public class Challenge1 {

public static void main(String[] args) {

int x = 5;

System.out.println(x++ + ++x);

}

}

12

13

11

14

4.

MULTIPLE CHOICE QUESTION

20 sec • 1 pt

Who is Mother of Computers?

Lady Love Lace Ada

Margaret Thacher

Kalpana Chawla

Elizabet

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is the output of the following code?

#include <stdio.h>

int main() {

int x = 10;

printf("%d", x > 5 ? x < 12 ? 5 : 7 : 9);

return 0;

}

7

9

10

5

6.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which of the following is a correct way to declare a two-dimensional array in C?

int arr[5][5];

int arr[][];

int arr[][] = new int[5][5];

int arr[5, 5];

7.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

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];

}

2

1

0

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?