Search Header Logo

PU - Day 1 - Assessments - Slot 2 - Mahendran class

Authored by training atomm

Professional Development

Professional Development

Used 1+ times

PU - Day 1 - Assessments - Slot 2 - Mahendran class
AI

AI Actions

Add similar questions

Adjust reading levels

Convert to real-world scenario

Translate activity

More...

    Content View

    Student View

10 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is the output of the following code?

public class Main {

public static void main(String[] args) {

System.out.println(7.0 / 2);

}

}

3.5
3
4.0
2.5

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is the output of the following code?

public class Main {

public static void main(String[] args) {

System.out.println(10 / 3);

}

}

4

3.33

3.0

3

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is the output of the following code?

public class Main {

public static void main(String[] args) {

System.out.println(5 + 2 * 3);

}

}

8

21

11

17

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is the output of the following code?

public class Main {

public static void main(String[] args) {

System.out.println(15 % 4);

}

}

3

4

1

2

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What does the following code represent?

public class Main {

public static void main(String[] args) {

char ch = 'B';

}

}

A simple Java program that declares a character variable.
A Java program that prints a character to the console.
A Java program that defines a method to read user input.
A Java program that creates an integer variable.

6.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is the output of the following code?

public class Main {

public static void main(String[] args) {

System.out.println(8 - 3 * 2);

}

}

1

5

3

2

7.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is the output of the following code?

public class Main {

public static void main(String[] args) {

System.out.println(4 + 6 / 2);

}

}

8

10

6

5

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?