CBSE Class 12 Computer Science Java Basics MCQs Set G

CBSE Class 12 Computer Science Java Basics MCQs Set G 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: A block statement is a group of statement enclosed between a pair of______braces.

  • a) { and }
  • b) < and >
  • c) ( and )
  • d) [ and ]

Answer: { and }


Question: A______declared inside a block is completely inaccessible and invisible from OUtSlde that block.

  • a) Variable
  • b) Name
  • c) Integer
  • d) Number

Answer: Variable


Question: The_______of a variable defined inside a block is limited to that block only.

  • a) Area
  • b) Locality
  • c) Scope
  • d) Range

Answer: Scope


Question: The_____when used in a program enables to take one of two alternative courses of action, depending on whether the value of a given Boolean-valued expression is true or false.

  • a) Else Statement
  • b) If Statement
  • c) While
  • d) Do....while

Answer: If Statement


Question: _____is an example of a "branching" or "decision" or "selective" control structure.

  • a) Switch statement
  • b) If statement
  • c) While
  • d) Do....while

Answer: If statement


Question: A_____is used when there are many alternative actions to be taken depending upon the value of a variable or expression.

  • a) Switch Statement
  • b) If Statement
  • c) While
  • d) Do....while

Answer: Switch Statement


Question: In the________the test expression should be of the type byte, char, short or int. It can also be of enum data type.

  • a) Switch Statement
  • b) If Statement
  • c) While
  • d) Do....while

Answer: Switch Statement


Question: Java supports_____Types of looping constructs.

  • a) One
  • b) Two
  • c) Three
  • d) Four

Answer: Three


Question: Which of the following is a type of looping construct in Java ?

  • a) For
  • b) While
  • c) Do...while
  • d) All of these

Answer: All of these


More Questions...........................


Question: The_______statement is used to transfer the control outside switch or loop structure.

  • a) For
  • b) While
  • c) Continue
  • d) Break

Answer: Break


Question: In a loop______statement is used to exit the loop.

  • a) For
  • b) While
  • c) Continue
  • d) Break

Answer: Break


Question: Use of______statement is used to skip the following statements in a loop and continue with the next iteration.

  • a) For
  • b) While
  • c) Continue
  • d) Break

Answer: Continue


Question: ______of same or different types can be nested in Java.

  • a) Loops
  • b) Controls
  • c) Charts
  • d) Structures

Answer: Loops


Question: If the programmer wants to control which loop to break and which loop to reiterate_______can be used.

  • a) Labeled Controls
  • b) Labelled Loops
  • c) Named Controls
  • d) Named Loops

Answer: Labelled Loops


Question: To use a labelled loop, add the label followed by_____before the loop.

  • a) Semi Colon (;)
  • b) Colon (:)
  • c) Full stop (.)
  • d) All of these

Answer: Colon (:)


Question: The default value of Boolean type data is_____

  • a) True
  • b) False
  • c) 0
  • d) 1

Answer: False


Question: What will be the result of arithmetic expression 11/2 ?

  • a) 5
  • b) 5.5
  • c) 1
  • d) 0

Answer: 5.5


Question: 11%2 will give the output as_______

  • a) 5
  • b) 5.5
  • c) 1
  • d) 0

Answer: 1


Question: ______character set is used for char data type in Javj

  • a) Unicode
  • b) EBCIDIC
  • c) ASCII
  • d) All of these

Answer: Unicode


Question: What will be the output of the expressio 5*(6+2) 11 ?

  • a) 19
  • b) 20
  • c) 21
  • d) 22

Answer: 20

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 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
CBSE Class 12 Computer Science Classes and Objects In Java MCQs Set C
Creating HTML Forms Using KompoZer
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
CBSE Class 12 Computer Science Creating HTML Forms Using KompoZer MCQs Set H
Designing Simple Website Using Kompozer
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
CBSE Class 12 Computer Science Designing Simple Website Using Kompozer MCQs Set A
Exception Handling In Java
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
CBSE Class 12 Computer Science Exception Handling In Java MCQs Set C
File Handling
CBSE Class 12 Computer Science File Handling MCQs Set F
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
CBSE Class 12 Computer Science File Handling MCQs Set E
CBSE Class 12 Computer Science File Handling MCQs Set A
File System
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
CBSE Class 12 Computer Science File System MCQs Set B
CBSE Class 12 Computer Science File System MCQs Set C
Introduction To E Commerce
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
CBSE Class 12 Computer Science Introduction To E Commerce MCQs Set D
Introduction To M Commerce
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
CBSE Class 12 Computer Science Introduction To M Commerce MCQs Set E
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 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
CBSE Class 12 Computer Science Publishing Documents Using Latex MCQs Set D

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

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...

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...

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...

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...

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...

×
Studies Today