CBSE Class 12 Computer Science Java Basics MCQs Set E

CBSE Class 12 Computer Science Java Basics MCQs Set E 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: Upper case and lower case letters are considered to be_____

  • a) Same
  • b) Similar
  • c) Different
  • d) Related

Answer: Different


Question: In Java, it is customary for names of_____to begin with upper case letters.

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

Answer: Classes


Question: In Java, it is customary for names of_____to begin with lower case letters.

  • a) Variables
  • b) Methods
  • c) Comments
  • d) Both (A) and (B)

Answer: Both (A) and (B)


Question: Which of the following is not a good programming style for declaring variables ?

  • a) Declare ten variables in a declaration statement
  • b) Include a comment with each variable declaration to explain its purpose
  • c) Declare important variables at the beginning of the function
  • d) None of these

Answer: Declare ten variables in a declaration statement


Question: In Java, there are_____kinds of variables.

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

Answer: Three


Question: Which of the following is a kind of variable in Java ?

  • a) Instance variable
  • b) Class variable
  • c) Local variable
  • d) All of these

Answer: All of these


Question: Function parameters and variables declared in the function are considered as_____variables.

  • a) External
  • b) Internal
  • c) Local
  • d) Limited

Answer: Local


Question: Each variable can be given a____value while declaring.

  • a) Initial
  • b) Last
  • c) Cumulative
  • d) Opening

Answer: Initial


Question: In general, syntax of declaring variables is______

  • a){variable =,};
  • b){variable [=,]};
  • c) type name {variable [=,]};
  • d){variable [=,]}

Answer: {variable [=,]};


Question: In variable declaration syntax, the_____denotes optional item.

  • a) Curly brackets { }
  • b) Square brackets [ ]
  • c) Angle brackets < >
  • d) Round brackets ()

Answer: Square brackets [ ]


Question: It is programmer's responsibility to assign value to____before their first use.

  • a) Variables
  • b) Methods
  • c) Comments
  • d) Both (A) and (B)

Answer: Variables


Question: A name used for a constant value is known as

  • a) Data types
  • b) Variables
  • c) Literals
  • d) Comments

Answer: Literals


Question: There are some different kinds of_____in Java for number, character, string and Boolean values.

  • a) Data types
  • b) Variables
  • c) Literals
  • d) Comments

Answer: Literals


Question: ____are used to represent integer or real numbers; for example, 157 and 17.42.

  • a) Numeric Variables
  • b) Numeric Literals
  • c) Integer Literals
  • d) Character Literals

Answer: Numeric Literals


Question: Java allows Unicode integer literals called Decimal whose base is______

  • a) 10
  • b) 8
  • c) 16
  • d) 32

Answer: 10


Question: Java allows Unicode integer literals called Octal whose base is______.

  • a) 10
  • b) 8
  • c) 16
  • d) 32

Answer: 8


Question: A decimal integer larger than int is automatically of type_____

  • a) Short
  • b) Long
  • c) Float
  • d) Mixed

Answer: Long


Question: _____integers such as 4, 157, 17777 and -32 are decimal integer literals of type byte, short or int depending on their size.

  • a) Ordinary
  • b) Simple
  • c) Complicated
  • d) Real

Answer: Ordinary


Question: ______integers such as 4, 157, 17777 and -32 are decimal integer literals of type byte, short or int depending on their size.

  • a) Ordinary
  • b) Simple
  • c) Complicated
  • d) Real

Answer: Ordinary


Question: Java allows Unicode integer literals called Hexadecimal whose base is______

  • a) 10
  • b) 8
  • c) 16
  • d) 32

Answer: 16


Question: The user can force a smaller number to be long by appending an_____as a suffix to that number.

  • a) S or s
  • b) A or a
  • c) L or l
  • d) M or m

Answer: L or l


Question: ____integers are preceded by a minus (-) sign,for example, -45.

  • a) Positive
  • b) Real
  • c) Large
  • d) Negative

Answer: Negative


Question: _____numbers use only the digits 0 through 7. In Java, a numeric literal with a leading 0 (zero) is interpreted as an octal number.

  • a) Hexadecimal
  • b) Octal
  • c) Decimal
  • d) Real

Answer: Octal


Question: _______numbers use 16 digits, the usual digits 0 to 9 and the letters A, B, C, D, E, and F.

  • a) Hexadecimal
  • b) Octal
  • c) Decimal
  • d) Real

Answer: Hexadecimal


Question: In Hexadecimal, the letters _______ represent the numbers 10 to 15 respectively.

  • a) A to E
  • b) A to G
  • c) A to F
  • d) A to D

Answer: A to F


Question: In Java, a______literal begins with Ox or OX.

  • a) Hexadecimal
  • b) Octal
  • c) Decimal
  • d) Real

Answer: Hexadecimal


Question: Examples of______literals are 0x45 or 0xFF7A.

  • a) Hexadecimal
  • b) Octal
  • c) Decimal
  • d) Real

Answer: Hexadecimal


Question: _____numbers are also used in character literals to represent arbitrary Unicode characters.

  • a) Hexadecimal
  • b) Octal
  • c) Decimal
  • d) Real

Answer: Hexadecimal


Question: A_____literal consists of \u followed by four hexadecimal digits.

  • a) Hexacode
  • b) Unicode
  • c) Byte code
  • d) None of these

Answer: Unicode


Question: Which of the following is error free ?

  • a) For(;;) { int i=10 };
  • b) While (1) { int i=10 };
  • c) While (True) { int i=10 };
  • d) All of these

Answer: All of these

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 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
CBSE Class 12 Computer Science Classes and Objects In Java MCQs Set D
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 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
CBSE Class 12 Computer Science File Handling MCQs Set E
File System
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
CBSE Class 12 Computer Science File System MCQs Set D
CBSE Class 12 Computer Science File System MCQs Set E
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 H
CBSE Class 12 Computer Science Publishing Documents Using Latex MCQs Set A
CBSE Class 12 Computer Science Publishing Documents Using Latex MCQs Set B
CBSE Class 12 Computer Science Publishing Documents Using Latex MCQs Set D
CBSE Class 12 Computer Science Publishing Documents Using Latex MCQs Set C
CBSE Class 12 Computer Science Publishing Documents Using Latex MCQs Set E
CBSE Class 12 Computer Science Publishing Documents Using Latex MCQs Set F
CBSE Class 12 Computer Science Publishing Documents Using Latex MCQs Set G

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

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

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

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

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

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

×
Studies Today