GSEB Class 12 Computer Question Paper March 2015 (For Science Stream)

By solving the Computer Class 12 GSEB Solutions and GSEB Class 12 Computer Question Paper March 2015 (For Science Stream) will be able to know the exam pattern in the exam.

GSEB Std 12 Computer Question Paper March 2015 (For Science Stream)

Question 1.
What will be output of following program ?
GSEB Class 12 Computer Question Paper March 2015 (For Science Stream) 1
(A) error
(B) i
(C) Display 1 to 10
(D) 1, 2, 3, 10
Answer:
(A) error

Question 2.
Java class is generally made up of which components ?
(A) Behaviour, variable
(B) Attributes, behaviour
(C) Name, attributes
(D) Name, variable
Answer:
(B) Attributes, behaviour

Question 3.
A variable declared using class type can store what to an object ?
(A) Relation
(B) Root
(C) Rate
(D) Reference
Answer:
(D) Reference

Question 4.
In object oriented programming languages, creating an object is also called as what ?
(A) Object instantiation
(B) Oriented installation
(C) Installation
(D) Project installation
Answer:
(A) Object instantiation

Question 5.
Modern word processing software operates in which of the following mode ?
(A) WYSIWYG
(B) WISYWYG
(C) WIGIWIS
(D) WISWYG
Answer:
(A) WYSIWYG

Question 6.
Which of the following character is used to mark a comment in LaTeX ?
(A) %
(B) &
(C) $
(D) #
Answer:
(A) %

GSEB Class 12 Computer Question Paper March 2015 (For Science Stream)

Question 7.
Which of the following commands generate the Set Union symbol in LaTeX ?
(A) \ union
(B) \ cap
(C) \ cup
(D) \setunion
Answer:
(C) \ cup

Question 8.
In LaTeX, square root of a number x is denoted by following command ?
(A) \ sqrt [ x ]
(B) \ sqrt { x }
(C) \ sqrt < x >
(D) \ sqrt ( x )
Answer:
(B) \ sqrt { x }

Question 9.
What is an indication of a problem that occurs during a program’s execution, it usually signals an error ?
(A) Exact
(B) Extraction
(C) Exception
(D) Expectation
Answer:
(C) Exception

Question 10.
Which type of file you are not able to create when there is a syntax error in the program and we get a compilation error ?
(A) . txt
(B) . Html
(C) . Java
(D) . class
Answer:
(D) . class

Question 11.
Which of the following is example of common syntax error ?
(A) Only missing semicolon.
(B) Both missing semicolon and use of undeclared variable.
(C) Missing semicolon.
(D) Use of undeclared variable.
Answer:
(B) Both missing semicolon and use of undeclared variable.

Question 12.
A compiler is used to convert source code into what ?
(A) Object code
(B) ASCII code
(C) Scite code
(D) Text code
Answer:
(A) Object code

GSEB Class 12 Computer Question Paper March 2015 (For Science Stream)

Question 13.
Which file class method is used to return the number of bytes in that file ?
(A) long byte ( )
(B) long file ( )
(C) long number ( )
(D) long length ( )
Answer:
(D) long length ( )

Question 14.
Which class is the base for writing a character stream ?
(A) Impress
(B) Writer
(C) Calc
(D) Draw
Answer:
(B) Writer

Question 15.
What occurs when there is a failed I/O operation in writer class ?
(A) IO Base
(B) IO throw
(C) IO Class
(D) IO Exception
Answer:
(D) IO Exception

Question 16.
Which abstract class defines the functionality that is available for all character input stream ?
(A) Text class
(B) Void class
(C) Reader class
(D) Writer class
Answer:
(C) Reader class

Question 17.
Which File Input Stream method is used to read a byte of data from this input stream ?
(A) void read ( )
(B) read void ( )
(C) void close ( )
(D) int read ( )
Answer:
(D) int read ( )

Question 18.
Java uses which keyword to write an exception handler ?
(A) catch, finally, block
(B) try, catch, except
(C) try, except, catch
(D) try, catch, finally
Answer:
(D) try, catch, finally

GSEB Class 12 Computer Question Paper March 2015 (For Science Stream)

Question 19.
Which block contains the code that is intended to handle exceptions of a particular type that were created in the associated try block ?
(A) Catch
(B) Handle
(C) Try
(D) Blk
Answer:
(A) Catch

Question 20.
Which of the following is syntax to throw an exception object ?
(A) throws exception_object ;
(B) throw exception_object ;
(C) Exceptionthrow object ;
(D) throwexception object_throw ;
Answer:
(B) throw exception_object ;

Question 21.
Which type of storage values store in variables are lost when computer is shutdown ?
(A) Volate storage
(B) Non-volate storage
(C) Volatile storage
(D) Non-volatile storage
Answer:
(C) Volatile storage

Question 22.
Which class provides a method for reading password ?
(A) Writer class
(B) Scanner Input class
(C) Reader class
(D) Console class
Answer:
(D) Console class

Question 23.
Which scanner class method is used to scan the next token of the input as Int ?
(A) int next Int ( )
(B) int has Next ( )
(C) Void int ( )
(D) int next ( )
Answer:
(A) int next Int ( )

Question 24.
Which file class method is used to return the path to the file or directory ?
(A) String get Name ( )
(B) String get File ( )
(C) String get Directory ( )
(D) String get Path ( )
Answer:
(D) String get Path ( )

GSEB Class 12 Computer Question Paper March 2015 (For Science Stream)

Question 25.
LaTeX command starts with which character followed by the command name ?
(A) \ (back slash)
(B) *
(C) ?
(D) / (front slash)
Answer:
(A) \ (back slash)

Question 26.
From following LaTeX command which of the part is optional argument ?
\ document [ 14pt ] { article }
(A) document [ 14pt ]
(B) 14pt
(C) document
(D) article
Answer:
(B) 14pt

Question 27.
In LaTeX, to insert a break in lines user uses which command at the end of each line ?
(A) $@
(B) ##
(C) $#
(D) \\
Answer:
(D) \\

Question 28.
Which command in LaTeX is used to define the document’s title ?
(A) \ title doc
(B) \ title
(C) \ doc title
(D) \ LaTeX title
Answer:
(B) \ title

Question 29.
TeX and LaTeX use which file extension ?
(A) . avi
(B) mp3
(C) . tex
(D) jpeg
Answer:
(C) . tex

Question 30.
Which command in LaTeX produces the popular PDF format files ?
(A) pdf latex
(B) pdf conv
(C) pdf pop
(D) pdf tex
Answer:
(A) pdf latex

GSEB Class 12 Computer Question Paper March 2015 (For Science Stream)

Question 31.
Data stored in files is often called as what ?
(A) Persistent data
(B) Personal data
(C) Provision data
(D) Public data
Answer:
(A) Persistent data

Question 32.
Which of the following is an example of binary file ?
(A) C
(B) mp3
(C) txt
(D) Java
Answer:
(B) mp3

Question 33.
Which class encapsulates information about the properties of a file or a directory ?
(A) Java.out.file
(B) Java.in.file
(C) Java.file.io
(D) Java.io.File
Answer:
(D) Java.io.File

Question 34.
Which file class method is used to return true, if the file or directory is hidden ?
(A) boolean is Hidden ( )
(B) boolean exists ( )
(C) boolean is File ( )
(D) boolean is Directory ( )
Answer:
(A) boolean is Hidden ( )

Question 35.
Java language is developed by which company ?
(A) Sun Micro System
(B) Sun Java System
(C) Sun System
(D) Sun Pharma Co-operation
Answer:
(A) Sun Micro System

Question 36.
The machine language for the Java Virtual Machine is called what ?
(A) Code byte
(B) Type code
(C) Java byte code
(D) Java code
Answer:
(C) Java byte code

GSEB Class 12 Computer Question Paper March 2015 (For Science Stream)

Question 37.
While creating Java what must be the same ?
(A) folder name, file name
(B) extension name, file name
(C) class name, folder name
(D) class name, file name
Answer:
(D) class name, file name

Question 38.
When the program gets compiled without error, compiler creates a file with which extension ?
(A) . comp
(B) . txt
(C) . java
(D) . class
Answer:
(D) . class

Question 39.
The process of compiling and executing a Java application is as follows. What is missing from given chart ?
GSEB Class 12 Computer Question Paper March 2015 (For Science Stream) 2
(A) Java class (*.exe)
(B) Java textcode (*.txt)
(C) Java Bytecode file (*.class)
(D) Java typecode (*.obj)
Answer:
(C) Java Bytecode file (*.class)

