23CSR306_Unit I

23CSR306_Unit I

University

10 Qs

quiz-placeholder

Similar activities

CPP-TESTING

CPP-TESTING

University

9 Qs

Teste de revisão - Liguagem C

Teste de revisão - Liguagem C

University

10 Qs

UML - Diagrama de Classes

UML - Diagrama de Classes

University

14 Qs

Java Predefined Classes

Java Predefined Classes

University

15 Qs

C-Volution (Hard)

C-Volution (Hard)

University

10 Qs

Code Twisters Round 1 Demo

Code Twisters Round 1 Demo

University

10 Qs

Eval. 3B Bloque 1

Eval. 3B Bloque 1

9th Grade - University

15 Qs

Quiz Kelas XI IP DHCP dan IP Static

Quiz Kelas XI IP DHCP dan IP Static

11th Grade - 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

AI

Enhance your content

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

By signing up, you agree to our Terms of Service & Privacy Policy

Already have an account?