Search Header Logo

Set - 1

Authored by Vedadri Harith Nadupalle

Computers

University

Set - 1
AI

AI Actions

Add similar questions

Adjust reading levels

Convert to real-world scenario

Translate activity

More...

    Content View

    Student View

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

Access all questions and much more by creating a free account

Create resources

Host any resource

Get auto-graded reports

Google

Continue with Google

Email

Continue with Email

Classlink

Continue with Classlink

Clever

Continue with Clever

or continue with

Microsoft

Microsoft

Apple

Apple

Others

Others

Already have an account?