Most Important MCQs for Class 12 GSEB: A Detailed Guide , Part -2

12 MOST IMP MCQS

Instructions:

  1. There are 100 questions in this question paper. All questions are compulsory.
  2. Select the proper option to complete the correct statement.
  3. The OMR sheet is given for answering the questions. The answer for each question is represented by (A), (B), (C), (D). Darken the circle of the correct answer with a ball-pen.
  4. Each question carries 1 mark.
  5. Rough work is to be done in the space provided in the booklet only.
  6. Read the questions carefully before you answer.
  7. The set number of the question paper is printed on the upper right side of the paper and must be written in the column provided in the OMR sheet.

Multiple Choice Questions (MCQs)

1) In Java, which of the following classes can be used to get input from the keyboard when the input is to be typed in hidden form?
(A) java.util.Scanner
(B) java.util.Console
(C) java.io.Console
(D) java.io.FileReader


2) Which type of polymorphism is achieved when the same operation is given different meanings depending on the data type of operands used?
(A) Method overloading
(B) Operator overloading
(C) Aggregation
(D) Composition


3) Which of the following websites is not a proper example of an online bookstore?
(A) www.makemytrip.com
(B) www.buybooksindia.com
(C) www.amazon.com
(D) shopping.indiatimes.com


4) Which kind of variables are of basic data types and can store only one value at a time?
(A) Array variables
(B) 1-D variables
(C) 2-D variables
(D) Scalar variables


5) In Java, what will be the value of the variable next, where next = (N % 2 == 0) ? (N / 2) : (3 * N + 1) and N is 9?
(A) 4.5
(B) 9
(C) 28
(D) Error


6) Which of the following HTTP methods does not have any restrictions on data length?
(A) Set
(B) Put
(C) Get
(D) Post


7) Which of the following is the original file format of Rational Rose viewer?
(A) .java
(B) .xgr
(C) .class
(D) .html


8) Which of the following is a card payment mechanism launched by NPCI?
(A) MasterCard
(B) Visa Card
(C) Google Pay
(D) RuPay


9) In KompoZer, which one of the following dialog boxes will be opened when we click on Form → Text Area option from the menu?
(A) Text Area of Form
(B) Text Area Properties
(C) Form Field Properties
(D) Advanced Edit Properties


10) Which of the following is not a benefit of M-Commerce?
(A) Provides global reach
(B) Conducts business 24×7
(C) Timely information can reach the user
(D) It offers a limited bandwidth


11) Which tab is available in the ‘Insert Table’ dialog box of KompoZer?
(A) Location
(B) Settings
(C) Precisely
(D) Table

12) In Java, which of the following determines the required memory size, type of values, range of values, and type of operations that can be performed?
(A) Variables
(B) Data types
(C) Comments
(D) Arithmetic operators


13) In Java, which of the following are the construction of classes that incorporate other objects?
(A) Variables and literals
(B) new keyword and class keyword
(C) Accessor and mutator methods
(D) Composition and aggregation


14) In JavaScript, which of the following functions returns true if the value is not-a-number and false if the value is a number?
(A) alert()
(B) validateForm()
(C) length()
(D) isNaN()


15) In Java, which of the following is not a proper example of common syntax errors?
(A) Mismatch of bracket
(B) Use of undeclared variable
(C) An attempt to divide any number by 0
(D) Wrong spelling of identifier or keyword


16) Which of the following is an event handler of the submit event?
(A) submit()
(B) submiton()
(C) onsubmit()
(D) onclick()


17) In Java, which method of the Date class returns the number of milliseconds since January 1, 1970, GMT?
(A) Date(long elapsedTime)
(B) long getTime()
(C) Date()
(D) void setTime(long elapsedTime)


18) In LaTeX, which document class is used for generating presentations similar to office suites using the beamer package?
(A) beamer
(B) slides
(C) letter
(D) book


19) In which property of OOP, only the object that “owns” the data can change its content?
(A) Encapsulation
(B) Data abstraction
(C) Messaging
(D) Aggregation


20) In Java, which of the following can be used in a method declaration or constructor declaration to inform that the code within the constructor or method may throw an Exception?
(A) catch block
(B) finally block
(C) throws clause
(D) throw statement


21) Which class of Java can be used to access attributes of files like file permissions, length of a file, and last modification time?
(A) Writer Class
(B) File Class
(C) Scanner Class
(D) Console Class


22) In the Publish Page dialog box of KompoZer, in which field of the website should the actual web address or URL be specified?
(A) Site name
(B) Publishing server
(C) User name
(D) HTTP address of your homepage


