CBSE Class 12 Computer Science Java Basics MCQs Set B

CBSE Class 12 Computer Science Java Basics MCQs Set B with answers available in Pdf for free download. The MCQ Questions for Class 12 Computer Science with answers have been prepared as per the latest syllabus, NCERT books and examination pattern suggested in Standard 12 by CBSE, NCERT and KVS. Multiple Choice Questions are an important part of exams for Grade 12 Computer Science and if practiced properly can help you to get higher marks. Refer to more Chapter-wise MCQs for NCERT Class 12 Computer Science and also download more latest study material for all subjects

Java Basics Class 12 Computer Science MCQ

Class 12 Computer Science students should refer to the following multiple-choice questions with answers for Java Basics in standard 12. These MCQ questions with answers for Grade 12 Computer Science will come in exams and help you to score good marks

Java Basics MCQ Questions with Answers

Question: _______________can provide much more than just a collection of data.

  • a) Functions
  • b) Classes
  • c) Programs
  • d) Variables

Answer: Classes


Question: Note that__________is not available in Java.

  • a) Type def
  • b) Struct
  • c) Both (A) and (B)
  • d) All of these

Answer: Both (A) and (B)


Question: Java source file can be created using any plain_______text editor.

  • a) Native
  • b) Original
  • c) ASCII
  • d) Binary

Answer: ASCII


Question: Java_____files are given the same name as the class defined with an extension of Java.

  • a) Beginning
  • b) Destination
  • c) Source
  • d) Binary

Answer: Source


Question: In Java the_______name is case sensitive.

  • a) Folder
  • b) Class
  • c) First
  • d) Last

Answer: Class


Question: In Java the______name is case sensitive.

  • a) File
  • b) Folder
  • c) First
  • d) Last

Answer: File


Question: If class name is CallCost, filename should be

  • a) callcost
  • b) callcost.java
  • c) callCost.java
  • d) callcosT.java

Answer: callCost.java


Question: The source file is compiled using the_______compiler.

  • a) S Cite
  • b) C++
  • c) Basic
  • d) Java

Answer: Java


Question: To compile the Java program, type________followed by the name the source file

  • a) javac
  • b) JavaC
  • c) Java
  • d) cjava

Answer: javac


Question: When the program gets compiled without errors, compiler created a file with extension________in the same directory as the source file

  • a) .Java
  • b) .javac
  • c) .class
  • d) .javaclass

Answer: .class

Question: The programmer can run the application using Java______

  • a) Compiler
  • b) Translator
  • c) Interpreter
  • d) None of these

Answer: Interpreter


Question: In_______the Java interpreter is called by simply using Java

  • a) JDK
  • b) JKD
  • c) JDD
  • d) JKK

Answer: JDK


Question: Which of the following variable declarations is correct ?

  • a) Double balance
  • b) Double rate
  • c) Double duration
  • d) Double cost

Answer: Double rate


Question: Java source program file should have extension

  • a) Java
  • b) .javac
  • c) .class
  • d) .javaclass

Answer: Java


Question: The name of_______is same as the class name containing main method and it has an extension .class.

  • a) Interpreted file
  • b) Code file
  • c) Compiled file
  • d) byte code file

Answer: byte code file


Question: A________'Java' interprets byte code and excuses it.

  • a) Compiler
  • b) Translator
  • c) Interpreter
  • d) None of these

Answer: Interpreter


Question: The texts after________are comments.

  • a) //
  • b) \\
  • c) // //
  • d) \\ \\

Answer: //


Question: The text enclosed within_________are comments.

  • a) /& and &/
  • b) /* and */
  • c) /* and *\
  • d) //* and *//

Answer: /* and */


Question: Comments are not compiled or interpreted

  • a) Codes
  • b) Classes
  • c) Comments
  • d) Methods

Answer: Comments


Question: Variables are declared using___________followed by variable name

  • a) Data type
  • b) Int
  • c) Char
  • d) Float

Answer: Data type


Question: Several___________(also called function or method in Java) call statements are used to display information to the user of the program

  • a) Super routine
  • b) Subroutine
  • c) Sub program
  • d) None of these

Answer: Subroutine


Question: Computation part contains expressions including assignment___________

  • a) Sentences
  • b) Numerical
  • c) Operators
  • d) Statements

Answer: Statements


Question: ____________are used to display results.

  • a) Methods
  • b) Classes
  • c) Outputs
  • d) Prints

Answer: Methods