Question 40.
Which code indicates whether the command or a program executed successfully or not ?
(A) run code : 0
(B) Scite code : 0
(C) Source code : 0
(D) Exit code : 0
Answer:
(D) Exit code : 0

Question 41.
Which package contains a hierarchy of classes dealing with various exceptions ?
(A) java.obi and java.els
(B) Java.lang and java.io
(C) Java.lang and Java, obi
(D) Exit.obi and Java.class
Answer:
(B) Java.lang and java.io

Question 42.
When there is an attempt to divide any number by 0 (zero) which exception is occured while executing the program ?
(A) Zero Exception
(B) Number Exception
(C) Divide Exception
(D) Arithmetic Exception
Answer:
(D) Arithmetic Exception

GSEB Class 12 Computer Question Paper March 2015 (For Science Stream)

Question 43.
When there is an attempt to convert string to a number type which exception is occured while executing the program ?
(A) Number Format Exception
(B) Format Exception
(C) Convert Exception
(D) String Exception
Answer:
(A) Number Format Exception

Question 44.
What is the full form of CTAN ?
(A) Compare TeX Archive Notes
(B) Comprehensive Tex Archive Network
(C) Comprehensive TeX Add Network
(D) Code TeX Article Network
Answer:
(B) Comprehensive Tex Archive Network

Question 45.
In LaTeX, to print not equal to sign, which mathematical symbol is used ?
(A) \ neq
(B) \ nteq
(C) \ noteqto
(D) \ noteq
Answer:
(A) \ neq

Question 46.
In LaTeX, which command is used to emphasis effect to text ?
(A) \ eph
(B) \ emph
(C) \ empha
(D) \ emh
Answer:
(B) \ emph

Question 47.
In LaTeX, which command is used to set paper size and margins ?
(A) \ use pageout
(B) \ use paper
(C) \ use package
(D) \ use page
Answer:
(C) \ use package

Question 48.
In LaTeX, who has created the packages ams math, ams symb and ams fonts ?
(A) American Mathematical Society
(B) Advance Mathematical Source
(C) ASCII Mathematical Society
(D) Armstrong Mathematical Source
Answer:
(A) American Mathematical Society

GSEB Class 12 Computer Question Paper March 2015 (For Science Stream)

Question 49.
Whenever two classes have a ‘is – a’ relationship, what is used ?
(A) Instant
(B) Relations
(C) Inheritance
(D) Invalue
Answer:
(C) Inheritance

Question 50.
Which class inherits all instance variables and methods from super class and it may have its own added variables and methods ?
(A) Out class
(B) Super class
(C) In class
(D) Sub class
Answer:
(D) Sub class

Question 51.
Which keyword is used to call the constructor of super class in the constructor of sub class ?
(A) super
(B) void
(C) sub
(D) class
Answer:
(A) super

Question 52.
A sub class can be derived from which class ?
(A) over class
(B) super class
(C) main class
(D) own class
Answer:
(B) super class

Question 53.
Java supports two types of strings that are „ handled by two classes. Which are they ?
(A) String, Buffer String
(B) String, String Buffer
(C) String, String Literals
(D) String, Buffer
Answer:
(B) String, String Buffer

Question 54.
Which constructor can be used without arguments to create a string object with no character ?
(A) String ( )
(B) String { }
(C) String (0, 1)
(D) String [ ]
Answer:
(A) String ( )

GSEB Class 12 Computer Question Paper March 2015 (For Science Stream)

Question 55.
Which of the following tasks are provided by string class ?
(A) Appending string
(B) All the given three options
(C) Extracting part of string
(D) Splitting string into sub string
Answer:
(B) All the given three options

Question 56.
Which of the following method returns number of characters in invoking string ?
(A) int count ( )
(B) int lencount ( )
(C) int length ( )
(D) int len ( )
Answer:
(C) int length ( )

Question 57.
Instance variables and instance methods are accessed via objects. They can be referred by using which operator ?
(A) //
(B) (.) dot
(C) $
(D) #
Answer:
(B) (.) dot

Question 58.
Which type of variables are defined within a class but outside any method ?
(A) Class variable
(B) Empty variable
(C) Local variable
(D) Instance variable
Answer:
(D) Instance variable

Question 59.
In Java, we can have different methods that have the same name but a different signature is also called as what ?
(A) Method overloading
(B) Variable overloading
(C) Same overloading
(D) Poly overloading
Answer:
(A) Method overloading