23) Which of the following are data centres that perform credit card transactions and settle funds to the merchant?
(A) Issuing banks
(B) Acquiring banks
(C) Processors
(D) Payment Gateways


24) Which of the following is a complete web authoring system that integrates web page development and web file management?
(A) Menu bar
(B) HTML
(C) KompoZer
(D) CSS


25) In Java, in a switch statement, which of the following statements will be executed when no match is found?
(A) break
(B) default
(C) continue
(D) exit


26) In which of the following, the lifetime of the part class depends on the existence of the owner class?
(A) Abstraction
(B) Polymorphism
(C) Composition
(D) Aggregation


27) In which section of a UML diagram are the behaviors or methods or operations of a class available?
(A) Top section
(B) Bottom section
(C) Middle section
(D) Left section


28) In Java, which type of object must be present to create an exception object and throw it explicitly, otherwise a compile error occurs?
(A) java.lang.Throwable
(B) java.util.Throwable
(C) java.Throwable
(D) java.Throwable.Exception


29) Which of the following blocks in Java contains the code that we want to monitor for exceptions?
(A) catch block
(B) try block
(C) finally block
(D) throws clause


30) In Java, which of the following is the same as q = q && p?
(A) qqp
(B) qq-p
(C) qq+p
(D) q = q && p


31) In the CSS Stylesheets dialog box, which button should be clicked after selecting a selector from the drop-down menu to create a style rule?
(A) Create style rule
(B) Advanced Edit
(C) General
(D) Internal stylesheet


32) Which of the following LaTeX commands provides text in bold letters?
(A) \text b
(B) \text bold
(C) \text bold face
(D) \text bf


33) Which command of LaTeX is used to represent the mathematical symbol “≠”?
(A) \neq
(B) \pm
(C) \mp
(D) \geq


34) In Java, which property of a 1-D array is used to know the size of each row?
(A) size
(B) length
(C) sort
(D) fill


35) In Java, which constant of the Calendar class will display the day number in the year?
(A) DAY_OF_YEAR
(B) DAY_OF_MONTH
(C) DAY_OF_WEEK


36) What is the full form of CA?
(A) Chief Accountant
(B) Certification Authority
(C) Channel Authority
(D) Certified Accountant


37) In the CSS Stylesheets dialog box of KompoZer, which of the following tabs is not available?
(A) General
(B) Style
(C) Aural
(D) Box


38) In Java, which logical operator results in a complemented result?
(A) NOT
(B) AND
(C) OR
(D) XOR


39) Which of the following helps in creating and using archive files for backup, for transfer via an external storage device, or for transfer via a network?
(A) VLC Media Player
(B) Character Map
(C) Google Maps
(D) Archive Manager


40) In Java, which of the following returns a reference to an object that represents an instance of the class?
(A) Super
(B) New keyword
(C) Extends
(D) Class keyword


41) Which protection in Java becomes more relevant when using the inheritance concept of object-oriented programming?
(A) Public
(B) Private
(C) Protected
(D) Package


42) In Java, which method of the Scanner class scans the next token of the input as a line?
(A) string next()
(B) boolean hasNext()
(C) int nextLine()
(D) string nextLine()


43) In Java, which of the following blocks is always executed before the program ends, regardless of whether any exceptions are generated in the try block or not?
(A) Throw statement
(B) Throws clause
(C) Catch block
(D) Finally block


