Open navigation menu
Close suggestions
Search
Search
en
Change Language
Upload
Sign in
Sign in
Download free for days
0 ratings
0% found this document useful (0 votes)
32 views
15 pages
Class 10 Computer Specimen
FRANK Computer Specimen Paper
Uploaded by
debjitdutta556
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
Download
Save
Save Class 10 Computer Specimen For Later
Share
0%
0% found this document useful, undefined
0%
, undefined
Print
Embed
Report
0 ratings
0% found this document useful (0 votes)
32 views
15 pages
Class 10 Computer Specimen
FRANK Computer Specimen Paper
Uploaded by
debjitdutta556
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
Carousel Previous
Carousel Next
Download
Save
Save Class 10 Computer Specimen For Later
Share
0%
0% found this document useful, undefined
0%
, undefined
Print
Embed
Report
Download
Save Class 10 Computer Specimen For Later
You are on page 1
/ 15
Search
Fullscreen
QUESTION 1. Choose the correct answer and write the correct option. @ Ans: (ii) (iii) Ans: (iv) (v) Ans: Specimen Paper (Solved) SECTION A (40 Marks) Attempt all questions. Wrapping up of data and methods together as one unit is termed as: (@) Inheritance () Polymorphism (©) Encapsulation (@) Abstraction (c) Encapsulation The datatype which is specified that the method does not return a value is: (@ Void (b) void (©) VOID (@) boolean (b) void The logical operator which is an unary operator: (a) && @ 11 ©! @ >> ()! The Scanner class is a class. (@) Primitive (b) Derived (©) Wrapper (@) super class (c) Wrapper Math.pow(625, 2) + Math.sqrt(144) (a) 17.0 (b) 13.0 (©) 37.0 @ 13 edi (Working: 1.0+12.0=13.0]Ans: a) Ans: (viii) (ix) Ans: (x) statement printinin%2 return fe iftn® return else return “false”: ifn System.out.printin(“true”); else System.out.printin(*false”); ifin® return false; else return false: ifin%2==0) System.out.printIn(“true”); else System.out.println(“false”); ICSE Computer Applications Papers 1” the following ternary operation statement is: true” :*false”); Multiple branching statement of java is: (a) oo 7) (ad @ For while do...while switch switch The number of bytes occupied by the constant 45 are: (a) o a) (d) (a) do.. (@) o o (d) ©) fortk=1;k: four bytes two bytes eight bytes one byte one byte while loop is an entry controlled loop infinite loop exit controlled loop finite loop exit controlled loop fone byte stores whole numbers from -128 to 127]im Model Test Papers ———— Ans: (xi) Ans: (xii) Ans: (xiii) (xiv) Ans: (xv) f for(m=lim<=4;m++) t System.out.printIn(m*2); ! ! How many times the inner loop is executed? (a) 4 times (b) 8 times (c) 2 times (d) 16 times (b) 8 times A method with the same name as of the class and with arguments and no return data type is termed as: (a) parameterised constructor (b) default constructor (c)_ non-parameterized constructor (d) wrapper class method (a) parameterised constructor int ; What is the value of res? @) ) (o) @ (c) 65 The style of expressing single line comment is: (a) /* comment */ (b) * comment (©) comment (d) /* comment (c) //comment The method to check if a character is an alphabet or not is: (a) isLetter(char) (b) isAlpha(char) (c) isUppercase(char) (d) isLowerCase(char) (a) isLetter(char) The output of Double.parseDouble(“71.25") + 0.75 is: (a) 72 (b) 72.0 (ce) 71.0 (d) 71.75172 ICSE Computer Applications Papers Ans: (b) 72.0 171.25 + 0.76 =72.0) (xi) The method to convert a string to upper case is: (a) toUpperCase(char) (b) toUPPERCASE(String) () toUpperCase(String) (d) touppercase(String) Ans: (c) toUpperCase(String) (xvit) The output of the method “DETERMINATION” substring(2,6) is (a) “TERM” (b) term () “Term” (d) “TERMi” Ans: (a) TERM (xviii) The array int x/10] occupies. (a) 10 bytes (b) 40 bytes (c) 20 bytes (d) 80 bytes Ans: (b) 40 bytes 110 x 4 bytes(int) = 40 bytes] (xix) The element in x(4] of the array (3,5,7,12,16,18,20,35,42,89) is: (a) 16 (b) 12 (co) 7 (d) 18 Ans: (a) 16 (xx) Name the type of error that occurs for the following statement: ‘System.out.println(Math.sqrt(24-25)); (a) Syntax error (b) run time error fe) logical error (d) no error Ans: (d) no error [Output; NaN”. which is not an error. NaN stands for ‘not a number". “Nan” is produced if @ floating-point operation has some input parameters that cause the operation to produce some undefined result.) (2) (i) Evaluate the expression: Z taav+ + -- b+ tta + “dFModel Test Papers 173 ee Ans: Ans: (iv) Ans: (w) Ans: Z=10 +10 +44 12 43; =39 Write java expression for |x? +xy\. Math.abs((Math, pow(x,2)+x*y)); Rewrite the following using ternary operators: iflx>y) (2) [2] c= else ca’; c=(x>y)MA'a"; Rewrite the following while loop using for loop. [2] int x=5; while(x<=5) f xtty I ‘System.out println(x); int x; for (x=5; x<=5; x++) System.out.printIn(x); How many times the following loop will gets executed? What is the output of the same? 2 int counter = do f ‘System.out.printin(counter); Jwhile( counter++<5); Working Counter | ExecutionCount | Output 1 a | 1 2 2 2 3 3 see 4 4 4 | eed ceed ‘The loop will get executed for 5 times.174 Output (vi Ans: ett Ans: viii ixy Ans: (b) (xo Ans: 1 3 4 “MISSISSIPPI” replacet’S, ‘t).toLowerCase() @] mittittippi “REDUCE” compareTo(“REVOLT")+"ANTARTICA’ lastIndexOf"'’) 2) 10 (Working: -18 + 8-10] Define boxing with example. 2) Automatic conversion of primitive types (int) to their corresponding object wrapper class (Integer) is known as boxing. Consider the following program and answer the questions given below: 2] class sample int a, sample (int x, int y) a=x; void calculate () int 2; z=a+b; System.out.printin(z); (a) Name the global variables. (b) What are the method variables? (aba &b xy &z Consider the following array and answer the questions given below: pI int x{ ] = (23,45,67,12,45,89,24,12,9,7) (a) What is the size of the array? (b) What is the position of 89? (a) Size of the array is 10 (b) 5Model Test Papers 175 SECTION B (60 Marks) Attempt any four questions from this section. The answers in this section should consist of the programs in either BlueJ environment or any program environment with Java as the base. Each program should be written using Variable Description/Mnemonic Codes such that the logic of the program is clearly depicted. Flowcharts and Algorithms are not required. GeesTion se Ans: Define a class with the following specifications: 15) Class name Member variables employee : eno ~ employee number ename ~ name of the employee age — age of the employee basic — basic salary net - net salary (Declare the variables using appropriate data types Member methods void accept() void calculate() void print() void main() import java.util class employee ce int eno, ager String ename; double basic,net: void accept () { : accept the details using scanner class : to calculate the net salary as per the given specifications: net=basic + hra + da — pf hra= 18.5% of basic daz 17.45% of basic pé= 8.10% of basic if the age of the employee is above 50 he/she gets an additional allowance of 5000. : to print the details as per the following format eno ename age basic _—net. : to create an object of the class and invoke the methods. Scanner sc=new Scanner (System. in); system.out.print ("Input employee number\n”) ; eno=sc.nextInt (); sc.nextLine();O\t\t"+"ename\t\t"+"age\t\t"+"basic\t\ n(eno+"\t\t"rename+"\t"tage+"\t\t"+basict”\ Variable Description Data Type | Description int __|Tostore employee number int fo store employee age _ "String [To store employee name double __| To store basic salary double To store net salaryDefine a class to overload the method print as follows: (15) void print() boolean print(int n) void print (int a, char ch) import java.uti class overload { void print () int i,j, k=l; for ( : to print the format 1 23 456 78910 : to check whether the number is a Dudeney number. A number is dudeney if the cube of the sum of the digits is equal to the number itself. Eg: 512=(5+1+2) = (8°=512 : if ch= s or S print the square of the number else if ch=e or C print cube of the number. void print (int n) int temp=n,d, su while (temp!=0)178 ICSE Computer Applications Papers if((int) Math. pow (sum, 3 n) -Print1n ("Number is a Dudeney number"); +printin(*Number is not a Dudeney number”); println("Square of the number: tata); ntin ("Cube of the number:"ta*ata); system.out .printIn ("Incorrect character input”); Variable Description Data Type Description i int To run the loop S| into run the loop x | int | To store value for printing pattern | a | int | Tostore digitcfthenumber SSS n int | Tostorean integer value ==~=~S*~*~S~S~«~* I temp | __ int | Tostore copy ofan integer value SSCS [4 caine fromthe number SSS~*Y (Epeteeeet ree cairo ‘To store digits sum cube | ch char |Tostore choice value rere PetsModel Test Papers 179 QUESTION 5A A@oai_ i Define a class to accept 10 integers and arrange them in descending order using bubble sort. Print the original array and the sorted array. (5) Ans: class bubbleSort ( public static void main(String args{]) ( Scanner s csnew Scanner (System. in); int ar[] ew int (10],i,j,temps system.out.print1n( for (i=0;1<107i++) ( put any 10 integers”); ar[iJ=sc.nextint ()7 ) System.out.printIn("The Original Array”); for (i=0;1<10;i++) { system. out.printla(ar[il); ) for (i=0;i<97it+) { for (j=0. { is j++) if(ar(j]
You might also like
Specimen Papers
PDF
No ratings yet
Specimen Papers
19 pages
Class 10th Icse 2025 Computer Question Paper.
PDF
100% (2)
Class 10th Icse 2025 Computer Question Paper.
12 pages
Class 10 Computer Notes
PDF
No ratings yet
Class 10 Computer Notes
163 pages
Arihant - Computer 12 Icse Class 10
PDF
No ratings yet
Arihant - Computer 12 Icse Class 10
5 pages
Icse 2023 Specimen Qpans
PDF
No ratings yet
Icse 2023 Specimen Qpans
12 pages
CMS PRE-BOARD Question Paper Class 10th Computer
PDF
No ratings yet
CMS PRE-BOARD Question Paper Class 10th Computer
9 pages
Arihant - Computer 15 TH Sample Paper Icse Class 10
PDF
No ratings yet
Arihant - Computer 15 TH Sample Paper Icse Class 10
5 pages
ICSE Class 10 Computer Applications
PDF
60% (5)
ICSE Class 10 Computer Applications
68 pages
Key Answers Kisa Preparatory Computer Applications
PDF
40% (5)
Key Answers Kisa Preparatory Computer Applications
9 pages
Arihant - Computer Sample Paper 13 ICSE 2025
PDF
No ratings yet
Arihant - Computer Sample Paper 13 ICSE 2025
5 pages
Reseach Paper of 2024 - 25 of Computer
PDF
No ratings yet
Reseach Paper of 2024 - 25 of Computer
5 pages
Computer Applications (2023)
PDF
No ratings yet
Computer Applications (2023)
8 pages
CBS, Computer Applications
PDF
No ratings yet
CBS, Computer Applications
7 pages
Adobe Scan 28-Jan-2025
PDF
No ratings yet
Adobe Scan 28-Jan-2025
25 pages
X Practice Paper
PDF
No ratings yet
X Practice Paper
10 pages
Computer Applications
PDF
No ratings yet
Computer Applications
7 pages
Methods - Overloading.number Based
PDF
No ratings yet
Methods - Overloading.number Based
20 pages
Preboard 1 X
PDF
No ratings yet
Preboard 1 X
6 pages
Comp - QP - ICSE CLASS X
PDF
No ratings yet
Comp - QP - ICSE CLASS X
9 pages
XPaper18 (Solved)
PDF
No ratings yet
XPaper18 (Solved)
10 pages
Class X Postprelims 2024
PDF
No ratings yet
Class X Postprelims 2024
5 pages
Prefinal 2025
PDF
No ratings yet
Prefinal 2025
6 pages
Number Programs
PDF
No ratings yet
Number Programs
44 pages
Compter App - Specimen Paper
PDF
No ratings yet
Compter App - Specimen Paper
9 pages
Https App - Oswaalbooks.com Download Sample-Qp Subsolution 714self Assessment Paper-3
PDF
No ratings yet
Https App - Oswaalbooks.com Download Sample-Qp Subsolution 714self Assessment Paper-3
4 pages
Frank 1
PDF
No ratings yet
Frank 1
10 pages
Https App - Oswaalbooks.com Download Sample-Qp Subsolution 223self Assessment Paper-2
PDF
No ratings yet
Https App - Oswaalbooks.com Download Sample-Qp Subsolution 223self Assessment Paper-2
4 pages
Specimen 2025
PDF
No ratings yet
Specimen 2025
12 pages
Mock Test 04
PDF
No ratings yet
Mock Test 04
6 pages
CBS Computer Application
PDF
No ratings yet
CBS Computer Application
5 pages
Icse Semester 1 Examination Specimen Question Paper Computer Applications
PDF
No ratings yet
Icse Semester 1 Examination Specimen Question Paper Computer Applications
12 pages
Important Computer
PDF
No ratings yet
Important Computer
40 pages
BCGS CA I10 ME Jan23
PDF
No ratings yet
BCGS CA I10 ME Jan23
4 pages
Computer 2023
PDF
No ratings yet
Computer 2023
20 pages
Solved 2019 Question Paper ICSE Class 10 Computer Applications
PDF
No ratings yet
Solved 2019 Question Paper ICSE Class 10 Computer Applications
19 pages
CTA Prep QP
PDF
No ratings yet
CTA Prep QP
4 pages
Comp - 10 - Selection Exam
PDF
No ratings yet
Comp - 10 - Selection Exam
6 pages
CTA Prep QP
PDF
No ratings yet
CTA Prep QP
4 pages
Avm Computer Prelim Paper
PDF
No ratings yet
Avm Computer Prelim Paper
8 pages
Preliminary Examination Computer Applications: Bombay Scottish School, Mahim
PDF
No ratings yet
Preliminary Examination Computer Applications: Bombay Scottish School, Mahim
5 pages
ICSE Computer Solved Paper 2019
PDF
No ratings yet
ICSE Computer Solved Paper 2019
5 pages
X Pre-Board 2024-25 Comp. App
PDF
No ratings yet
X Pre-Board 2024-25 Comp. App
8 pages
AOASS Selection
PDF
No ratings yet
AOASS Selection
8 pages
2025 COPPER Maneckji
PDF
No ratings yet
2025 COPPER Maneckji
7 pages
Isce Computer Previous Yr Question Ppr. (2019-2014)
PDF
No ratings yet
Isce Computer Previous Yr Question Ppr. (2019-2014)
123 pages
2025 Solved
PDF
No ratings yet
2025 Solved
10 pages
JNS Ca Prelim 1 Paper
PDF
No ratings yet
JNS Ca Prelim 1 Paper
9 pages
Class 10 Computer Solved 4-7
PDF
No ratings yet
Class 10 Computer Solved 4-7
56 pages
ICSE Question Paper Computer Application 2012
PDF
0% (1)
ICSE Question Paper Computer Application 2012
16 pages
Class 10 Computer Solved 1-3
PDF
No ratings yet
Class 10 Computer Solved 1-3
45 pages
Computer Applications JML
PDF
No ratings yet
Computer Applications JML
7 pages
Computer Practice
PDF
No ratings yet
Computer Practice
9 pages
42ee4513-7a82-4221-bc3a-ceeb1fcfe462
PDF
No ratings yet
42ee4513-7a82-4221-bc3a-ceeb1fcfe462
8 pages
Mock 6
PDF
No ratings yet
Mock 6
5 pages
II Prelim Revision 2024 Computer
PDF
No ratings yet
II Prelim Revision 2024 Computer
5 pages
10th Computer FLT Paper 22.09.2024
PDF
No ratings yet
10th Computer FLT Paper 22.09.2024
6 pages
Icse 2023 Specimen Cta
PDF
No ratings yet
Icse 2023 Specimen Cta
9 pages
Mock Test X - Terminal - 2022
PDF
No ratings yet
Mock Test X - Terminal - 2022
4 pages
CH 7. HTML
PDF
No ratings yet
CH 7. HTML
30 pages
CH 6. Networking
PDF
No ratings yet
CH 6. Networking
22 pages
CH 1. Networking
PDF
No ratings yet
CH 1. Networking
20 pages
CH 2. Networking
PDF
No ratings yet
CH 2. Networking
14 pages
Class 10 Mathematics Specimen
PDF
No ratings yet
Class 10 Mathematics Specimen
11 pages
CH 3. Networking
PDF
No ratings yet
CH 3. Networking
12 pages
CH 4. Networking
PDF
No ratings yet
CH 4. Networking
12 pages
CH 5. Networking
PDF
No ratings yet
CH 5. Networking
24 pages