Question 60.
To provide an user-defined no-argument constructor, which of the following command is used ?
(A) School ( float i, float j ) ;
(B) School ( int i ) ;
(C) School ( ) { } ;
(D) School { } ( ) ;
Answer:
(C) School ( ) { } ;

GSEB Class 12 Computer Question Paper March 2015 (For Science Stream)

Question 61.
Which of the following method is used to return a string converted to lower case ?
(A) String to Lower Case ( )
(B) String To LOWER ( )
(C) String ( )
(D) String Lower ( )
Answer:
(A) String to Lower Case ( )

Question 62.
Which of the following method is used to return a string after appending str with the invoking string ?
(A) String Append ( )
(B) String concat (string str)
(C) String ConAppend ( )
(D) String Append (string)
Answer:
(B) String concat (string str)

Question 63.
Which class encapsulate both date and time and represent the value using milli-seconds precision ?
(A) Preci class
(B) Sec class
(C) Data class
(D) Time class
Answer:
(C) Data class

Question 64.
Which of the following method is used to construct date object using current system time ?
(A) Class Date 1
(B) Class Date ( )
(C) date ( )
(D) Date ( )
Answer:
(D) Date ( )

Question 65.
Which of the following is right way to define variable ?
(A) $age
(B) discount rate
(C) 4youpeople
(D) %discount
Answer:
(A) $age

Question 66.
String literals is a sequence of characters enclosed in which quotes ?
(A) triple
(B) double
(C) single & double
(D) single
Answer:
(B) double

GSEB Class 12 Computer Question Paper March 2015 (For Science Stream)

Question 67.
Which of the two symbols are used in the conditional operator in Java ?
(A) ; and *
(B) # and ?
(C) ? and :
(D) / and ?
Answer:
(C) ? and :

Question 68.
While using shorthand version of assignment, if it is defined as a + = b, where a is 7 and b is 8, then what will be result of a ?
(A) 8
(B) 49
(C) 14
(D) 15
Answer:
(D) 15

Question 69.
When two operators are having different priority, then an operator with higher precedence is operated …………… .
(A) first
(B) last
(C) second
(D) in middle
Answer:
(A) first

Question 70.
1-D array is initialized using comma separated values of data elements using which brackets ?
(A) ( )
(B) < >
(C) [ ]
(D) { }
Answer:
(D) { }

Question 71.
Sort () and Fill () methods can be used in Java by ………………… class.
(A) java.util.Arrays
(B) util.java.arrays
(C) java.Array.util
(D) java.arrays.utils
Answer:
(A) java.util.Arrays

Question 72.
Which type of arrays are used to store tabular data in the form of rows and columns ?
(A) 3-D
(B) 4-D
(C) 1-D
(D) 2-D
Answer:
(D) 2-D

GSEB Class 12 Computer Question Paper March 2015 (For Science Stream)

Question 73.
If user wants to store 15 integer values through arrays, then which of the following is used ?
(A) int m3 = new int [ 5 ] [ 3 ];
(B) int m2 = new [ 5 ] [ 3 ];
(C) int m1 = new [ 15 ] [ 15 ];
(D) int m4 = m4 int [ 2 ] [ 3 ];
Answer:
(A) int m3 = new int [ 5 ] [ 3 ];

Question 74.
If ‘str’ is the object of string class and its content is “INDIANFLAG”, then what is the value of str.length ( ) ?
(A) 11
(B) 8
(C) 10
(D) 9
Answer:
(A) 11

Question 75.
Which constant is used to display year of calendar ?
(A) CAL
(B) YEAR CAL
(C) YEAR
(D) MONTH
Answer:
(C) YEAR

Question 76.
Which constant is used to display Hour in 12- hour notation ?
(A) 12 HOUR
(B) HOUR 12
(C) Hour_OF_DAY
(D) HOUR
Answer:
(D) HOUR

Question 77.
Which constant is used to display Day number in the year ?
(A) DAY_OF_YEAR
(B) YEAR_DAY
(C) YEAR
(D) DAY_YEAR
Answer:
(A) DAY_OF_YEAR

Question 78.
In Java, errors can be broadly classified into two categories namely ……………….. and Run-time errors.
(A) Compile-time error
(B) Compile-syntax error
(C) Syntax-type error
(D) Syntax-time error
Answer:
(A) Compile-time error

