23CSR306_Unit I

23CSR306_Unit I

University

10 Qs

quiz-placeholder

Similar activities

UML - Diagrama de Classes

UML - Diagrama de Classes

University

14 Qs

Quiz Pengetahuan Tipe Data

Quiz Pengetahuan Tipe Data

10th Grade - University

6 Qs

3F_14042025_Verifica per orale Informatica

3F_14042025_Verifica per orale Informatica

11th Grade - University

10 Qs

Teste de revisão - Liguagem C

Teste de revisão - Liguagem C

University

10 Qs

CPP-TESTING

CPP-TESTING

University

9 Qs

Quiz Pemrograman Arduino

Quiz Pemrograman Arduino

10th Grade - University

15 Qs

FGCT4025 Topic 5 - User-defined Class

FGCT4025 Topic 5 - User-defined Class

University

10 Qs

Code Twisters Round 1 Demo

Code Twisters Round 1 Demo

University

10 Qs

23CSR306_Unit I

23CSR306_Unit I

Assessment

Quiz

Information Technology (IT)

University

Medium

Created by

ARTHI C1514

Used 3+ times

FREE Resource

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
or continue with
Microsoft
Apple
Others
By signing up, you agree to our Terms of Service & Privacy Policy
Already have an account?

Discover more resources for Information Technology (IT)