Java Basic Day-2

Java Basic Day-2

University

10 Qs

quiz-placeholder

Similar activities

CSC1243 - Introduction to Computer Programs (Programming Langua)

CSC1243 - Introduction to Computer Programs (Programming Langua)

University

10 Qs

OOP 1 Undiksha

OOP 1 Undiksha

12th Grade - University

13 Qs

MULTIMEDIA STORYBOARD

MULTIMEDIA STORYBOARD

University

10 Qs

UNIT-1 PYTHON BASICS

UNIT-1 PYTHON BASICS

University

10 Qs

Herencia y Paquetes

Herencia y Paquetes

University

10 Qs

Linkedlist

Linkedlist

University

10 Qs

PYTHON UNIT I MCQS

PYTHON UNIT I MCQS

University

15 Qs

Java Basic Day-2

Java Basic Day-2

Assessment

Quiz

Computers

University

Hard

Created by

G.L. Bajaj Greater Noida

Used 25+ 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 legal identifier in java?

2variable

#myvar

+@$var

$_myvar

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

which of these is NOT a valid keyword or reserved word in java?

default

null

String

volatile

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

which is the legal range of values fro a short?

-128 to +127

-255 to 255

-32768 to 32767

0 to 65535

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

which declaration of the main() method is valid?

public void main(String args[])

public void static main(String args[])

final public static void main(String []arr)

public static void main(String []arr)

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Is 3*4 equivalent to 3 << 2 ?

Yes

NO

6.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

what will be the output?

public class Test

{

public static void main(String[] args) {

double d=100.04;

float f=d;

System.out.println(""+f);

}

}

100.04

100.0

100

Compilation Error

7.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which Operator will always evaluate all the operands ?

||

&&

?:

%

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?