Core Java Quiz

Core Java Quiz

University

10 Qs

quiz-placeholder

Similar activities

IOTA : Web Development Bootcamp Quiz 2

IOTA : Web Development Bootcamp Quiz 2

University

14 Qs

Chapter 5-1: Review Questions & Exercises

Chapter 5-1: Review Questions & Exercises

University

10 Qs

Computer Science (1-9) - Identifying & Preventing Threats

Computer Science (1-9) - Identifying & Preventing Threats

University

11 Qs

Computer and Network Security

Computer and Network Security

University

10 Qs

Round 2 for Preplacement Bootcamp

Round 2 for Preplacement Bootcamp

University

15 Qs

Web Designing Quiz-2

Web Designing Quiz-2

University

10 Qs

Teste python- Unesp-Jaboticabal

Teste python- Unesp-Jaboticabal

University

10 Qs

07 - Map

07 - Map

University

15 Qs

Core Java Quiz

Core Java Quiz

Assessment

Quiz

Computers

University

Practice Problem

Medium

Created by

Atul Bondre

Used 54+ 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

what is size of int in Java?

2 bytes

4 bytes

6 bytes

8 bytes

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

what is size of long int in Java?

2 bytes

4 bytes

6 bytes

8 bytes

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

what is size of char in Java?

2 bytes

4 bytes

6 bytes

1 bytes

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

String in a Java is primitive (built-in) data type or class?

data type

class

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What size will be required to store value 324.98 in Java?

2

3

6

8

6.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which of these can not be used for a variable name in Java and any other programming languages?

identifier

keyword

identifier & keyword

none of the mentioned

7.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Import java.lang.*;

class Rectangle

{

int l,b,a;

a=l*b;

void fun()

{

l=10;

b=20;

system.out.println("Area = ", a);

}

}

Identify errors in above program segment.

Error in import line and Error in println line both

Error in import line

Error in println line

No error at all

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?

Discover more resources for Computers