CppBuzz.com
  
Home C C++ Java Python Perl PHP SQL JavaScript Linux Online Test Forum

Home » Java » Objective Questions (Page-1)

Java Objective Questions (MCQs) - 224

Page 1 (1 - 50)


Question: 1

(A) 10
(B) 11
(C) 12
(D) Compilation Error

Forum
Expert datatype[Posted by: Admin | Chicago, USA]



Question: 2

(A) 11
(B) 12
(C) 13
(D) Compilation Error

Forum
Practitioner operators[Posted by: Admin | Chicago, USA]



Question: 3

(A) 10
(B) 11
(C) 12
(D) 13

Forum
Beginner operators[Posted by: Admin | Chicago, USA]



Question: 4

(A) 100
(B) 110
(C) 121
(D) Compilation Error

Forum
Beginner operators[Posted by: Admin | Chicago, USA]



Question: 5

(A) 100
(B) 110
(C) 121
(D) 144

Forum
Beginner variables[Posted by: Admin | Chicago, USA]



Question: 6

(A) 121
(B) 132
(C) 144
(D) 100

Forum
Beginner operators[Posted by: Admin | Chicago, USA]



Question: 7

(A) 121
(B) 144
(C) 132
(D) 100

Forum
Beginner operators[Posted by: Admin | Chicago, USA]



Question: 8

(A) 100
(B) 90
(C) 81
(D) 80

Forum
Beginner operators[Posted by: Admin | Chicago, USA]



Question: 9

(A) 100
(B) 90
(C) 99
(D) 72

Forum
Beginner variables[Posted by: Admin | Chicago, USA]



Question: 10

(A) 138
(B) 264
(C) 41
(D) 25

Forum
Beginner operators[Posted by: Admin | Chicago, USA]



Question: 11

(A) -
(B) +
(C) *

Forum
Beginner operators[Posted by: Admin | Chicago, USA]



Question: 12

(A) |
(B) ^
(C) ~
(D) <->

Forum
Beginner operators[Posted by: Admin | Chicago, USA]



Question: 13

(A) Left Shift Operator
(B) Right Shift Operator
(C) Zero Fill Right Shift
(D) Zero Fill Left Shift

Forum
Expert operators[Posted by: Admin | Chicago, USA]



Question: 14

(A) ()
(B) ++
(C) *
(D) >=

Forum
Beginner operators[Posted by: Admin | Chicago, USA]



Question: 15

(A) ()
(B) *
(C) +
(D) ++

Forum
Beginner operators[Posted by: Admin | Chicago, USA]



Question: 16

(A) >=
(B) <=
(C) !=
(D) +=

Forum
Beginner operators[Posted by: Admin | Chicago, USA]



Question: 17

(A) Local variables are declared in methods, constructors, or blocks
(B) Local variables are created when the method, constructor or block is entered
(C) the variable will be destroyed once it exits the method, constructor, or block
(D) We can't create reference variables of Local variables

Forum
Beginner variables[Posted by: Admin | Chicago, USA]



Question: 18

(A) Windows
(B) Mac OS
(C) UNIX
(D) All of these

Forum
Beginner other[Posted by: Admin | Chicago, USA]



Question: 19

(A) True
(B) False

Forum
Beginner variables[Posted by: Admin | Chicago, USA]



Question: 20

(A) True
(B) False

Forum
Beginner methods[Posted by: Admin | Chicago, USA]



Question: 21

(A) default
(B) public
(C) protected
(D) All of these

Forum
Practitioner other[Posted by: Admin | Chicago, USA]



Question: 22

(A) True
(B) False

Forum
Beginner methods[Posted by: Admin | Chicago, USA]



Question: 23

(A) byte
(B) short
(C) long
(D) class

Forum
Beginner datatype[Posted by: Admin | Chicago, USA]



Question: 24

(A) 5
(B) 4
(C) 1
(D) 0

Forum
Beginner loops[Posted by: Admin | Chicago, USA]



Question: 25

(A) 5
(B) 4
(C) 3
(D) 2

Forum
Beginner loops[Posted by: Admin | Chicago, USA]



Question: 26

(A) 5
(B) 4
(C) 3
(D) 2

Forum
Practitioner loops[Posted by: Admin | Chicago, USA]



Question: 27

(A) 1
(B) 2
(C) 3
(D) 4

Forum
Practitioner loops[Posted by: Admin | Chicago, USA]



Question: 28

