Core Java Quiz

Core Java Quiz

University

10 Qs

quiz-placeholder

Similar activities

002_Java Methods

002_Java Methods

12th Grade - University

15 Qs

Programming Standard Input

Programming Standard Input

University

10 Qs

java quiz based on interface

java quiz based on interface

University

10 Qs

Structure of Java Program

Structure of Java Program

University

10 Qs

Java Quiz 4

Java Quiz 4

University

15 Qs

java - intro

java - intro

University

11 Qs

Introduction to Java

Introduction to Java

University

10 Qs

๋Chapter 1 Java Basic

๋Chapter 1 Java Basic

University

10 Qs

Core Java Quiz

Core Java Quiz

Assessment

Quiz

Computers

University

Medium

Created by

Atul Bondre

Used 53+ times

FREE Resource

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

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?