0% found this document useful (0 votes)
117 views6 pages

10th Computer Science Half and Full Book

Uploaded by

engr.saeed92
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)
117 views6 pages

10th Computer Science Half and Full Book

Uploaded by

engr.saeed92
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/ 6

The Hope Test Series || 3||

13 Computer Science-10
Test 06: 1st Half (Ch. 1-2) •æ "
Objective Part
Name: ____________________
Marks: 10 Time: 15 Minutes &15:%æ 10:#$
Roll Number: ______________
5
$%&'(Ñ)*+,ÇÏ-./0ÈÇ12ÑÏ%34æ,ÇÏ 6
7Ï890áÇ:; <=>?Ç1 "# /ÏD ÑæÇ C¡B¡A Ê(Ç)*Ñ+,áÇ-.
1LáÇ:
"BCÑDEÈÇ1+Ñ*F3ÊÑGHI(J(K>'I(J*4æ,ÇÏ+Ï'Ò%@Ç"AÏ

D C B A Questions / Ê$Ç% Ñ "



!" " :&'(¡&)ÏÏ*+,ãÇ-æ./012Ç-æ.34æ567Ç
ìÇì " • Ç #$
A A software that facilitates programmers in 1
An IDE An Editor A Compiler
Debugger writing computer programs is known as:
!"Ç#$ÑæÇ%&'()*Ç+,Ç-Ç ./01Ç#æ23
#%&
•æÑ!"
õ • "Ç# ! "$" •æÑ!Ç"æ4
õ :45678%&'9;!<=>Ç

