Java Quizathon

Java Quizathon

University

50 Qs

quiz-placeholder

Similar activities

Ass3

Ass3

University - Professional Development

50 Qs

Pre-Test Praktikum

Pre-Test Praktikum

University

50 Qs

OOP Quiz-3

OOP Quiz-3

University

45 Qs

CSC 101 Programming 1 Midterm Exam

CSC 101 Programming 1 Midterm Exam

University

51 Qs

TCS693 FSWD PHP Test 2023

TCS693 FSWD PHP Test 2023

University

54 Qs

Quiz Trivia

Quiz Trivia

University

50 Qs

HTML,CSS AND JS QUIZ

HTML,CSS AND JS QUIZ

University

50 Qs

QuizBuzz

QuizBuzz

University

45 Qs

Java Quizathon

Java Quizathon

Assessment

Quiz

Computers

University

Medium

Created by

Keerthi GJ

Used 2+ times

FREE Resource

50 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

20 sec • 1 pt

What is wrong with the following Java variable declaration?

int 1stNumber = 23;

There is no data type called 'int'

Variable names can not start with a digit

Variable names can not contain digits

Number 23 can not be stored in an int

2.

MULTIPLE CHOICE QUESTION

20 sec • 1 pt

Following set of data items are to be stored about a student

a. Students name

b. Students current age in years

c. Students weight in kg

d. Students gender

Which of the following data types will match best with these

a. String

b. int

c. String

d. String

a. String

b. float

d. int

d. int

a. String

b. int

c. float

d. boolean

a. String

b. int

c. float

d. char

3.

MULTIPLE CHOICE QUESTION

20 sec • 1 pt

Which of the following data is the 'smallest' data type that can be used to hold the 'distance between Earth to Mars' in km.

(Average distance between Earth and March is 234,460,000 km)

byte

int

long

short

4.

MULTIPLE CHOICE QUESTION

20 sec • 1 pt

Media Image

What is the output of the following code?

x is 0

x is 1

x is 2

x is 3

x is 4

5.

MULTIPLE CHOICE QUESTION

20 sec • 1 pt

Java is a

Procedure Oriented Language

Structure Oriented Language

Object_Oriented Language

Machine Language

6.

MULTIPLE CHOICE QUESTION

20 sec • 1 pt

The name of the following should be the file name in Java

Object Name

Variable Nam

Class Name

Array Name

7.

MULTIPLE CHOICE QUESTION

20 sec • 1 pt

The name of the following should be the file name in Java

Object Name

Variable Nam

Class Name

Array Name

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?