CppBuzz.com
  
Home C C++ Java Python Perl PHP SQL Javascript Linux Forum

You are here : Home » Java » Java Multiple Choice Questions For Beginners

Java Multiple Choice Questions For Beginners - 98


Question: 1

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

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



Question: 2

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

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



Question: 3

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

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



Question: 4

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

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



Question: 5

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

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



Question: 6

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

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



Question: 7

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

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



Question: 8

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

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



Question: 9

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

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



Question: 10

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

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



Question: 11

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

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



Question: 12

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

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



Question: 13

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

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



Question: 14

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

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



Question: 15

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

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



Question: 16

(A) True
(B) True

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



Question: 17

(A) True
(B) True

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



Question: 18

(A) True
(B) True

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



Question: 19

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

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



Question: 20

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

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



Question: 21

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

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



Question: 22

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

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



Question: 23

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

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



Question: 24

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

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



Question: 25

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

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



Question: 26

(A) True
(B) True

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



Question: 27

(A) True
(B) True

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



Question: 28

(A) 12345
(B) 12345
(C) 124
(D) 135

DiscussOnForum
Beginner arrays[Posted by: Admin | Chicago, USA]



Question: 29

(A) 12345
(B) 12345
(C) 1
(D) Infinite times

DiscussOnForum
Beginner arrays[Posted by: Admin | Chicago, USA]



Question: 30

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

DiscussOnForum
Beginner arrays[Posted by: Admin | Chicago, USA]



Question: 31

(A) 12345
(B) 12345
(C) 22222
(D) 14385

DiscussOnForum
Beginner arrays[Posted by: Admin | Chicago, USA]



Question: 32

(A) abcde
(B) abcde
(C) Compilation Error
(D) Some Garbage Value

DiscussOnForum
Beginner arrays[Posted by: Admin | Chicago, USA]



Question: 33

(A) 0
(B) 0
(C) -10
(D) Garbage Value

DiscussOnForum
Beginner classesAndobjects[Posted by: Admin | Chicago, USA]



Question: 34

(A) Garbage Value
(B) Garbage Value
(C) null
(D) 0

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



Question: 35

(A) Garbage Value
(B) Garbage Value
(C) Undefind
(D) Compilation Error

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



Question: 36

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

DiscussOnForum
Beginner classesAndobjects[Posted by: Admin | Chicago, USA]



Question: 37

(A) 5
(B) 5
(C) Error: Can't assign a value to final variable a
(D) None of the above

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



Question: 38

(A) 0
(B) 0
(C) Undefind
(D) Error: Can't modify final variable a

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



Question: 39

(A) 5
(B) 5
(C) 0
(D) Error: variable a might already have been assigned

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



Question: 40

(A) 1
(B) 1
(C) Compilation Error
(D) Infinite times

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



Question: 41

(A) 0
(B) 0
(C) Infinite Times
(D) Error: Unreachable Statement

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



Question: 42

(A) Infinite times
(B) Infinite times
(C) 1 time
(D) error: unreachable statement

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



Question: 43

(A) Infinite times
(B) Infinite times
(C) 1
(D) error: unreachable statement

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



Question: 44

(A) 0
(B) 0
(C) Infinite Times
(D) Compilation Error

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



Question: 45

(A) 00
(B) 00
(C) 0-2
(D) -2

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



Question: 46

(A) 32136
(B) 32136
(C) 12336
(D) 63321

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



Question: 47

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

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



Question: 48

(A) Yes
(B) Yes

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



Question: 49

(A) 123
(B) 123
(C) 12340
(D) Compilation Error

DiscussOnForum
Beginner typecasting[Posted by: Admin | Chicago, USA]



Question: 50

(A) 1234.34
(B) 1234.34
(C) .1234.00
(D) NumberFormatException

DiscussOnForum
Beginner typecasting[Posted by: Admin | Chicago, USA]



Question: 51

(A) Compilation Error
(B) Compilation Error
(C) 10
(D) 1

DiscussOnForum
Beginner typecasting[Posted by: Admin | Chicago, USA]



Question: 52

(A) 10.0f
(B) 10.0f
(C) 10
(D) 10.00

DiscussOnForum
Beginner typecasting[Posted by: Admin | Chicago, USA]



Question: 53

(A) Compilation Error
(B) Compilation Error
(C) Sun
(D) SunMoon

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



Question: 54

(A) hi
(B) hi
(C) error: sum() has private access
(D) Exception

DiscussOnForum
Beginner classesAndobjects[Posted by: Admin | Chicago, USA]



Question: 55

(A) hi
(B) hi
(C) Nothing is printed
(D) Exception

DiscussOnForum
Beginner classesAndobjects[Posted by: Admin | Chicago, USA]



Question: 56

(A) hi
(B) hi
(C) Exception
(D) None of the above

DiscussOnForum
Beginner classesAndobjects[Posted by: Admin | Chicago, USA]



Question: 57

(A) hi
(B) hi
(C) Exception
(D) None of the above

DiscussOnForum
Beginner classesAndobjects[Posted by: Admin | Chicago, USA]



Question: 58

(A) hi
(B) hi
(C) Exception
(D) None of the above

DiscussOnForum
Beginner classesAndobjects[Posted by: Admin | Chicago, USA]



Question: 59

(A) hi
(B) hi
(C) Exception
(D) None of the above

DiscussOnForum
Beginner classesAndobjects[Posted by: Admin | Chicago, USA]



Question: 60

(A) Inheritance increases execution of program
(B) Inheritance increases execution of program
(C) Inheritance minimizes programming loop holes
(D) None of the above

DiscussOnForum
Beginner inheritance[Posted by: Admin | Chicago, USA]



Question: 61