(A) 0
(B) 1
(C) 2
(D) 3

Forum
Practitioner loops[Posted by: Admin | Chicago, USA]



Question: 29

(A) 0
(B) 1
(C) 2
(D) Infinite times

Forum
Practitioner loops[Posted by: Admin | Chicago, USA]



Question: 30

(A) 5
(B) 4
(C) 3
(D) 0

Forum
Practitioner loops[Posted by: Admin | Chicago, USA]



Question: 31

(A) 5
(B) 4
(C) 2
(D) 1

Forum
Practitioner loops[Posted by: Admin | Chicago, USA]



Question: 32

(A) 5
(B) 10
(C) 0
(D) Compilation Error

Forum
Beginner conditional[Posted by: Admin | Chicago, USA]



Question: 33

(A) 5
(B) 10
(C) 510
(D) Compilation Error

Forum
Practitioner conditional[Posted by: Admin | Chicago, USA]



Question: 34

(A) 5
(B) 510
(C) 5100
(D) Compilation Error

Forum
Expert conditional[Posted by: Admin | Chicago, USA]



Question: 35

(A) 5
(B) 510
(C) 5100
(D) 100

Forum
Expert conditional[Posted by: Admin | Chicago, USA]



Question: 36

(A) 5
(B) 10
(C) 100
(D) 0

Forum
Practitioner conditional[Posted by: Admin | Chicago, USA]



Question: 37

(A) 10
(B) 510
(C) 5100
(D) 100

Forum
Expert conditional[Posted by: Admin | Chicago, USA]



Question: 38

(A) Compilation Error
(B) 10-even-
(C) 10-even-0
(D) 10-odd

Forum
Expert conditional[Posted by: Admin | Chicago, USA]



Question: 39

(A) Compilation Error
(B) 10-even-
(C) 10-odd-
(D) 10-even-0

Forum
Expert conditional[Posted by: Admin | Chicago, USA]



Question: 40

(A) Compilation Error
(B) Length is 5-10
(C) Length not in 5-10
(D) nothing is printed

Forum
Practitioner conditional[Posted by: Admin | Chicago, USA]



Question: 41

(A) "cpp''buzz"
(B) "cpp''buzz"
(C) cpp''buzz
(D) "cpp' 'buzz"

Forum
Expert other[Posted by: Admin | Chicago, USA]



Question: 42

(A) 10"10"
(B) Compilation Error
(C) 20
(D) 1010

Forum
Practitioner variables[Posted by: Admin | Chicago, USA]



Question: 43

(A) 10-10
(B) 0
(C) 1010
(D) Compilation Error

Forum
Practitioner variables[Posted by: Admin | Chicago, USA]



Question: 44

(A) 10+10
(B) 1010
(C) Compilation Error
(D) Undefined

Forum
Practitioner variables[Posted by: Admin | Chicago, USA]



Question: 45

(A) 0
(B) 10"-10"
(C) 10-10
(D) Compilation Error

Forum
Expert variables[Posted by: Admin | Chicago, USA]



Question: 46

(A) 30
(B) 1020
(C) 10+10+10
(D) 1010+10

Forum
Expert variables[Posted by: Admin | Chicago, USA]



Question: 47

(A) Compiler
(B) Class Loader
(C) Byte Code Verifier
(D) Java Virtual Machine

Forum
Beginner other[Posted by: Admin | Chicago, USA]



Question: 48

(A) Editing -> Compilation -> Class Loader -> Bytecode Verifier -> Execution
(B) Editing -> Bytecode Verifier -> Compilation -> Class Loader -> Execution
(C) Editing -> Compilation -> Bytecode Verifier -> Class Loader -> Execution
(D) None of the above

Forum
Beginner other[Posted by: Admin | Chicago, USA]



Question: 49

(A) friends
(B) friend
(C) fr
(D) compilation Error

Forum
Beginner loops[Posted by: ASISH ARAVIND | Des Moines USA]



Question: 50

(A) True
(B) False

Forum
Beginner other[Posted by: Admin | Chicago, USA]


[Contribute to this Website]

Browse Java Categories

Datatype Variables Operators Decision Making Loops Methods Reference Variables Arrays Classes and Objects Abstract Class Singleton Class Modifiers Inheritance Overriding Polymorphism Abstraction Encapsulation Files and I/O TypeCasting Packages Exceptions Collections Framework Numbers Class Date & Time Regular Expressions Data Structures Interfaces Multithreading Other