[go: up one dir, main page]

0% found this document useful (0 votes)
13 views16 pages

Sample papers 1 - 3 computer by Devraj Singh

The document is a sample question paper for Computer Applications-X, consisting of multiple-choice questions covering various programming concepts, including encapsulation, data types, and error types. It includes sections for students to attempt all questions and provides a mix of theoretical and practical programming problems. The paper is designed to assess students' understanding of Java and object-oriented programming principles.

Uploaded by

adiii200811
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF or read online on Scribd
0% found this document useful (0 votes)
13 views16 pages

Sample papers 1 - 3 computer by Devraj Singh

The document is a sample question paper for Computer Applications-X, consisting of multiple-choice questions covering various programming concepts, including encapsulation, data types, and error types. It includes sections for students to attempt all questions and provides a mix of theoretical and practical programming problems. The paper is designed to assess students' understanding of Java and object-oriented programming principles.

Uploaded by

adiii200811
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF or read online on Scribd
You are on page 1/ 16
‘SE \MPLE QUESTION PAPER 01 Solved )MPUTER APPLICATIONS-X giinstructions ai the head ofthis pape isthe tne Section A tempt all Questions from this Section) coos he core anewer th tions fom he tho ions. (D0 Bt Oy te eRe he Set answers only) 3 |i) The process of binding the data and method together sone uit is called as {s)encapsulation ——() inheritance [polymorphism (8) dynamic binding i) The operator whieh ats on one operand is known 2s (@)binary () ternary (unary (@) relational i) Which of the following keyword is used to create symbolic constant in Java? (a) final (Final (e)Constant > @) Const (iv) Give the output of the following. int x: > for (x1: x8 HF DE ‘ystem.out.print (x): (123 (1234 4 ON os (0) What isthe final value stored in variable x? ‘double. neath. cet (Hath abs(-7-3))+ (@)70 ory (60 90 Max. Marks : 100 Tie amet bosom nniietho im oft papa (oi) The program code writen inany high-level language to solve a problem is (a) object code () source code (machine code (4) bytecode (i) Choose the odd ne: @> me oy we (vii Parameters used inthe method call statement are (a) acu parameters (6) informal parameters (6) formal parameters (4) oid parameters (8) The keyword which indicates thatthe method returns no value (public (by static (e)v0id (4) absuaet, (@) Method that conversa character to uppercase is (a) to0pP=0) () To pperCase() Co tobppercaset) (@ wlpperCasetchar) (i) Give the ouput ofthe following statement: MISSISS1PP1" index ie MISSISSIPPI" lastindexot¢'l 10 on (2 @u (avi) Amertion (A) The facory of object means a factory that produces the objects Reason (R) Class is known as object factory Drecause a single class generates slot of objects {@) Both Assertion (A) and Reason (R) are tre and ‘Reason (R) if coret explanation of Awerion w. ©) Both Assertion (A) snd Reason (R) ae tre and 1) isnot comect explanation of ‘Assertion (A). 4) Assertion (A) is tue aod Reason (R) i false. {@) Assertion (A) ifs and Reason (R) te ‘vi) Read the following text, and choose the correct answer, Abstraction isa concep, whichis used to represent essential features without including the backround details oF explanations. It is essential concep! of ‘Object Oriented Programming (OOP), ‘What is an abstraction ? (6) Abstraction is more about ‘What’ class Jo (©) Abstraction is more about How” to achiev: tht ‘umctonality (6) I binds data and metbods i single wit (4) Itimplements using private access maitir (xix) Assertion (A) Array isa datatype which can sore ‘tuiiple homogenous variables Reason (R) Elements of array are stored in an indexed manner stating wit index 0, COMPUTER Appi, A When x='s (a) Google Meet () Google Meet Any sofware (©) Any software (4) Wedtx Ans_ (0) (2) Binding of data aod method in sing (i) (la keywords ned o crete ymbolc mos (6) ©) Mathabe (73) returns 7.3 and 10 te vale of 13, (09 () Source code means program writen aig language (oi (2) Ri relational opertor ters ar ute (i (a) Parameters wd in the method cal senate sual parameters %) (©) voidmeans retum no valu tothe paren ina (3) (d) Method that convert characte o upper toUpperCaset shar) x) 2 (ai) (2) Output Go0dDay block. me ai) @ IL a «the output ofthe following program segments = “PROJECTOR t.printin(str GSteacharat(e))); 2 an) What wile dhe output ofthe following statement public boolean #(int a, tnt b boolean c = false: while(a > 1 BA b> 1) sf(a > bd a-m bs else b= St sree (vit) The method {1s computing whe! a memory add inputStreamReader rp = feredieader Bf = pena 8.1. = 0, w= 9; char chr’= 9; stem. out. print in name = bf.readtine( a= name. length), ort = OFT ) Encapsulation: is more about “What” class car do (c)Ihides the unnecessary details ofthe object <) Encapsulation focuses on the ouside view of an object Assertion (A) Jump statements can be used to ‘modify the behaviour of conditional and iterative statements. Reason (R) When the break statement is encountered, the next iteration starts and the remaining statements in the present iteration are skipped. 4) Both Assertion (A) and Reason (R) are true and Reason (R) is correct explanation of Assertion , (b) Both Assertion (A) and Reason (R) are true but ” caso (oo cones xan of Assen . (6) Assertion (A) is tre and Reason (R) is false. (6) Assertion (A) is false and Reason (R) is true. (©) long parseLong(String 5) (8) Give the output ofthe following program segn (vi) Give the output of the following: (a) Syste © @ (vil) Identify the following as valid variable names, state reason if invalid 2) @ 13 (b) break Ts (@ var. CSE SAMPLE QUESTION PAPER 03_ COMPUTER APPLICATIONS-X Section A Attempt all Questions from this Section the correct answers to thy (Do not copy the tcl only.) iar a crmediate code obtained after compilation Source code (b) Byte code (x) Method that converts a cha c) Object code (@) Compile code Which of the following is not a principle of OOP? (b) Data abstraction epee = (4) Polymorphism (xi) What will be the output of the following cou (4) Lucknow b) Luckn (©) Luck Yuck are the words which have special meaning 72 (a) Keywords () Identifiers ono : (©) Methods Package (8) do while loop is an (2) entry controlled loop —_(b) infinite loop (c) exat controlled Joop A) finite loop (vi) Method that accepts a string without any space 's ae (ynetind (6) nextin() pie (il) Name the type of error in the statement given below: ‘int. r=100/0 5) Rustime Syma Raine (6) Logical aren (xii) Give the output of the following code Section B Answer any Four Questions from this Section) wo Fibonacci numbers are 0 and | and each uubsequent number is the sum of the previous two. ) Find the sum of the digits of an integer thats input. He Input: 1 53.90 le Output : Sum of the digits = 18 or an incorrect choice, an appropriate error mes wld be displayed, 3) 1m to input a sentence and convert it into ase and count and display the total number of tarting with a letter ‘A’ Sample Input : Advancement And Application of stion Technology Are Ever Changing. [15] Class name : Rectangl Data membersInstance variables: Member functions Answers Gi) © wo eh (x) ) iil) (@) Gv) 1SE AMPLE QUESTION PAPER 01_ )MPUTER APPLICATIONS-X Section A. tempt ell Questions from this Section) oo orien (D8 St ee ator ce vr mower ly) ‘4 "ep eed we "capa (terns Spoon (0) mg Me apsao wie seo ons perk inary yt (Gamer (@etaioml |i Wich of the flowing word is wed 1 rent syle constants in Jv? (a (©) Fl (o Coan (cont hy Give he cup of te flowing, ‘nt x tor (xa: 8: HE Syston. out prt (123 @iza 4 far (hat she inal value stored in variable x7 ible. neath, cet (Hath aB8(7-9)5 70 oro eo 1690 ox. Marks : 100 (i) Coos thee on: (iy Preeti te mtg cal stneen a (hyn emees {hy Thekoyrord which nes ht eet es (appli eysie wir (absent (2) Med tht conser + chant 10 oppecase Wem (OTL Cue!) fepovpet) (@ pt percontcr {69 Give he ops of te flowing statement nississi 0 (20

You might also like