Question: System.out.print and System.out.println are_________which take a value to be displayed as an argument.

  • a) Methods
  • b) Classes
  • c) Outputs
  • d) Prints

Answer: Methods


Question: ___________adds a line feed after the end of the information that it displays.

  • a) out.print
  • b) out.prindnt
  • c) output.print
  • d) output.println

Answer: out.prindnt


Question: When the program is run, the Java interpreter calls the__________method and the statements that it contains are executed.

  • a) Main()
  • b) String[]
  • c) string[] args
  • d) main()

Answer: main()


Question: The___________routine can call other subroutines that are defined in the same class or even in other classes.

  • a) Main()
  • b) String[]
  • c) string[] args
  • d) main()

Answer: main()


Question: It is the_________routine that determines how and in what the other subroutines are used.

  • a) Main()
  • b) String[]
  • c) string[] args
  • d) main()

Answer: main()


Question: The word in the first line of main() means that this routine can be called from outside the program

  • a) private
  • b) Public
  • c) public
  • d) Private

Answer: public


Question: This is essential because the main() routine is called by the Java interpreter, which is__________to the program

  • a) External
  • b) Internal
  • c) Outside
  • d) Inside

Answer: External

Tags: 

 


Click for more Computer Science Study Material
Cascading Style Sheets and JavaScript
CBSE Class 12 Computer Science Cascading Style Sheets and JavaScript MCQs Set A
CBSE Class 12 Computer Science Cascading Style Sheets and JavaScript MCQs Set B
CBSE Class 12 Computer Science Cascading Style Sheets and JavaScript MCQs Set C
CBSE Class 12 Computer Science Cascading Style Sheets and JavaScript MCQs Set D
Classes and Objects In Java
CBSE Class 12 Computer Science Classes and Objects In Java MCQs Set C
CBSE Class 12 Computer Science Classes and Objects In Java MCQs Set D
CBSE Class 12 Computer Science Classes and Objects In Java MCQs Set A
CBSE Class 12 Computer Science Classes and Objects In Java MCQs Set B
Creating HTML Forms Using KompoZer
CBSE Class 12 Computer Science Creating HTML Forms Using KompoZer MCQs Set H
CBSE Class 12 Computer Science Creating HTML Forms Using KompoZer MCQs Set B
CBSE Class 12 Computer Science Creating HTML Forms Using KompoZer MCQs Set I
CBSE Class 12 Computer Science Creating HTML Forms Using KompoZer MCQs Set C
CBSE Class 12 Computer Science Creating HTML Forms Using KompoZer MCQs Set D
CBSE Class 12 Computer Science Creating HTML Forms Using KompoZer MCQs Set E
CBSE Class 12 Computer Science Creating HTML Forms Using KompoZer MCQs Set F
CBSE Class 12 Computer Science Creating HTML Forms Using KompoZer MCQs Set G
CBSE Class 12 Computer Science Creating HTML Forms Using KompoZer MCQs Set A
Designing Simple Website Using Kompozer
CBSE Class 12 Computer Science Designing Simple Website Using Kompozer MCQs Set A
CBSE Class 12 Computer Science Designing Simple Website Using Kompozer MCQs Set C
CBSE Class 12 Computer Science Designing Simple Website Using Kompozer MCQs Set B
CBSE Class 12 Computer Science Designing Simple Website Using Kompozer MCQs Set D
Exception Handling In Java
CBSE Class 12 Computer Science Exception Handling In Java MCQs Set C
CBSE Class 12 Computer Science Exception Handling In Java MCQs Set D
CBSE Class 12 Computer Science Exception Handling In Java MCQs Set A
CBSE Class 12 Computer Science Exception Handling In Java MCQs Set B
File Handling
CBSE Class 12 Computer Science File Handling MCQs Set E
CBSE Class 12 Computer Science File Handling MCQs Set F
CBSE Class 12 Computer Science File Handling MCQs Set A
CBSE Class 12 Computer Science File Handling MCQs Set B
CBSE Class 12 Computer Science File Handling MCQs Set C
CBSE Class 12 Computer Science File Handling MCQs Set D
File System
CBSE Class 12 Computer Science File System MCQs Set B
CBSE Class 12 Computer Science File System MCQs Set C
CBSE Class 12 Computer Science File System MCQs Set D
CBSE Class 12 Computer Science File System MCQs Set E
CBSE Class 12 Computer Science File System MCQs Set F
CBSE Class 12 Computer Science File System MCQs Set A
Introduction To E Commerce
CBSE Class 12 Computer Science Introduction To E Commerce MCQs Set D
CBSE Class 12 Computer Science Introduction To E Commerce MCQs Set E
CBSE Class 12 Computer Science Introduction To E Commerce MCQs Set A
CBSE Class 12 Computer Science Introduction To E Commerce MCQs Set B
CBSE Class 12 Computer Science Introduction To E Commerce MCQs Set C
Introduction To M Commerce
CBSE Class 12 Computer Science Introduction To M Commerce MCQs Set E
CBSE Class 12 Computer Science Introduction To M Commerce MCQs Set F
CBSE Class 12 Computer Science Introduction To M Commerce MCQs Set G
CBSE Class 12 Computer Science Introduction To M Commerce MCQs Set A
CBSE Class 12 Computer Science Introduction To M Commerce MCQs Set H
CBSE Class 12 Computer Science Introduction To M Commerce MCQs Set B
CBSE Class 12 Computer Science Introduction To M Commerce MCQs Set C
CBSE Class 12 Computer Science Introduction To M Commerce MCQs Set D
Java Basics
CBSE Class 12 Computer Science Java Basics MCQs Set A
CBSE Class 12 Computer Science Java Basics MCQs Set B
CBSE Class 12 Computer Science Java Basics MCQs Set F
CBSE Class 12 Computer Science Java Basics MCQs Set C
CBSE Class 12 Computer Science Java Basics MCQs Set G
CBSE Class 12 Computer Science Java Basics MCQs Set D
CBSE Class 12 Computer Science Java Basics MCQs Set E
Object Oriented Concepts
CBSE Class 12 Computer Science Object Oriented Concepts MCQs Set D
CBSE Class 12 Computer Science Object Oriented Concepts MCQs Set E
CBSE Class 12 Computer Science Object Oriented Concepts MCQs Set A
CBSE Class 12 Computer Science Object Oriented Concepts MCQs Set B
CBSE Class 12 Computer Science Object Oriented Concepts MCQs Set C
Publishing Documents Using Latex
CBSE Class 12 Computer Science Publishing Documents Using Latex MCQs Set D
CBSE Class 12 Computer Science Publishing Documents Using Latex MCQs Set E
CBSE Class 12 Computer Science Publishing Documents Using Latex MCQs Set A
CBSE Class 12 Computer Science Publishing Documents Using Latex MCQs Set F
CBSE Class 12 Computer Science Publishing Documents Using Latex MCQs Set B
CBSE Class 12 Computer Science Publishing Documents Using Latex MCQs Set G
CBSE Class 12 Computer Science Publishing Documents Using Latex MCQs Set C
CBSE Class 12 Computer Science Publishing Documents Using Latex MCQs Set H

