Teachers and Examiners (CBSESkillEduction) collaborated to create the Fundamentals of Java Class 12 MCQ. All the important Information are taken from the NCERT Textbook Information Technology (802) class 12.
Fundamentals of Java Class 12 MCQ
1. JVM Stands for ___________.
a. Java Virtual Machine
b. Java Verify Machine
c. Java Vector Machine
d. None of the above
2. Java programs are _____________.
a. Platform Independent
b. Highly Portable
c. Both a) and b)
d. None of the above
3. Java support __________.
a. Compiler
b. Interpreter
d. Assembler
e. None of the above
4. Java converts the program in __________.
a. Byte
b. Megabyte
c. Bytecode
d. None of the above
Fundamentals of Java Class 12 MCQ
5. IDE Stands for __________.
a. Integrated Developer Environments
b. Integrated Development Environments
c. Internal Developer Environments
d. Internal Development Environments
6. Java NetBeans IDE is ________ software.
a. Close source
b. Middle source
c. Open Source
d. None of the above
7. How we can write comments in Java programs.
a. Two forward slashes (//)
b. /* and */
c. Both a) and b)
d. None of the above
8. In Java a group of related classes is known as _______.
a. Group
b. Package
c. Method
d. None of the above
9. In Java most common pre-built Java output methods are ___________.
a. System.out.println();
b. Public class
c. Public static void main(String[] args)
d. None of the above
Fundamentals of Java Class 12 MCQ
10. A Variable is a placeholder for data that can change its value during program execution.
a. Constant
b. Variable
c. Data type
d. None of the above
11. In Java, How many types of primitive Data Type.
a. 6
b. 7
c. 8
d. 9
12. In Java, Which type of datatype is used to store Integer values.
a. Byte
b. Int
c. Long
d. All of the above
13. Int Data Type can store ________ bit of data.
a. 8-bit
b. 16-bit
c. 32-bit
d. 64-bit
14. Float Data Type can store ________ bit of data.
a. 8-bit
b. 16-bit
c. 32-bit
d. 64-bit
Fundamentals of Java Class 12 MCQ
15. Double Data Type can store ________ bit of data.
a. 16-bit
b. 32-bit
c. 64-bit
d. 8-bit
16. Char Datatype can store _________ bit of data.
a. 16-bit
b. 32-bit
c. 64-bit
d. 8-bit
17. Boolean Data Type can store _________ bit of data.
a. 16-bit
b. 32-bit
c. 1-bit
d. 8-bit
18. What are the naming rules we have to follow to declare a variable.
a. Variable names can begin with either an alphabetic character, Underscore or a dollar sign.
b. Space are not allowed in variable names
c. Reserved words cannot be used as a variable name
d. All of the above
19. To store more than one character, we use the _______ data type.
a. Integer
b. Character
c. String
d. None of the above
Fundamentals of Java Class 12 MCQ
20. ___________ are special symbols in a programming language and perform certain specific operations.
a. Operators
b. Variable
c. Datatype
d. None of the above
21. ++ is known as which operator.
a. Increment Operator
b. Decrements Operator
c. Assignment Operator
d. Modulus
22. Which of the following belongs to logical operators.
a. &&
b. ||
c. !
d. All of the above
23. Which of the following is an example of selection structures.
a. If else statement
b. Switch statement
c. Else if statement
d. All of the above
24. The __________ in Java lets us execute a block of code depending upon whether an expression evaluates to true or false.
a. If statements
b. For statements
c. Array Statements
d. None of the above
Fundamentals of Java Class 12 MCQ
25. To combine two relational expressions in a program.
a. Logical OR
b. Logical AND
c. Logical NOT
d. None of the above
26. If inside the if is known as _________.
a. Outer If
b. Inner If
c. Nested If
d. All of the above
27. The ____________ is used to execute a block of code matching one value out of many possible values.
a. If statement
b. Switch Statement
c. For Statement
d. None of the above
28. The ability of a computer to perform the same set of actions again and again is called looping.
a. Looping
b. Actioning
c. Performing
d. None of the above
29. What are the different looping statements available in Java?
a. For loop
b. While loop
c. Do-while loop
d. All of the above
Fundamentals of Java Class 12 MCQ
30. The ________ statement evaluates the test before executing the body of a loop.
a. Goto
b. While loop
c. Do-while loop
d. All of the above
31. The __________ statement evaluates the test after executing the body of a loop.
a. Goto
b. While loop
c. Do-while loop
d. All of the above
32. _________ is known as the entry control loop.
a. While loop
b. Do-while loop
c. Goto loop
d. All of the above
33. __________ is known as the exit control loop.
a. While loop
b. Do-while loop
c. Goto loop
d. All of the above
34. Which condition required for executing the loop –
a. Initial value
b. Condition
c. Counter
d. All of the above
Fundamentals of Java Class 12 MCQ
35. __________ are variables that can hold more than one value, they can hold a list of values of the same type.
a. Loop
b. Constant
c. Variable
d. None of the above
36. __________ helps to create a tab between the numbers in the print statement.
a. \tt
b. \t
c. \tb
d. \tab
37. Array addresses always start from _________.
a. 0
b. 1
c. 2
d. 3
38. OOP Stands for ____________.
a. Object Oriented Programming
b. Outer Oriented Programming
c. Outer Object Programming
d. Oriented Object Programming
39. Java’s most fundamental features are _________.
a. Class
b. Objects
c. Both a) and b)
d. None of the above
Fundamentals of Java Class 12 MCQ
40. Function declared inside the class is known as __________.
a. Member function
b. Inner function
c. Outer function
d. None of the above
41. The body of class is enclosed within ____________.
a. Small braces
b. Curly braces
c. Big braces
d. None of the above
42. The variable declared outside the class is known as ___________.
a. Local variable
b. Global variable
c. Inner variable
d. All of the above
43. The variable declared inside the class is known as __________.
a. Local variable
b. Global variable
c. Inner variable
d. All of the above
44. __________ is a data member that is declared but not initialized before using, and is assigned a default value by the compiler, usually either zero or null.
a. Class
b. Object
c. Constructors
d. None of the above
Fundamentals of Java Class 12 MCQ
45. __________ has the same name as the class.
a. Class
b. Object
c. Constructors
d. None of the above
46. Data members and method members of an object are accessed using the _________ operator.
a. Comma (,)
b. Dot (.)
c. Modular (%)
d. Dollar ($)
47. Data members of a class can be accessed from outside the class by default. Identify the access modifiers from the below list __________.
a. Private
b. Public
c. Protected
d. All of the above
48. Private data members of a class cannot be accessed outside the class however, you can give controlled access to data members outside the class through ____________.
a. Getter
b. Setter
c. Both a) and b)
d. None of the above
49. To import the class from the package, you have to use ____________ keyword.
a. Insert
b. Import
c. Add
d. None of the above
Fundamentals of Java Class 12 MCQ
50. We can take input from the user using ___________ object.
a. Scanner
b. System.out.println();
c. Both a) and b)
d. None of the above
51. _________ function helps to convert string value to the integer value in Java.
a. parseInt();
b. parseDouble()
c. parseString();
d. None of the above
52. To sort the array of integers in ascending order _______ function required.
a. Arrange()
b. Filter()
c. Sort()
d. None of the above
53. __________ function helps to convert all of the characters in lower case.
a. toLowerCase()
b. toSmallCase()
c. to BelowCase()
d. None of the above
54. __________ function helps to convert all the characters in Upper case.
a. toUpperCase()
b. toCaptialCase()
c. touppercase()
d. None of the above
Fundamentals of Java Class 12 MCQ
55. __________ function helps to return a new string after replacing all occurrences of old string.
a. replace()
b. Change()
c. Convert()
d. None of the above
56. ________ function helps to return the length of the string.
a. replace()
b. isEmpty()
c. indexOf()
d. None of the above
57. _______ function helps to return the index of the first occurrence of a given substring.
a. length()
b. isEmpty()
c. indexOf()
d. None of the above
58. When unexpected errors come in the program it is handled by ___________.
a. Error handling
b. Exception handling
c. Both a) and b)
d. None of the above
Fundamentals of Java Class 12 MCQ
60. Which keywords handle an exception in Java programming.
a. Try
b. Catch
c. Both a) and b)
d. None of the above
61. _________ helps to access the network services that are running on the local computer.
a. Localhost
b. Local Network
c. network
d. None of the above
62. What are the different ways to create threads in Java?
a. By extending the Thread class
b. By implementing the Runnable interface
c. Both a) and b)
d. None of the above
63. A ______________ is one that can perform multiple tasks concurrently so that there is optimal utilization of the computer’s resources.
a. Resources program
b. Multithreaded program
c. Class program
d. None of the above
64. What are the different types of passing values in Java?
a. Pass by value & not Pass by reference
b. Pass by data & Pass by address
c. Pass by String & Pass by reference
d. None of the above
Fundamentals of Java Class 12 MCQ
65. What are the basic idea in exception handling ____________.
a. Denote an exception block
b. Catch the exception
c. Handle the exception
d. All of the above
66. ___________ a file format based on the popular ZIP file format and is used for aggregating many files into one.
a. Java ARchive (JAR)
b. Java Bin (JB)
c. Java Method (JM)
d. None of the above
67. JDBC Stands for ___________.
a. Java Data Connection
b. Java Database Connection
c. Java Database Connectivity
d. Java Data Connectivity
68. An ___________ is a useful mechanism for effectively identifying/detecting and correcting logical errors in a program. When developing your Java programs.
a. Database
b. Assertion
c. Archive
d. None of the above
Employability Skills Class 12 Notes
- Communication Skills Class 12 Notes
- Self Management Skills Class 12 Notes
- Basic ICT Skills Class 12 Notes
- Entrepreneurial Skills Class 12 Notes
- Green Skills Class 12 Notes
Employability Skills Class 12 MCQ
- Communication Skills Class 12 MCQ
- Self Management Skills Class 12 MCQ
- ICT Skills Class 12 MCQ
- Entrepreneurship Class 12 MCQ
- Green Skills Class 12 MCQ
Employability Skills Class 12 Questions and Answers
- Communication Skills Class 12 Questions and Answers
- Self Management Skills Class 12 Questions and Answers
- ICT Skills Class 12 Notes Questions and Answers
- Entrepreneurship Skills Class 12 Questions and Answers
- Green Skills Class 12 Questions and Answers
Information Technology Class 12 802 Notes
Information Technology Class 12 802 MCQ
- Database Concepts Class 12 MCQ
- Operating Web Class 12 MCQ
- Fundamentals of Java Class 12 MCQ
Information Technology Class 12 802 Questions and Answers