Dom.Mod.Prelim Exam OOP Java Programming

Dom.Mod.Prelim Exam OOP Java Programming

University

55 Qs

quiz-placeholder

Similar activities

Evaluación teórica Base de Datos 7ºU 2025

Evaluación teórica Base de Datos 7ºU 2025

12th Grade - University

60 Qs

FSWD (Jquery, PHP, MySql)

FSWD (Jquery, PHP, MySql)

University

52 Qs

PHP-Midterm Exam

PHP-Midterm Exam

University

60 Qs

PHP_BCA-III

PHP_BCA-III

University

50 Qs

PBD_Q_2

PBD_Q_2

University

50 Qs

SKILL QUIZ

SKILL QUIZ

University

50 Qs

SQL Keywords

SQL Keywords

University

55 Qs

MTA 98-364 RESUME

MTA 98-364 RESUME

University - Professional Development

50 Qs

Dom.Mod.Prelim Exam OOP Java Programming

Dom.Mod.Prelim Exam OOP Java Programming

Assessment

Quiz

Computers

University

Medium

Created by

diana diana

Used 2+ times

FREE Resource

55 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

10 sec • 1 pt

Which of the following is a valid variable name in Java?

2value

value_2

value-2

@value

2.

MULTIPLE CHOICE QUESTION

10 sec • 1 pt

What is the default value of an int variable in Java?

0

null

undefined

-1

3.

MULTIPLE CHOICE QUESTION

10 sec • 1 pt

Which keyword is used to declare a constant variable in Java?

const

static

final

constant

4.

MULTIPLE CHOICE QUESTION

10 sec • 1 pt

What is the size of a float variable in Java?

4 bytes

2 bytes

8 bytes

1 byte

5.

MULTIPLE CHOICE QUESTION

10 sec • 1 pt

Which of the following is not a primitive data type in Java?

int

boolean

String

char

6.

MULTIPLE CHOICE QUESTION

10 sec • 1 pt

How do you declare a double variable named price?

double = price;

price double;

double price;

price = double;

7.

MULTIPLE CHOICE QUESTION

10 sec • 1 pt

Which operator is used for assignment in Java?

==

:=

=

=>

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?