Latest NCERT & CBSE News

Read the latest news and announcements from NCERT and CBSE below. Important updates relating to your studies which will help you to keep yourself updated with latest happenings in school level education. Keep yourself updated with all latest news and also read articles from teachers which will help you to improve your studies, increase motivation level and promote faster learning

Score well in Class 12 English Boards Exam

12th Board exams are an important part of students' lives. The marks obtained in the board exam decide the college in which one can study. In class 12 the syllabus of each and every subject increases vastly and it is difficult to cover up every point. In English also...

How To Solve Unseen Passages In English

Unseen passages may contain one or many paragraphs. This is one of the important yet easy parts for a student to get marks. Students should thoroughly study and understand the passage to answer the related questions. The unseen passages are there just to test the...

MCQ Question based CBSE examination

For 2021-22 CBSE has launched MCQ question-based examination for Term 1 & Term 2 board examinations. The entire syllabus has been divided into two parts each including 50% of the entire syllabus. To score well, students must practice as per the new CBSE term-wise...

Moderation of Marks Class 11 and 12 Board Exams

The portal for moderation and finalization of results for Class-12 is being opened from 16.07.2021 to 22.07.2021. As Board has to declare the result latest by 31.07.2021, schools have been requested to follow the schedule strictly and complete the moderation within...

CBSE Board Examination Scheme of Assessment 2021 2022

A. Academic session to be divided into 2 Terms with approximately 50% syllabus in each term: The syllabus for the Academic session 2021-22 will be divided into 2 terms by following a systematic approach by looking into the interconnectivity of concepts and topics by...

CBSE Class 10 Revised Syllabus

Last year CBSE had to reduce the syllabus because of the pandemic situation but it was not very effective because there were no examinations. This year to avoid any confusion and conflict, CBSE has decided to reduce the syllabus into term 1 and term 2. 50 percent of...

×
Studies Today