GSEB Class 12 Computer Question Paper March 2015 (For Science Stream)

Question 79.
Vector is used to represent ……………….. dimensional datga structure.
(A) three
(B) four
(C) one
(D) two
Answer:
(C) one

Question 80.
What is useful to represent vector, matrix and other multi-dimensional data ?
(A) string
(B) arrays
(C) char
(D) integer
Answer:
(B) arrays

Question 81.
In following array, if int mark [ ] = {70,90,20} is defined, then what will be value of marks [ 2 ] ?
(A) 20
(B) error
(C) 70
(D) 90
Answer:
(A) 20

Question 82.
The array variable starts its index value with what ?
(A) null
(B) 2
(C) 1
(D) 0
Answer:
(D) 0

Question 83.
Who extablished a “has – a” relationship between class ?
(A) Composition and Aggregation
(B) Methods and Object
(C) Relations and Method
(D) Inheritance and Aggregation
Answer:
(A) Composition and Aggregation

Question 84.
Java have a ………………. that looks for unused objects and reclaims the memory that those objects are using.
(A) reclaim collector
(B) unused collector
(C) memory collector
(D) garbage collector
Answer:
(D) garbage collector

GSEB Class 12 Computer Question Paper March 2015 (For Science Stream)

Question 85.
The word polymorphism means what ?
(A) many forms
(B) virtual forms
(C) one form
(D) more prizm
Answer:
(A) many forms

Question 86.
Which of the following is syntax of package ?
(A) package {Name} ;
(B) package (Name) ;
(C) package <Package Name> ;
(D) package [Variable name] ;
Answer:
(C) package <Package Name> ;

Question 87.
……………… is special kind of method that is invoked when a new object is created.
(A) common class
(B) super class
(C) composition
(D) constructors
Answer:
(D) constructors

Question 88.
Which are the four P’s used in the four levels of visibility to provide necessary protection ?
(A) process, private, protected, public
(B) public, package, protected, private
(C) public, package, protected, process
(D) private, package, protected, public
Answer:
(B) public, package, protected, private

Question 89.
Highest level of protection can be achieved by using which protection level ?
(A) Private
(B) Process
(C) Public
(D) Package
Answer:
(A) Private

Question 90.
If we want to allow other methods to read only the data value ……………… method can be used.
(A) setter
(B) updater
(C) reader
(D) getter
Answer:
(D) getter

GSEB Class 12 Computer Question Paper March 2015 (For Science Stream)

Question 91.
……………. allows us to build new class with added capabilities by extending existing class ?
(A) Inheritage
(B) Instant
(C) Inheritance
(D) Instance
Answer:
(C) Inheritance

Question 92.
Control structure branches are used to choose among two or more possible courses of action, is called as what ?
(A) More structure
(B) Loop structure
(C) Additive structure
(D) Selective structure
Answer:
(D) Selective structure

Question 93.
Switch statement can be stopped using which statement ?
(A) break
(B) run
(C) loop
(D) error
Answer:
(A) break

Question 94.
do …………….. while loop is which type of loop ?
(A) loop – controlled
(B) break – controlled
(C) exit – controlled
(D) entry – controlled
Answer:
(C) exit – controlled

Question 95.
To use a labelled loop, which symbol is added before the loop ?
(A) *
(B) $
(C) :
(D) #
Answer:
(C) :

Question 96.
In Java, the text written in /* …………*/ is considered as what ?
(A) Method
(B) Comment
(C) Function
(D) Variable
Answer:
(B) Comment

GSEB Class 12 Computer Question Paper March 2015 (For Science Stream)

Question 97.
User can create Java source file by using ……………. application.
(A) Only SciTE editor
(B) Both ASCII text editor and SciTE editor
(C) ASCII text editor
(D) SciTE editor
Answer:
(B) Both ASCII text editor and SciTE editor

Question 98.
The definition of the method (function) in Java’ consists of function header and the sequence of statements enclosed in which bracket ?
(A) { }
(B) < >
(C) ()
(D) [ ]
Answer:
(A) { }

Question 99.
Java supports how many primitive data types ?
(A) 3
(B) 8
(C) 4
(D) 7
Answer:
(B) 8

Question 100.
Which of the following datatype is used for real numbers ?
(A) short
(B) char
(C) long
(D) double
Answer:
(D) double

Leave a Comment

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