0% found this document useful (0 votes)
23 views2 pages

Computer CH 12, 13, 14

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

Computer CH 12, 13, 14

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

SUPERIOR GROUP OF November

COLLEGES
Part-II Subject Computer Science Time Allowed 45 Minutes
Q.Paper-I Objective Type Paper A Maximum Marks 25
Roll No. Student Name Date 7-oct-24
Syllabus Chapter No. 12 , 13 , 14
Passing Mark: 15
(Objective Type) Time: 15 mints
Q1. Four possible answers have been given, choose the correct one, cutting, overwriting & use of
Lead pencil or Ink Remover will result in loss of mark. 10
Question A B C D
A function that does not return
1 Nothing float null Void
anything has return type:
Function prototype for built-in
2 Source files Header file Image files Header file
function are specified in.
3 Which one is loop structure If If else Switch For
What is the value of x after executing
4 9 10 11 12
the code for {x=1 ;<=10;x++)?
In for statement the expression is
5. Validation Initialization Test Condition
executed only once is called
Q.2. Write short answers of the following questions. (Any Six) (6x 2 = 12)

i. Define Sentinel Value?


ii. What is Meant by goto statement?
iii. Different b/w local and global variable.
iv. Different b/w text stream and binary stream.
v. Convert the following loop into While loop:
for(int i = 10; i > 0; i--)
{
printf(“i = %d”,i);
}
vi. Trace the error and write output of following code:
void main( )
{
int x,y = 5;
for (x = 0; x < 3 : x++)
{
if( y > = 5)
printf(“%d \t”,x);
}
}
vii. What is the final value of x after executing (when the program end) the following code:
for(int x = 0 ; x < 10 ; x += 3)

Q:3 Answer the following long questions: [8]


1. What is do while loop. How it is implemented? Discuss some of the situations where it
can be useful. Also, write its example.
2. Write a program that inputs a number from the user and display the factorial of that
number.
 Best of luck 

You might also like