0% found this document useful (0 votes)
370 views

Object Oriented Programming Using Java Bca 6 Sem Assignment 01

This document contains an MCQ quiz on Object Oriented Programming using Java. It asks 30 multiple choice questions about Java fundamentals like its creator (Sun Microsystems), features (platform independence), components (Java Virtual Machine), and constructs (variables, loops, operators). It also lists short answer and long answer questions about Java topics to explain further.
Copyright
© © All Rights Reserved
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
370 views

Object Oriented Programming Using Java Bca 6 Sem Assignment 01

This document contains an MCQ quiz on Object Oriented Programming using Java. It asks 30 multiple choice questions about Java fundamentals like its creator (Sun Microsystems), features (platform independence), components (Java Virtual Machine), and constructs (variables, loops, operators). It also lists short answer and long answer questions about Java topics to explain further.
Copyright
© © All Rights Reserved
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 5

Object Oriented Programming using Java

BCA 6th sem Assignment 01


MCQ
1 Java is developed by ___________________
a)Sun Microsystems of USA b) Microsoft
c)Adobe d) None

2 ________________ is one of the inventors of Java.


a) Dannis Ritchie b) James Gosling
c) Bjarne Straustrup d) Balagurusamy

3 ____________ is one of the java features that enables java program to run anywhere
anytime.
a)Object-Oriented b) Multithreaded
c)Platform-Independent d) Dynamic & Extensible

4 _____________ is one of the java features that can handle multiple tasks
simultaneously.
a)Object-Oriented b) Dynamic & Extensible
c)Platform-Independent d) Multithreaded

5 Java compiler translates source code into _____________


a) Bytecode (Virtual Machine Code) b) Bitcode
c) Machine Code d) User code

6 Java interpreter translates _____________ into machine code.


a) Bitcode b) Bytecode(Virtual Machine Code)
c) Machine Code d) User code
7 Java compiler produces an intermediate code known as _____________
a)Bitcode b) Machine Code
c)Bytecodes d) User code

8 ____________ tool helps us to find errors in our programs.


a)jhelp b) javah
c)javap d) jdb

10 The java interpreter uses ____________ method before any objects are created.
a)Class b) Main
c)Constructor d) All of above

12 ____________ is reserved keyword in java.


a)Abstract b) Extends
b)Package d) All of above

13 Java provides extensive set of classes, arranged in ___________.


a)Package b) Library file
c)Template class d) None

14 The process of converting one date type to another is called__________


a)Translating b) Casting
c)Compiling d) Declaring

15 Java does not support ______________.


a)Operator overloading b) Global variable
c)Multiple inheritance d) All of above

16 Casting from byte to __________ data type, the result is no loss information.
a)short b) int
c)long d) all of above

18 ___________ refer to fix value that does not change during the execution of a program.
a)variables b) constants
c)identifiers d) integer

19 ____________ operators are used to construct mathematical expression as in algebra.


a)Relational b) Mathematical
c)Arithmetic d) Logical

20 Which constraint must be considered at the time of variable declaration?


a)It should not be keyword b) It must not begin with digit
c)White space not allowed d) All of above

21 The comparisons can be done with help of ____________ operator.


a)Relational b) Mathematical
c)Arithmetic d) Assignment

22 Which of the following is not assignment operator?


a)+= b) = =
c)%= d) =

23 _____________ operator is used to construct conditional expression.


a)Dot(.) b) instanceof
c)Ternary(?:) d) None

24 Which statement is use to terminate loop early?


a)terminate b) continue
c)skip d) break
25 Which statement is use to skip the loop and continue with the next iteration?
a)continue b) terminate
c)skip d) break

26 _________ is a group of contiguous or related data items that share a common name.
a)Variable b) Array
c)Constant d) none

27 Which of the following is the correct declaration statement in java program?


a) int num=new int[5] b) int num=new num[5]
c) int[] num=new int[5] d) None

28 Java __________________.
a)Only compiles b) Only interprets
c)Compiles and then interprets d) Interprets & then compiles

29 JVM stands for __________________


a)Java Virtual Method b) Java Virtual Machine
c)Java Variable & Methods d) Java Versatile Machine

Short Questions
1 Java is platform-independent and portable. - Justify.
2 Java is distributed language – Justify.
3 Java is dynamic and extensible language - Justify.
4 What is JVM (Java Virtual Machine)?
5 List out Java development tools and explain any one from it.
6 List out Java API and define any one of it.
7 Draw the Java program structure.
8 Write down the rules for variable naming.
9 What is meaning of automatic type conversion?
10 List out the types of operators used in Java.
11 How can you use ternary operator?
12 Define the break and continue statements.
13 List out the features of Java.
14 List the primitive and non-primitive data types used in Java.
15 Write the syntax of any one of the following loops – while, do...while, for loop.

Long Questions
1 What is Java? Explain the features of Java.
2 Describe the Java environment.
3 Explain the structure of Java program.
4 Explain the data types available in Java.
5 Explain type casting with example.
6 Explain the scope of variable.
7 List out the decision-making statements available in Java. Explain with example.
8 List out the looping statements available in Java. Explain with example.
9 Explain break and continue statements with example.
10 List out the operators. Explain anyone in detail.

You might also like