(A) extends is a datatype
(B) extends is a datatype
(C) extends is a class
(D) extend is a package

DiscussOnForum
Beginner inheritance[Posted by: Admin | Chicago, USA]



Question: 62

(A) 0
(B) 0
(C) Compilation Error
(D) Exception

DiscussOnForum
Beginner inheritance[Posted by: Admin | Chicago, USA]



Question: 63

(A) It CAN be accessed from ANYWHERE
(B) It CAN be accessed from ANYWHERE
(C) It can be accessed from the same file
(D) It can be access from the same project

DiscussOnForum
Beginner modifiers[Posted by: Admin | Chicago, USA]



Question: 64

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

DiscussOnForum
Beginner inheritance[Posted by: Admin | Chicago, USA]



Question: 65

(A) It is visible to same project
(B) It is visible to same project
(C) It is visible to same file
(D) All of these

DiscussOnForum
Beginner modifiers[Posted by: Admin | Chicago, USA]



Question: 66

(A) 1
(B) 1
(C) 3
(D) Max 256

DiscussOnForum
Beginner classesAndobjects[Posted by: Admin | Chicago, USA]



Question: 67

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

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



Question: 68

(A) Yes
(B) Yes

DiscussOnForum
Beginner exceptions[Posted by: Admin | Chicago, USA]



Question: 69

(A) -100
(B) -100
(C) Exception since catch is missing
(D) Exception since finally is missing

DiscussOnForum
Beginner exceptions[Posted by: Admin | Chicago, USA]



Question: 70

(A) Yes
(B) Yes

DiscussOnForum
Beginner exceptions[Posted by: Admin | Chicago, USA]



Question: 71

(A) Arrays are passed by Value
(B) Arrays are passed by Value
(C) It depends on type of array
(D) It depends on Compiler

DiscussOnForum
Beginner arrays[Posted by: Admin | Chicago, USA]



Question: 72

(A) Yes
(B) Yes

DiscussOnForum
Beginner abstractclass[Posted by: Admin | Chicago, USA]



Question: 73

(A) It is an Keyword
(B) It is an Keyword
(C) It is a Class
(D) None of the above

DiscussOnForum
Beginner abstractclass[Posted by: Admin | Chicago, USA]



Question: 74

(A) Compilation Error
(B) Compilation Error
(C) 1
(D) 0

DiscussOnForum
Beginner collection[Posted by: Admin | Chicago, USA]



Question: 75

(A) True
(B) True

DiscussOnForum
Beginner collection[Posted by: Admin | Chicago, USA]



Question: 76

(A) 22
(B) 22
(C) 11
(D) 21

DiscussOnForum
Beginner collection[Posted by: Admin | Chicago, USA]



Question: 77

(A) True
(B) True

DiscussOnForum
Beginner packages[Posted by: Admin | Chicago, USA]



Question: 78

(A) True
(B) True

DiscussOnForum
Beginner packages[Posted by: Admin | Chicago, USA]



Question: 79

(A) True
(B) True

DiscussOnForum
Beginner packages[Posted by: Admin | Chicago, USA]



Question: 80

(A) Yes
(B) Yes

DiscussOnForum
Beginner overriding[Posted by: Admin | Chicago, USA]



Question: 81

(A) NullPointerException
(B) NullPointerException
(C) ClassCastException
(D) ParseException

DiscussOnForum
Beginner exceptions[Posted by: Admin | Chicago, USA]



Question: 82

DiscussOnForum
Beginner exceptions[Posted by: Admin | Chicago, USA]



Question: 83

(A) abstract is a keyword
(B) abstract is a keyword
(C) abstract is a class
(D) All of these

DiscussOnForum
Beginner interfaces[Posted by: Admin | Chicago, USA]



Question: 84

(A) Heap
(B) Heap
(C) Cache
(D) Register

DiscussOnForum
Beginner referencevar[Posted by: Admin | Chicago, USA]



Question: 85

(A) throws
(B) throws
(C) catch
(D) throw

DiscussOnForum
Beginner exceptions[Posted by: Arvind | Navi Mumbai India]



Question: 86

(A) finally
(B) finally
(C) finally & catch
(D) none of the mentioned

DiscussOnForum
Beginner exceptions[Posted by: Arvind | Navi Mumbai India]



Question: 87

(A) java.io
(B) java.io
(C) java.lang
(D) java.net

DiscussOnForum
Beginner exceptions[Posted by: Arvind | Navi Mumbai India]



Question: 88

(A) 0
(B) 0
(C) runtime error
(D) compile time error

DiscussOnForum
Beginner other[Posted by: Arvind | Navi Mumbai India]



Question: 89

(A) a
(B) a
(C) a and both
(D) Neither a nor b

DiscussOnForum
Beginner other[Posted by: Arvind | Navi Mumbai India]



Question: 90

(A) 10
(B) 10
(C) Error in Code
(D) Nothing is printed

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



Question: 91

(A) [7,1,5]
(B) [7,1,5]
(C) [7, 1, 5, 1]
(D) None of the above

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



Question: 92

(A) Pen Pencil Box
(B) Pen Pencil Box
(C) Box
(D) Compilation Error

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



Question: 93

(A) join
(B) join
(C) getPriority
(D) isAlive

DiscussOnForum
Beginner multithreading[Posted by: Admin | Chicago, USA]



Question: 94

DiscussOnForum
Beginner multithreading[Posted by: Admin | Chicago, USA]



Question: 95

DiscussOnForum
Beginner multithreading[Posted by: Admin | Chicago, USA]



Question: 96

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



Question: 97

DiscussOnForum
Beginner exceptions[Posted by: Admin | Chicago, USA]



Question: 98

DiscussOnForum
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 Serialization Multithreading Networking Sending Email Applet Basics Other