0% found this document useful (0 votes)
30 views9 pages

XII Prelim II - CS-I Solution

This document is a Computer Science examination paper for XII grade students, consisting of multiple-choice questions, short answer questions, and programming tasks. It covers various topics such as context switching, data structures, sorting algorithms, and HTML coding. The paper is structured into sections with specific marks allocated for each question, totaling 50 marks.

Uploaded by

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

XII Prelim II - CS-I Solution

This document is a Computer Science examination paper for XII grade students, consisting of multiple-choice questions, short answer questions, and programming tasks. It covers various topics such as context switching, data structures, sorting algorithms, and HTML coding. The paper is structured into sections with specific marks allocated for each question, totaling 50 marks.

Uploaded by

ak3490062
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 9

12 PREP Marks : 50

LAKSHYA
XII-CS-1-PRELIM- SUBJECT : COMPUTER SCIENCE - 1 Time (mm:ss) : 150:00
TEST (24-25) FULL SYLLABUS

Q.1.A. Select correct option from the following and rewrite sentence : 4

1) The time lost in turning the attention of processor from one process to another process is called as ________.

a) Circuit Switching

b) Band width

c) Context Switching

d) Packet Switching

Ans 3
:

Exp Context Switching


:

2) A record is a collection of ________.

a) Files

b) Arrays

c) Fields

d) Maps

Ans 3
:

Exp Fields
:

3) If all visibility tables are missing then by default members of class are _______.

a) Public

b) Protected

c) Private

d) Void

Ans 3
:

Exp Private
:
4) _______ tag is used to put a line break in HTML Code.

a) <HR>

b) <BR>

c) <P>

d) <LI>

Ans 2
:

Exp <BR>
:

Q.1.B. Answer any TWO of the following : 6

5) What a Friend Function ? Write any four characteristics of Friend Function.

Exp Definition of friend function (1 Mark)


: Four Characteristics (½ Mark each)

6) Explain in short the three special characteristics of a static data member in a class.

Exp Three characteristics (1 Mark each)


:

7) Discuss Virus Detection, Virus Removal and Prevention Philosophies.

Exp Virus detection (1 Mark)


: Virus removal (1 Mark)
Virus prevention (1 Mark)

Q.2.A. Answer any TWO of the following : 6

8) Explain with flowchart the following control structures :


i) Sequence Logic
ii) Selection Logic
iii) Iteration Logic

Exp Explanation of Sequence Logic (1 Mark)


: Explanation of Selection Logic (1 Mark)
Explanation of Iteration Logic (1 Mark)

9) Explain Bubble Sort Algorithm with suitable example.

Exp Bubble Sort Algorithm (2 Marks)


: Example (1 Mark)
10) What functions are performed by Memory Management of Operating System ?
State any four Memory Management System.

Exp Two functions of memory management of operating system. (½ Mark each)


: Any four memory management system. (½ Mark each)

Q.2.B. Answer any ONE of the following : 4

11) What is Operator Function ? Describe the syntax of an Operator Function.


Explain the difference between Operator Function as the Member Function and Friend Function.

Exp Definition of operator function (1 Mark)


: Syntax of operator function (1 Mark)
Two differences (½ Marks)

12) With reference to process management. Explain the terms :


i) External Priority
ii) Purchased Priority
iii) Internal Priority
iv) Time Slice

Exp i) External Priority (1 Mark)


: ii) Purchased Priority (1 Mark)
iii) Internal Priority (1 Mark)
iv) Time Slice (1 Mark)

Q.3.A. Answer any TWO of the following : 6

13) Write difference between Linear Search and Binary Search.

Exp 3 Differences (3 Marks)


:

14) Explain different types of inheritance with suitable diagram.

Exp Any three types of inheritance with diagram.


:

15) How linked list are represented in Memory ?

Exp Memory representation of linked list. (3 Marks)


:

Q.3.B. Answer any ONE of the following : 4


16) Define the following terms with reference to Tree :
i) Root
ii) Leaf
iii) Sibling
iv) Depth