Semantic Building Programming Every programming language has some 2
Syntax
Rules Blocks Rules primitive building blocks and follows some
grammar rules known as its:
• "# : "#$%&Ê'Ç()ìÏ*+,
•æFÑ" ãÇ æ! •&"#
Computer The set of instructions given to the 3
Hardware Program Soft Copy
Language computer is called:
ã# ä Òì" •""# !"$Ç &'()*+______Ê Ç!"#$%
All of Natural Computer English Instructions for the computer are written 4
these Language Language Language in:
(;)" " (.)• !
(#) (:) ! : "(ã$Ç%&Ç'()*+,
Semi Full Stop 5
Hash (#) Colon (:) In C language, each statement ends with a:
Colon (;) (.)
¿,#-./a/"3"#$%&Ç'()*+
Let the following part of code, what will be
8.2 8.0 8 8.8 the value of variable a after execution? 6
int a=4;
float b=2.2;
a=a*b;
¿9:#á;Ç<!"=Ï1$ÄÂ23456ä+78äÇ
display printf getche getch Which function is used to show output on 7
screen?
•!" • Â"äÇ • Â"Ñ#Ç )*+
:"#$%&'f8!scanf ( )
None of Input Address Variable 8
In scanf ( ) function, f is called:
these Operator Operator Type
¿ "#$%Úæ&'()*Ï+,-.#/01Ç2ä-
\b \r \t \n Which escape sequence moves the cursor to 9
the start of the same line?
¿ "#$%&'()Â*
> = || * 10
Which operator has the lowest precedence?
The Hope Test Series || 4||
14 Computer Science-10
Test 06: 1st Half (Ch. 1-2) • Ç"
Subjective Part
Name: ____________________
Marks: 40 Time: 1:45 Hours
Roll Number: ______________ &1:45:%æ 40:#$
( Part – I •!"$%& )
08 Write short answers to any FOUR parts. •(Ê)Ç*+"ÁÇ#ÇÑ$%&' •2
What is meant by reserved words? ¿,ÏÇ-.%Ò/Ñæ0 (i)
What is the main section of a program? ¿,.123ãÇ4æ5 (ii)
Define char data type. • "#$%&'(Char (iii)
Who is a programmer? ¿*+,-Ç.æ/ (iv)
What is meant by computer language? ¿0ÏÇ-123456 (v)
; =
Name any two computer languages. <
•7ã89>456æÏ?@A (vi)
08 Write short answers to any FOUR parts. •7ÊBÇCD9ÁÇEÇÑF2@A •3
& ( '+
What are multi line comments? • "#$%')* ,-./ (i)
What is meant by constant? Name its types. •1ã23ã4Ç$ÓÇ¿5ÏÇ6789, (ii)
&(; A
:
* )')
Write the syntax for declaring a variable. •1% <=>@B*)CD*EF,G (iii)
Define escape sequence. • "#$HIJÇ (iv)
Define scanf function. •
"#$Kscanf (v)
" &
%
LMæ>NÏáO¿P7ÒQRÂS $ ìÑ
#
What are relational operators? Describe with an !
• (vi)
example.
08 Write short answers to any FOUR parts. )*Ê+Ç,-.ÁÇ/ÇÑ0123 )4
What is meant by input and output in C language? ¿4ÏÇ56178ÄÂÑæÇ7äÇ9:;< (i)
¿=>?á@ÇA1ä3B.78ÄÂÑæÇ7äÇ9:;< (ii)
What functions are used for input and output in C language?
Write the use of \a escape sequence. )CDEá@ÇFGHIÇ\a (iii)
What are operators? ¿="#$%&Â (iv)
Write the use of NOT operator. $%&'á Ç!"#ÂNOT (v)
What is meant by unary operator? Give an example. $)Ïá*¿+ÏÇ,-."#Âì/0 (vi)
&
•%&08 áÇ!"#$%&Ê'Ç( Ê)Ç!æÏ#"# • !"#%'(
Part – II, Attempt any TWO questions. Each question carries 08 marks.
08 •()*á+Ç,-Ñã.,/•(012ÊÇ/ •5
Define variables. Write the rules for naming variables.
;? C
08 •()*345678:<=>@ÇÑæÇB !"#$! %&()*Ï+,á- •6
Write the process of declaring and initializing a variable. Explain it with an example.
08 /012æ,Ò34Â567*8(¿9:;<Ò34Â56 /7
What are logical operators? Explain any three logical operators.
The Hope Test Series || 5||
15 Computer Science-10
Test 07: 2nd Half (Ch. 3-5) •æ "
Objective Part
Name: ____________________
Marks: 10 Time: 15 Minutes &15:%æ 10:#$
Roll Number: ______________
(
)
34567Ñ89;<ÇÏ=>?,ÈÇ "ÑÏ#$•æ&ÇÏ' *Ï+,-áÇ./ 0123Ç 12 0 /ÏD ÑæÇ C¡B¡A Ê(Ç)*Ñ+,áÇ-.
1EáÇ.
>@AÑBCÈÇ <Ñ;D$ÊÑ45678792:678;•æ&ÇÏ<Ï:Ò#=Ç>?Ï

D C B A Questions / Ê$Ç% Ñ "


%
!"#&'
ÝÂ ÄÂ!"Ç
9)*+,- •!"#$%& ¿&'(7*(+Ñ(,ìÑ-./0Ç12If
$%ÂÑ&Ç"Ä# &'3ßÑãÇ0æ4
õ
Compiler Further code Index out Program In if statement, what happens if condition is 1
asks to executes crashes false?
of bound
change
error
" $ &"'( #"%) " $ &"'( #"%)
condition
• "#$%______ !#% *+,-./ !#% 0Ï1Ò23Ç
“” () [] {} If we want to associate more than one 2
statements to an if statement, then they
need to be enclosed inside:
______ !"#ÑÏ$%&'()Ç*+,if-else-if
•!else
•!" ã# • !"#$%&Ç
Under 3
None All First Which statement executes in if-else-if
else
structure if the given conditions are false?
•/!"Ç #'
Increment # "$%&(Ç ì!" Ø "&$%&'(_______&•!For
4
/ Initialization Body Condition _______ part of for loop is executed first.
Decrement
+/
______ !"#$Ç% &'(*,-.0Ç12 3Ç45ÑÇ
•æ &*
!æÏBÑæÇA !"#%'()+Ç
at the time 5
Both A&B before after To initialize the array in a single statement,
of
initialize it _______ declaration.
á Ç_______ $%ÑÓÇ&'()*+,-Ñ.%Ñ'/ÑÇ
!#
ã #$Ç • !"#$%
None of 6
Name Index Number To access the data stored in an element of
these
an array which one can be used?
:!!"#$Ç%&Ñ'()ÑÇ
-2 -1 1 0 7
The index of first element of an array is:
• " • $%"# •!#$ • !"ÏÏ#$%&________ F "#$%&'(
8
all debug modify understand Readability helps to _________ the code.
•&" •Ïã%D# • !"#$# :()*+&,-.ÇæÒ#Ç ÑæÇ"#ä$Ñ¡ã%&'
•!1
Function Naming the Function The process of defining the function name, 9
Definition
Calling function Signature return type and parameters is called:
:#$%&'()Ò*Ç ÑæÇ!"ÑÂ
Þ! •Ç •
The type of arguments and parameters 10
Odd Even Same Different
must be:
The Hope Test Series || 6||
16 Computer Science-10
Test 07: 2nd Half (Ch. 3-5) • Ç"
Subjective Part
Name: ____________________
Marks: 40 Time: 1:45 Hours
Roll Number: ______________ &1:45:%æ 40:#$
( Part – I •!"$%& )
08 Write short answers to any FOUR parts. •)Ê#Ç$%&ÁÇ'ÇÑ()*+ •2
What is if statement? ¿,-.if (i)
¿,/06"#$%•&'()Ç*.if-else (ii)
In if-else statement, if the given condition is not true then which part will execute?
Write the structure of if-else-if statement. ,-./01234if-else-if< (iii)
66
Write the structure of nested if-else statement. ,>01234if-else789:;<= (iv)
66
Define nested selection structures. ,-?@ABCD789:;= (v)
Write the output of this code: E>FGÄÂA2HÓÇ (vi)
int a = 7 , b = 10 ;
a=a+b;
if (a > 20 && b < 20)
b=a+b;
printf (“a = %d, b = %d”, a, b) ;
08 Write short answers to any FOUR parts. •)Ê#Ç$%&ÁÇ'ÇÑ()*+ •3
What is a data structure? ¿,-./01 (i)
How do an array store values in memory? ¿,23Ù45ìÑ6Í78+Ò9æ:ÑÇ (ii)
How many types of loops are there in C language? Name them. •)ã;¿<=>?Í7@5AB! (iii)
,, 2
Explain the working of nested loop. ¿&2%Í&'(Ñæ+•*-./013 (iv)
Explain the condition part of for loop. 89:;æ+4567•*for (v)
Identify the errors of this code: <9=>?+@ABCDÓÇ (vi)
int a[ ] = {1,2,3,4,5} ;
for (int j = 0 ; j < 5 ; j++)
printf (“%d “, a(j)) ;
08 Write short answers to any FOUR parts. •+Ê"Ç#$%ÁÇ&ÇÑ'()* •4
How can we easily handle errors using function? ¿,-./á0(12ÂÍ34*ÒÑ5Ç6789á:Ç; (i)
What does the return type indicate in the function
signature? ¿,<9=>/?@äAÑB• !"#$; (ii)
How is a function called? ¿,-./áCÍ34*;DÇ (iii)
G! $
What is meant by arguments? ¿,ÏÇE/(F "# %ÑÂ (iv)
What is meant by parameters? ¿'ÏÇ)*+Ò,Ç- (v)
Identify the errors of this code: :7./0123456ÓÇ (vi)
int max (int a; int b)
{
if ( a > b)
return a;
return b;
}
•%&08 áÇ!"#$%&Ê'Ç( Ê)Ç!æÏ#"# • !"#%'( &

- / 1-23 .-04 - / 1-23 .-04


Part – II, Attempt any TWO questions. Each question carries 08 marks.
08 •()*æ+, . 0 5ÇÝÇÑæÇÝÇ¿%6,.0 7 •5
What are selection statements? Explain if and if-else statements.
08 ¿.89Ï!"#$Ï%&'ã()*ãÇ+æ,-Ç $6
Write a program to determine whether a given number is prime number or not.
08 Write four advantages of functions. 01234Ç5Ñ678 07
The Hope Test Series || 7||
17 Computer Science-10
Test 08: Full Book •æ "
Objective Part
Name: ____________________
Marks: 10 Time: 15 Minutes &15:%æ 10:#$
Roll Number: ______________
MCQs RESPONSE PART
1 ABCD 4 ABCD 7 ABCD 10 ABCD 13 ABCD
2 ABCD 5 ABCD 8 ABCD 11 ABCD 14 ABCD
3 ABCD 6 ABCD 9 ABCD 12 ABCD 15 ABCD
7
8
'()*+Ñ,-./ÇÏ0123ÈÇ&4ÑÏ(56æ/ÇÏ" 9Ï:;3áÇ<• =>? %Ç& #$ " !ÏD ÑæÇ C¡B¡A Ê(Ç)*Ñ+,áÇ-.
1LáÇ<
#@AÑBCÈÇ&.Ñ-D5ÊÑEFG+H+I?*G+H-6æ/ÇÏ.Ï*Ò(JÇ#KÏ

D C B A Questions / Ê$Ç% Ñ "


' ) +',- ('*.
!#% •="#$%&_________&(* include
!% "$ ! Ñ
include statements are written in ______ 1
print comments main header
section.
"•!D !_______8!"#Ç$æ%-C scanf
! ì#$ •!"
None of scanf is a _______ in C programming 2
Function Library Keyword
these language.
"
• •Ñ!#$%&' ( Ñ")Ñ#Ñ 01 #$% á"Ç#$%&')*+,-._______ % !Â
3
Square Factorial Remainder Percentage The operator % is used to calculate:
¿+,!-.c¡a"!"#$%&'ä()*äÇ
a+c==0 a*c==0 c%a==0 a%c==0 Which is the condition to check a is a 4
factor of c?
""$ , !"#______56$784ifÑæÇ1ÇÑ2Ç34if0Ç
•Ò ì• %ìÑ
# !"#$ !"#$%'
An if statement inside another if statement 5
decomposed repeated boxed nested
is called ______ structure.
á Ç!"#Ç$ÏÑ%Ñ%&'("Ê Ç!#$% ______
! áæ Øæ! • &'() 6
Data Control Conditional Loop ______ structure allows repetition of a set
of instructions.
,
•æÓÇ $%&'()+!"#-Ç_________"#$ D#ÑÇ
!æÏBÑæÇA •!ÓÇ •!ÓÇ
at the time Array can be initialized ______ 7
Both A&B before after
of declaration.
• !ÑÒ# • !Ñæ# • !#$Ç
CÑæÇA !æÏ !"#________$äÇ%-
User Server Admin 8
Both A&C Functions could be built-in or:
Defined Defined Defined
$
%# ä"Ñ
!ÑÂ •ÑÇ •! !"#________ !"Ó#$%
Return 9
Arguments Arrays Bodies The values passed to a function are called:
Types
$ !"#$
• Â;#%'&(ì)
• " á ÇÑ"Ñ" 0________ Ç!"#$á%Ç&'
Easy %& 10
All Reusability The advantages of using functions are:
Debugging Readability
The Hope Test Series || 8||
18 Computer Science-10
Test 08: Full Book • Ç"
Subjective Part
Name: ____________________
Marks: 40 Time: 1:45 Hours &1:45:%æ 40:#$
Roll Number: ______________
( Part – I •!"$%& )
08 Write short answers to any FOUR parts. •!Ê#Ç$%&ÁÇ'ÇÑ()*+ •2
Why do we need a programming environment? ¿,-.•0ÊÑæ1234Ç5Ç6Ç7æ89Ç: (i)
Why do we use comments in programming? ¿=!"á#Ç$%!"#$ !;6Ç7æ8 (ii)
Differentiate between char and int. !Þ#$intÑæÇchar (iii)
1345
¿&ìÑæ'()*+Ò,./0120 6Ñ7$89Â:;ÄÂ:äÇ (iv)
Why format specifiers are important to be specified in I/O operations?
What is the difference between = = operator and =
operator? ¿&Þ#=$Ò<9Â=ÑæÇÒ<9Â= = (v)
¿&=?;ÄÂ@AÐÌÑÏ > 3
What is the output of the following? õ (vi)
#include<stdio.h>
void main( )
{
int a = 4 * 3 / ( 5 + 1 ) + 7 % 4;
printf(“%d”, a) ;
}
08 Write short answers to any FOUR parts. •!Ê#Ç$%&ÁÇ'ÇÑ()*+ •3
4 4 8 9:;
Define nested selection structures. •<-./012 4 : C4D8 946E 5 67 (i)
Why do we need selection statements? ¿<=>?@ÊÑæA/B 96 FGH (ii)
$ & $ )* %$'+ /&
Differentiate between sequential and selection
•<Þ#$# %'( ,-ÑæÇ.0%*12 (iii)
statements.
Identify the errors of this code: :456789;"<=ÓÇ (iv)
if (a == b &| x == y)
flag = true ;
else
flag = false ; $ $ * %&1
What is the use of nested loops? ¿>?á@ÇABC E 'F (v)
/&
What is the advantage of initializing an array at the time of ¿> ? GHI A JK LN0*%1Ç Oæ P Q•* !"#$% ' (ÑÇ )Ç (vi)
declaration?
08 Write short answers to any FOUR parts. +,Ê-Ç./0ÁÇ1ÇÑ234' +4
= ?#$
+(5Ù67089:.;•!> %'(ÑÇ)Ç@AäBÑÇ9: (i)
Declare a five-element array that stores the numbers of five students.
Write the output of this code: C,DEÄÂF%'ÓÇ (ii)
int sum = 0, p;
for (p = 5; p <= 25; p = p + 5)
sum = sum + 5;
printf (“Sum is %d”, sum) ;
Enlist the parts of a function definition. • "#$%&'()*+ (iii)
Write two advantages of using functions. • -Ç.æÏ'/0á1Ç2 (iv)
What do you know about the return keyword? ¿345678Ñ9'return*Ñæ$•Â (v)
@
Write a function to calculate factorial of a number. • +:;<=Ñ?ABCDE:FGÇ (vi)
&
••••08•••á Ç••••••• !•Ê"Ç#•••Ê$Ç••æÏ•%•&' • !"#%'(
Part – II, Attempt any TWO questions. Each question carries 08 marks.
'+ /
08 •<=>?@:"#$&()*,ÇÑæÇ.0)123)45678Ï9:á; •5
Write the process of declaring and initializing a variable. Explain it with an example.
08 Explain the structure of if statement in •<äA8BC !#$if •6
detail.
08 ¿23ÂÈ4ö567')89Ïä:ÑÏ'(æ)æÏ*+,-.ãÇ/æ01Ç &7
Write a program that counts multiples of a given number lying between two numbers.

You might also like