44) Which of the following symbols is used to begin a comment in LaTeX?
(A) /*
(B) %
(C) //
(D) #


45) In Java, which of the following is the proper syntax to define a class?
(A) <class name>
{
<variables>
<methods>
}
(B) <object name>
{
<variables>
<methods>
}
(C) new <object name>
{
<variables>
<methods>
}
(D) class <class name>
{
<variables>
<methods>
}


46) Which of the following open-source IDEs is a complete web development environment, providing language support for HTML, CSS, JavaScript, Ruby, Rails, PHP, Python, and many more?
(A) KompoZer
(B) Aptana Studio
(C) Blue Griffon
(D) Amaya


47) In Java, which of the following methods sorts the elements of array list from list[1] to list[5-1]?
(A) sort(list)
(B) java.sort(list)
(C) java.util.Arrays.sort(list, 1, 5)
(D) java.util.sort(list, 5)


48) In Java, which method of the File class returns an array of abstract path names denoting the files in the directory?
(A) String[] list()
(B) long length()
(C) File[] listFiles()
(D) String getPath()


49) In Java, which of the following are useful when the same operations are to be performed on various elements of a similar type?
(A) Operators
(B) Arrays
(C) Files
(D) Comments


50) In Java, which of the following is an invalid variable name?
(A) S_price
(B) birthDate
(C) top_5_students
(D) 5students


51) Which of the following is the transformation of plain text into unreadable or cipher text using an encryption algorithm?
(A) Digital certificate
(B) Encryption
(C) Decryption
(D) Digital watermarking


52) By using which of the following E-Commerce business models can the sharing of information help in reducing IT costs, streamline procedures, and make government offices more efficient?
(A) G2B
(B) G2G
(C) G2C
(D) B2C


53) In Java, instance variables and instance methods are referred by using which operator?
(A) dot (.) operator
(B) plus (+) operator
(C) Hyphen (-) operator
(D) Under score() operator

Correct Answer: (A) dot (.) operator
Explanation: The dot (.) operator is used to access instance variables and methods of a class in Java.


54) In Java, which of the following is a proper example of initializing a 1-D array?
(i) int marks[3] = {90,100,110};
(ii) int marks[] = {90,100,110};
(iii) int[] marks = {90,100,110};
(A) only (i)
(B) (i) and (ii)
(C) (i) and (iii)
(D) (ii) and (iii)


55) Which of the following describes a group of objects with similar attributes and common behavior?
(A) Variables
(B) Objects
(C) Procedural programming
(D) Class


56) In Java, how many integer values can be stored using the following array?
int marks[][] = new int[4][4];
(A) 4
(B) 16
(C) 8
(D) 64


57) Which of the following describes the style of the elements in the document and not its content?
(A) CSS
(B) HTML
(C) JavaScript
(D) HTTP Methods


58) In Java, which of the following cannot be invoked explicitly elsewhere in the program?
(A) class
(B) constructor
(C) class variables
(D) display() method

Here are the arranged questions with options:


59) In KompoZer window, which of the following toolbars is available at the bottom right side of the window?
(A) Status bar
(B) Site manager
(C) Edit mode toolbar
(D) Composition toolbar


60) Which of the following properties should be supported by object-oriented programming language?
(A) Abstraction, encapsulation, polymorphism, inheritance
(B) Aggregation, composition, inheritance, abstraction
(C) Generalization, abstraction, inheritance, polymorphism
(D) Abstraction, composition, polymorphism, inheritance


61) Which of the following symbols represents ‘package’ visibility?
(A) #
(B) +


62) Which of the following is the default view of Google Map?
(A) Satellite view
(B) Map view
(C) 3-D view
(D) Realistic view


63) In LaTex, which of the following is the very first element in the preamble?
(A) date
(B) \documentclass (document class name)
(C) \author
(D) \chapter


64) In Java, which of the following 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) Switch statement
(B) For loop
(C) While loop
(D) If-statement


65) In Java, which escape code represents ‘carriage return’?
(A) \n
(B) \r
(C) \t
(D) \f


66) In Java, how many arguments are required to fill a partial array?
(A) 2
(B) 3
(C) 4
(D) 5


67) In which kind of commerce, the retail merchant with their years of experience create the store design which helps the customer to purchase a product?
(A) E-Commerce
(B) M-Commerce
(C) L-Commerce
(D) Traditional Commerce


68) In KompoZer, which of the following menu options is used to give a suitable color to the text?
(A) Format → Change text color
(B) Edit → Text color
(C) Format → Text color
(D) File → Change text color


69) Which object of Browser Object Model (BOM) is created automatically by the browser?
(A) frame
(B) form
(C) document
(D) window


70) Which of the following adds interactivity to HTML pages and is inserted directly into the HTML code?
(A) CSS
(B) JavaScript
(C) Java
(D) Oracle


71) In Java, in which steps of object creation is the constructor called to initialize the newly created object?
(A) Declaration
(B) Instantiation
(C) Initialization
(D) Modification


72) Which of the following types of <Input> element is generally used to select a single item from a given group of items?
(A) Radio
(B) Checkbox
(C) Text
(D) Reset


73) In Java, which of the following is a correct syntax of do... while loop?
(A) do {statements} (exp);
(B) do (exp) {statements} while;
(C) do (exp1; exp2; exp3) {statements};
(D) do {statement 1} while (exp);


74) In Java, which of the following allows us to build a new class with added capabilities by extending an existing class?
(A) Accessor method
(B) Mutator method
(C) Inheritance
(D) Constructor


75) Which of the following methods of string class in Java returns true if the invoking string is the same as str after ignoring case?
(A) boolean equalsIgnoreCase (string str)
(B) int compareTo (string str)
(C) boolean equals (string str)
(D) int length()


76) Which of the following examples represents multilevel inheritance?
(A) date 1 – date 2 and n1 – n2
(B) Motherboard is a part of a computer
(C) Employee is a kind of person and teacher is an employee
(D) Call to a method


77) Which of the following E-Commerce business models enables businesses to form an E-relationship with their suppliers, distributors, and other agents?
(A) B2B
(B) B2C
(C) C2B
(D) C2C


78) Which E-Commerce business model enables consumers to directly deal with each other through online auctions and classified advertisements without the involvement of a third party?
(A) B2C
(B) C2B
(C) B2B
(D) C2C


79) Which of the following commands is used to compile a Java program?
(A) run
(B) javac
(C) execute
(D) java


80) In Java, which kind of variables are allocated memory from the heap area when an object is created?
(A) Instance variables
(B) Local variables
(C) Class variables
(D) Global variables


81) Which of the following security aspects of M-Commerce ensures that the sender of the message cannot deny that he/she has sent the message?
(A) Confidentiality
(B) Integrity
(C) Non-repudiation
(D) Authorization


82) In CSS stylesheets dialog box of KompoZer, which tab is used to keep an image in the background?
(A) Background
(B) General
(C) Borders
(D) Aurals


83) In Java, which kind of files contain data that can be read in a text editor because the data has been encoded using a scheme such as ASCII or Unicode?
(A) Text files
(B) Binary files
(C) Image files
(D) Audio files


84) In VLC Media Player, which menu option is used to open a playlist?
(A) View Playlist
(B) File → Open → Playlist
(C) View → Open Playlist
(D) File → Open Media Playlist


85) In the Image Properties dialog box of KompoZer, which tab shows the radio button with ‘Alternate text’ option?
(A) Link
(B) Location
(C) Dimensions
(D) Appearance


86) In KompoZer, if we want any option of the radio button selected when the form is loaded, then which checkbox should be ticked?
(A) Initially checked
(B) Initially selected
(C) Read only
(D) Advanced edit


87) Which of the following is a valuable tool for businesses and other organizations when composed of the right material?
(A) Audience
(B) WYSIWYG tools
(C) Images
(D) Website


88) Which of the following is an advantage of E-Commerce?
(A) Resistance to change
(B) Security
(C) Privacy
(D) Teamwork


89) In KompoZer, which of the following menu options is used to open the recently opened file?
(A) File → Open
(B) File → Recently Opened Files
(C) File → Recent File
(D) File → Recent Pages


90) In Java, which code indicates that some problem occurred while executing the command?
(A) Exit code: 0
(B) Exit code: 1
(C) Exit code: -1
(D) Exit code: -2


91) In LaTeX, which character is used to denote a non-breaking space?
(A) %
(B) {}
(C) ~ (tilde)


92) Which part of Java looks for unused objects and reclaims the memory that those objects are using?
(A) new keyword
(B) heap area
(C) constructor
(D) garbage collector


93) Which of the following is not an important point to be considered while developing a good website?
(A) Content
(B) Medium
(C) Table size
(D) Purpose


94) In the following statement of JavaScript, what is the object name? document.write("Hello world");
(A) document.write()
(B) write()
(C) document
(D) Hello world


95) Which of the following events would occur when loading of image is cancelled?
(A) Cancel
(B) Abort
(C) Change
(D) Blur


96) In KompoZer, which option of the Table tab, in the Table properties dialog box, shows the number of rows, columns, and height and width of the table?
(A) Size
(B) Borders and spacing
(C) Table alignment
(D) Caption


97) Which one of the following services is not available with online banking?
(A) Deposit money through cheque
(B) Obtain statement for any credit or debit
(C) Find status of a transaction
(D) Check account balance anytime


98) In KompoZer, which tab displays the HTML source of the current element?
(A) Design
(B) Source
(C) Split
(D) Preview


99) Which of the following programs can be used to enter Unicode characters into any application?
(A) Google Maps
(B) Skype
(C) Archive Manager
(D) Character Map


100) In Java, which method of file writer class writes the lower 16 bits of ‘c’ to the stream?
(A) void write (int c)
(B) void write (string s)
(C) boolean write (int c)
(D) string write (int c)


Leave a Reply

Your email address will not be published. Required fields are marked *