Exp Difference of
: i) Root (1 Mark)
ii) Leaf (1 Mark)
iii) Sibling (1 Mark)
iv) Depth (1 Mark)

17) What is Computer Virus ? What are the different methods by which virus can infect other programs ?

Exp Definition of computer virus (1 Mark)


: Three method of infection (3 Marks)

Q.4.A. Answer any TWO of the following : 6

18) With syntax diagram explain structure of HTML Webpage.

Exp Structure of HTML Webpage (1 Mark)


: Explanation (2 Marks)

19) Explain the concept of function overloading with example.

Exp Function overloading (2 Marks)


: Example (1 Mark)

20) Explain any three features of Windows-NT Operating System.

Exp Three features of Windows-NT (1 Mark each)


:

Q.4.B. Answer any ONE of the following : 4

21) State the various steps involved in the allocation of partition in case of fixed partition memory management.

Exp Definition of fixed partitioning (1 Mark)


: Three steps of allocation (3 Marks)

22) Explain the use of Scope resolution Operator and Memory Management Operators in C++ with example.

Exp Scope Resolution operator


: Use (1 Mark)
Example (1 Mark)
Memory management operators
New and delete (½ Mark each)
Example of each (½ Mark each)
Q.5. Solve any TWO of the following : 10
23) a) Write a program in C++ to read a set of 10 numbers from keyboard and find out largest number in the
given array.

b) Write a program in C++ to find factorial of entered number.

c) Write a code in HTML for following table :


Computer Science Paper I Paper II Paper III

100 100 200

OR

a) Impliment class GCD which have member function (a/c), which calculate greatest common divisor of two
number entered during program execution.
Print ( ) will Print GCD of two number.

b) Write a C++ program to display a series of 15 term of the Fibonacci Series.

c) Write the exact output of the following HTML Code with font specification in backet.
<html>
<title> Introduction </title>
<body>
<hl> <b> Computer Science </b> </hl>
<hr>
<u> Paper - I </u>
<hr>
<u> Paper - II </u>
</body>
</html>

Exp a) # include <iostream . h>


: void main ()
{
int num [10], max ;
cout <<"Enter the number" ;
for (int i = 0 ; < 10 ; i ++
{
cin >> mun [i] ;
max = num [0]
for (int j = i ; j < 10 ; j ++
{
max = num [j] ;
}
}
count << "Largest number in the
array is "<<max ;
}

b) # include <iostream . h>


void main ()
{
in f, n, i ;
count << "Enter number" ;
(in >> n ;
f=l ;
for (i = l ; i < = n ; i ++)
{
f=f*i;
}
count << " factorial of inputted
number" << f ;
}

c) <html>
<head>
<title> computer science </title>
</head>
<body>
<Table border = "1" cellspacing = "15" >
<TR>
<TD Rowspan = "2" > Computer Science </TD>
<TD> Paper - I </TD>
<TD> Paper - II </TD>
<TD> Total </TD>
</TR>
<TD> 100 </TD>
<TD> 100 </TD>
<TD> 200 </TD>
</TR>
</Table>
</body>
</html>
OR

a) # include <iostream . h>


# include <conio . h>
class ged
{
public : int a, b;
public : void cal ()
{
count <<"\n enter two number' ;
cin>>a>>h ;
while (a! = b)
{
if (a > b)
a=a-b ;
else
b=b-a
}
} ;
void main ()
{
(\rscrl) ;
ged x ;
x.call () ;
x.print () ;
getch () :
}
b) # include <iostream . h>
# include <conio . h>
void main ()
{ cirser ()
int a, b, c ;
a=0;
b=1;
count <<"\n fibrnaccie series is" ;
count <<a<< end / <<b ;
for (int i = 2 ; i < = 15 ; i++)
{
c = a+b ;
count <<c<<end\ ;
a=b;
b=c;
}
getch () ;
}

c)

* ALL THE BEST *

You might also like

pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy