By solving the Computer Class 12 GSEB Solutions and GSEB Class 12 Computer Question Paper March 2017 (For Science Stream) will be able to know the exam pattern in the exam.
GSEB Std 12 Computer Question Paper March 2017 (For Science Stream)
Question 1.
Variables defined inside methods or blocks are called what ?
(A) Instance Variable
(B) Class Variable
(C) Local Variable
(D) Object Variable
Answer:
(C) Local Variable
Question 2.
Variables defined within a class but outside any method is known as what ?
(A) Class Variable
(B) Instance Variable
(C) Local Variable
(D) Object Variable
Answer:
(B) Instance Variable
Question 3.
Which of the following word means “many forms” ?
(A) Polymorphism
(B) Constructor
(C) Instance
(D) Method
Answer:
(A) Polymorphism
Question 4.
In Java we can have different methods that have same name but a different signature. This is called what ?
(A) Method loading
(B) Method overloading
(C) Method testing
(D) Method uploading
Answer:
(B) Method overloading
Question 5.
Which of the following can perform any action; but it is mainly designed to perform initializing actions ?
(A) Constructors
(B) Confirmation
(C) Contractor
(D) Consolidation
Answer:
(A) Constructors
Question 6.
How to define user define no-argument constructor ?
(A) Room { } ( );
(B) Room { ( ) };
(C) Room ( ) { };
(D) Room ( { } );
Answer:
(C) Room ( ) { };
Question 7.
Which of the following is increment operator in Java ?
(A) – –
(B) \+
(C) ++
(D) \++
Answer:
(C) ++
Question 8.
Which of the following is not a fourth P’s of protection ?
(A) Package
(B) Private
(C) Public
(D) Provide
Answer:
(D) Provide
Question 9.
To organize classes, where does package statement should be added in the source file ?
(A) First non-comment line
(B) Last line
(C) First comment line
(D) Last comment line
Answer:
(A) First non-comment line
Question 10.
Which of the following is syntax of package ?
(A) Package {Classes Name};
(B) Package [{Object Name}];
(C) Package [Object Name];
(D) Package <Package Name>;
Answer:
(D) Package <Package Name>;
Question 11.
Highest level of protection can be achieved by using which protection level ?
(A) Public
(B) Protect
(C) Pure
(D) Private
Answer:
(D) Private
Question 12.
If we want to allow protect data to be used by others, then which methods we write ?
(A) Accessor
(B) Changer
(C) Mutator
(D) Allower
Answer:
(C) Mutator
Question 13.
If we want to allow protect data to be used by- others to read only the data value, then we should use which method ?
(A) Mutator
(B) Changer
(C) Getter
(D) Allower
Answer:
(C) Getter
Question 14.
Which of the following in object oriented programming language provide reusability feature ?
(A) Substation
(B) Objection
(C) Inaddition
(D) Inheritance
Answer:
(D) Inheritance
Question 15.
Which type of relationship inheritance uses between two classes ?
(A) ‘have-a’
(B) ‘is-a’
(C) ‘has-a’
(D) ‘are-a’
Answer:
(A) ‘have-a’
Question 16.
Which of the following is useful to represent vector, matrix and other multi-dimensional data ?
(A) Variable
(B) Box
(C) Array
(D) Structure
Answer:
(C) Array
Question 17.
Which of the following is used to represent 2D data structure like table of rows and columns ?
(A) Variable
(B) Box
(C) Array
(D) Matrix
Answer:
(D) Matrix
Question 18.
When we define Array, Index value starts with what ?
(A) 1
(B) 7
(C) 2
(D) 0 (zero)
Answer:
(D) 0 (zero)
Question 19.
If we have defined array like
int marks [ ] = {7, 9, 11, 13, 15, 17};
then what will be the value of marks [4] ?
(A) 13
(B) 9
(C) 15
(D) 17
Answer:
(C) 15
Question 20.
Which of the following class is utilise in array to use methods Sort( ); ?
(A) Java.math.Arrays
(B) JavaAll.Arrays
(C) Java.Function.Arrays
(D) Java.utiLArrays
Answer:
(D) Java.utiLArrays
Question 21.
To search an element in an array, Array class provides which method ?
(A) Element Search ( )
(B) Search Element ( )
(C) binaryScarch ( )
(D) Binary Element( )
Answer:
(C) binaryScarch ( )
Question 22.
If in Java 2D Array is defined like
int marks [ ] [ ] = new int [6] [4];
then, how many integers are stored in memory using contiguous memory ?
(A) 64
(B) 10
(C) 42
(D) 24
Answer:
(D) 24
Question 23.
To initialize 2-D arrays, ah these initialized rows are to be enclosed in curly braces {} and separated by what ?
(A) Dot
(B) Comma
(C) Semicolon
(D) Colon
Answer:
(B) Comma
Question 24.
Java supports two types of strings that are handled by two classes namely as below ?
(A) String and Buffered
(B) String and Buffers
(C) String and String Buffered
(D) String and String Buffer
Answer:
(D) String and String Buffer
Question 25.
Which of the following constructor used to create a string object that refers to the literal specified in argument ?
(A) String (string literal)
(B) String (string arg { })
(C) String (char arg [ ])
(D) String (arg [ ] char)
Answer:
(A) String (string literal)
Question 26.
Which of the following method of string class used to return true if invoking string is same as Str ?
(A) boolean equals (String str)
(B) boolean (String str)
(C) int CompareTo (String str)
(D) int Compare (String str)
Answer:
(A) boolean equals (String str)
Question 27.
Which of the following string method is used to return number of characters in invoking string ?
(A) int invoke ()
(B) int length ()
(C) int con()
(D) int find()
Answer:
(B) int length ()
Question 28.
Which of the following method is used to return strings with all characters of invoking string converted to uppercase ?
(A) String CaseUpper()
(B) String UPPER()
(C) String Upper()
(D) String toUpperCase()
Answer:
(D) String toUpperCase()
Question 29.
Which of the following method string class of Java does not provide ?
(A) Lowercase of a string
(B) Uppercase of a string
(C) Reverse a string
(D) Concating a string
Answer:
(C) Reverse a string
Question 30.
Java library also provide Data class in which package ?
(A) Java.util
(B) Java.util.Date
(C) Java.date.util
(D) Java.Date.util
Answer:
(A) Java.util
Question 31.
Which of the following method of Date is used to construct Date object using current system time ?
(A) int DateCurr()
(B) CurrTime()
(C) Date()
(D) int CurrTime()
Answer:
(C) Date()
Question 32.
Which class can be used to extract detailed information like year, month, date, hour, minute & second ?
(A) Calendar class
(B) Month class
(C) Year class
(D) Second class
Answer:
(A) Calendar class
Question 33.
Which of the following class encapsulate both date and time and represent the values using milliseconds precision ?
(A) Year class
(B) TDate class
(C) Date class
(D) Time class
Answer:
(C) Date class
Question 34.
Which of the following constant of calendar class helps to display week number within the month ?
(A) WEEK_OF_NUMBER
(B) WEEK_OF_MONTH
(C) WEEK OF_YEAR
(D) WEEK_OF_NMONTH
Answer:
(B) WEEK_OF_MONTH
Question 35.
If ‘Str’ is the object of string class and its content is ‘GUJARAT’, then what is the value of Str.lengthO ?
(A) 7
(B) 6
(C) 8
(D) 9
Answer:
(A) 7
Question 36.
In Java, all types of error conditions are called as what ?
(A) Error creator
(B) Major problem
(C) Exceptions
(D) Extraction
Answer:
(C) Exceptions
Question 37.
In Java, if there is a Syntax error in the program then which of the following extention type file will not created ?
(A) .Err
(B) .Jav
(C) .Java
(D) .Class
Answer:
(D) .Class
Question 38.
Which of the following errors are usually the mistakes of a programmer and it won’t allow the program to compile unless they are solved ?
(A) Run – time errors
(B) Compile – time errors
(C) Compile – time – finder
(D) Programmer – error – finder
Answer:
(B) Compile – time errors
Question 39.
Which of the following Exit code or Exit status indicates that the command executed successfully in Java ?
(A) 1 (one)
(B) 0 (zero)
(C) 2 (two)
(D)) 3 (three)
Answer:
(B) 0 (zero)
Question 40.
Which of the following package contains a hierarchy of classes dealing with various exceptions ?
(A) java.io and java.lang
(B) java.Excep and java.io
(C) java.Array and java.lang
(D) java.Exp and java.io
Answer:
(A) java.io and java.lang
Question 41.
Which of the following exception class handle an I/O error while printing ?
(A) PRINTERROR
(B) PrintlOHandle
(C) PrinterException
(D) PrinterlOException
Answer:
(D) PrinterlOException
Question 42.
Which of the following keyword is not used in writing an exception handler ?
(A) Catch
(B) Finally
(C) Try
(D) Drop
Answer:
(D) Drop
Question 43.
Which of the following block contains the code that may give rise to one or more exceptions in exception handler ?
(A) Catch
(B) Finally
(C) Try
(D) Drop
Answer:
(C) Try
Question 44.
Which of the following block must immediately follow the try block ?
(A) Catch block
(B) Throw clause
(C) Throw block
(D) Throw statement
Answer:
(A) Catch block
Question 45.
When there is a multiple catch blocks are used then which catch block is considered as a default catch block ?
(A) Middle catch block
(B) First catch block
(C) Second last catch block
(D) Last catch block
Answer:
(D) Last catch block
Question 46.
Which of the following block is always executed, regardless of whether or not exceptions are thrown during the execution of the associated try block ?
(A) Catch block
(B) Finally block
(C) Test block
(D) Edit block
Answer:
(B) Finally block
Question 47.
We can create user – defined exceptions by creating what of exception class ?
(A) In class
(B) Sub class
(C) Outer class
(D) Super class
Answer:
(B) Sub class
Question 48.
Storage devices of a computer system can be broadly classified into how many categories ?
(A) Four
(B) Five
(C) Two
(D) Three
Answer:
(C) Two
Question 49.
Which of the following file is known as binary files ?
(A) Java
(B) C
(C) Text
(D) MP3
Answer:
(D) MP3
Question 50.
Which type of value stored in variables are lost when computer is shutdown ?
(A) Volatile storage
(B) Permanent storage
(C) Volate storage
(D) Non-volatile storage
Answer:
(A) Volatile storage
Question 51.
Random Access Memory is example of which type of storage ?
(A) Volatile storage
(B) Permanent storage
(C) Volate storage .
(D) Non-volatile storage
Answer:
(A) Volatile storage
Question 52.
Which of the following class encapsulates information about the properties of a file or a directory ?
(A) java.io.directory
(B) java.io.File
(C) jave.File
(D) java.directory
Answer:
(A) java.io.directory
Question 53.
Which of the following method of File class used to returns true if the file exists, otherwise returns false ?
(A) boolean FileExist()
(B) boolean isDirectory()
(C) boolean File()
(D) boolean isFile()
Answer:
(D) boolean isFile()
Question 54.
Java uses which classes to carry out read and write operations on files ?
(A) I/O class
(B) Text class
(C) Stream class
(D) R/W class
Answer:
(C) Stream class
Question 55.
Which of the following is an abstract representation of an Input or Output device that is used as a source or destination for data ?
(A) Stream
(B) Steam
(C) Instance
(D) Inheritance
Answer:
(A) Stream
Question 56.
Which of the following is the sub class of reader class ?
(A) Print Reader
(B) Buffered Reader
(C) Text Reader
(D) Base Reader
Answer:
(B) Buffered Reader
Question 57.
Scanner class belongs to the which package of Java ?
(A) java.io
(B) java.RW
(C) java.lang
(D) java.util
Answer:
(D) java.util
Question 58.
Which of the following is the default delimiter of Scanner class ?
(A) Colon
(B) Semicolon
(C) Empty space
(D) Double quotes
Answer:
(C) Empty space
Question 59.
Which class provides a method for reading password ?
(A) Writer class
(B) Scanner class
(C) File class
(D) Console class
Answer:
(D) Console class
Question 60.
Which of the following Scanner class is used to return the next token ?
(A) String nex()
(B) String NToken()
(C) String next()
(D) String Token()
Answer:
(C) String next()
Question 61.
LaTex documents are typically created using which editor in Ubuntu ?
(A) Gedit
(B) Editplus
(C) Notepad
(D) Wordpad
Answer:
(A) Gedit
Question 62.
Which of the following can be used to explicitly 75) specify the logical structure of the document in LaTeX ?
(A) \title
(B) \chapter
(C) \date
(D) \pdf
Answer:
(B) \chapter
Question 63.
What is the file extention of TeX and LaTeX ?
(A) .Xet
(B) .Lat
(C) .tar
(D) .tex
Answer:
(D) .tex
Question 64.
LaTeX commands starts with a which character followed by the command line ?
(A) / (front slash)
(B) \ (back slash)
(C) # (hash)
(D) * (star)
Answer:
(B) \ (back slash)
Question 65.
Which of the following command in LaTeX is used to break lines ?
(A) \\
(B) ;;
(C) #
(D) $
Answer:
(A) \\
Question 66.
In LaTex, option argument is written in which brackets ?
(A) { }
(B) [ ]
(C) ( )
(D) < >
Answer:
(B) [ ]
Question 67.
Which of the following character is reserved in LaTeX ?
(A) , (Comma)
(B) % (Percentage)
(C) . (Dot)
(D) : (Colon)
Answer:
(B) % (Percentage)
Question 68.
Which of the following character is used as comment in LaTex ?
(A) //
(B) %
(C) \*
(D) #
Answer:
(B) %
Question 69.
In LaTex, the actual content is always inside the environment document, written between which of the following ?
(A) \s {document} and \stop
(B) \b and \a
(C) \begin and \stop
(D) \begin {document} and \end {document}
Answer:
(D) \begin {document} and \end {document}
Question 70.
Which of the following shortcut is used to compile (Build) LaTex file in SciTE editor ?
(A) F5
(B) F4
(C) F7
(D) F9
Answer:
(C) F7
Question 71.
Which of the following command is used in LaTeX to make text as italic effect ?
(A) \ittext
(B) \textit
(C) \txtit
(D) \tit
Answer:
(B) \textit
Question 72.
In Latex, square root of a number x is denoted by which of the following command ?
(A) \st {x}
(B) \sT {x}
(C) \sqrt {x}
(D) \sq {x}
Answer:
(C) \sqrt {x}
Question 73.
In LaTex, which of the following way we can print ‘not equal to’ symbol (≠) ?
(A) \nequal
(B) \tn
(C) \neq
(D) \div
Answer:
(C) \neq
Question 74.
Which of the following commands generate the set union symbol ?
(A) \Setunion
(B) \Cup
(C) \Cap
(D) \ Union
Answer:
(B) \Cup
Question 75.
Which of the following refer to the very first line in the preamble ?
(A) \title
(B) \usepackage
(C) \maketitle
(D) \documentclass
Answer:
(D) \documentclass
Question 76.
Most of the Java syntax is very similar to which language ?
(A) SQL
(B) Fortran
(C) C
(D) Foxpro
Answer:
(C) C
Question 77.
At which level platform – independence is possible due to bytecode interpreter ?
(A) Binary level
(B) Bottom level
(C) Source level
(D) High level
Answer:
(A) Binary level
Question 78.
The alphabet D in JDK stands for which of the following ?
(A) Development
(B) Department
(C) Design
(D) Desktop
Answer:
(A) Development
Question 79.
Which of the following company is best known for its high-end Unix workstations ?
(A) PC System
(B) RIL System
(C) Sun Microsystems
(D) Apex System
Answer:
(C) Sun Microsystems
Question 80.
Programs written in Java are compiled into machine language for a computer that doesn’t really exists. Tliis type of computer is known as what ?
(A) Java Verifier Machine
(B) Java Virtual Model
(C) Java Vertical Machine
(D) Java Virtual Machine
Answer:
(D) Java Virtual Machine
Question 81.
The only disadvantage of using bytecodes is which of the following ?
(A) Fast execution speed
(B) High execution speed
(C) Slow execution speed
(D) Random execution speed
Answer:
(C) Slow execution speed
Question 82.
In Java, Java source files name and class they define name should be what ?
(A) Same
(B) Totally different
(C) Different
(D) Vice Versa
Answer:
(A) Same
Question 83.
What is the extention of Java source file ?
(A) .Java
(B) .JSF
(C) .Jav
(D) .JDK
Answer:
(A) .Java
Question 84.
Which of the following way user can run “abc. Java” source program through the application using Java interpreter ?
(A) java abc.obj
(B) java ABC
(C) abc.Java
(D) java abc
Answer:
(D) java abc
Question 85.
In Java, the text written in which of the following are comments ?
(A) /* */
(B) \* */
(C) /* /*
(D) \* *\
Answer:
(A) /* */
Question 86.
Which of the following editor is used to create Java source program in Ubuntu ?
(A) Notebook
(B) Jedit
(C) Wordpad
(D) SciTE
Answer:
(D) SciTE
Question 87.
Java consists of function header & the sequence of statements enclosed between which braces ?
(A) [ ]
(B) [ }
(C) { }
(D) ( )
Answer:
(C) { }
Question 88.
Java supports how many primitive data type ?
(A) 9
(B) 7
(C) 8
(D) 6
Answer:
(C) 8
Question 89.
Which of the following data type hold real numbers ?
(A) double
(B) long
(C) char
(D) byte
Answer:
(A) double
Question 90.
A name used to refer to the data stored in memory is called what ?
(A) Object
(B) Value
(C) Variable
(D) Function
Answer:
(C) Variable
Question 91.
Which of the following is illegal way to define variable name in Java ?
(A) %Sale
(B) $Price
(C) B4U
(D) Amount$
Answer:
(A) %Sale
Question 92.
Which of the following is not a reserved word in Java ?
(A) else
(B) class
(C) static
(D) rate
Answer:
(D) rate
Question 93.
Control structures in Java is divided in two types loops and what ?
(A) Function
(B) Message
(C) Branches
(D) Alerts
Answer:
(C) Branches
Question 94.
In Java, which statement is used to exit from the loop structure ?
(A) System
(B) Stop
(C) Out
(D) Break
Answer:
(D) Break
Question 95.
Which of the following is exit – controlled loop in Java ?
(A) Do – while
(B) For
(C) While
(D) Loop
Answer:
(A) Do – while
Question 96.
Every class we write in Java is generally made up of which of the two components ?
(A) Behaviour and Information
(B) Attributes and Behaviour
(C) Attributes and Information
(D) Information and Comments
Answer:
(B) Attributes and Behaviour
Question 97.
A variable declared using class type can only store what ?
(A) Reference to an object
(B) Store an object
(C) Classified an object
(D) Interfere an object
Answer:
(A) Reference to an object
Question 98.
In Java, when objects are no more needed, the memory is claimed back for what ?
(A) Direction
(B) Next window
(C) Reuse
(D) Assignment
Answer:
(C) Reuse
Question 99.
All instances of class are allocated memory in data structure is called what ?
(A) Leap
(B) Zeap
(C) Heap
(D) Reap
Answer:
(C) Heap
Question 100.
Here dot (.) is an operator and associativity of dot operator is from where to where ?
(A) Left to right
(B) Left to top
(C) Right to left
(D) Left to bottom
Answer:
(A) Left to right