23CSR306_Unit I

23CSR306_Unit I

University

10 Qs

quiz-placeholder

Similar activities

Exploring AI Tools in Education

Exploring AI Tools in Education

University

10 Qs

Quiz Meet 1 Mini SC Programing

Quiz Meet 1 Mini SC Programing

University

10 Qs

W4 session 1 knowledge check

W4 session 1 knowledge check

University

10 Qs

NAT-Q

NAT-Q

9th Grade - University

11 Qs

Understanding Loops in C Programming

Understanding Loops in C Programming

1st Grade - University

15 Qs

Test de C++ pentru clasa a 10-a

Test de C++ pentru clasa a 10-a

10th Grade - University

15 Qs

Session 02

Session 02

University

15 Qs

23CSR306_Unit I

23CSR306_Unit I

Assessment

Quiz

Information Technology (IT)

University

Practice Problem

Medium

Created by

ARTHI C1514

Used 3+ times

FREE Resource

AI

Enhance your content in a minute

Add similar questions
Adjust reading levels
Convert to real-world scenario
Translate activity
More...

10 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which of the following is a valid main method signature in Java?

public static int main(String[] args)

public static void main(String args[])

public void static main(String args[])

public static void main()

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What happens if you declare main as private static void main(String[] args)?

Compilation error

Runtime error

Program executes normally

JVM throws SecurityException

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is the result of the expression: 10 + 20 + "30"?

"3030"

"102030"

"30"

Error

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is the output of:
int a = 5;

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

11

12

13

14

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which of the following is not a primitive data type in Java?

boolean

int

String

double

6.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is the result of the following code?

byte b = 50;

b = b * 2;

System.out.println(b);

100

Compilation error

Runtime error

0

7.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is the output?

int x = 5;

int y = ++x * 2;

System.out.println(y);

10

12

11

13

Create a free account and access millions of resources

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?