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

2nd Year Computer Pre Bard

This document is a pre-board examination paper for Computer Science for 2nd Year students at Govt. Associate College Women in Faisalabad. It includes objective questions with multiple-choice answers, subjective questions requiring detailed responses, and programming tasks. The paper is structured into sections with varying marks and time allocations for each part.

Uploaded by

gcw97rb.fsd
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)
53 views2 pages

2nd Year Computer Pre Bard

This document is a pre-board examination paper for Computer Science for 2nd Year students at Govt. Associate College Women in Faisalabad. It includes objective questions with multiple-choice answers, subjective questions requiring detailed responses, and programming tasks. The paper is structured into sections with varying marks and time allocations for each part.

Uploaded by

gcw97rb.fsd
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

Govt.

Associate College Women 97 RB Faisalabad


Pre Board 2025
Name: _________________ Roll no._________ Class: 2nd Year
Paper: Computer Science Time: 20 Minutes Marks: 15
OBJECTIVE
Note: You have four choices for each objective type questions as A, B, C, D.Tick the option which
you think is correct.
1. A well defined set of instructions given to the computer is called:
a. Computing b. Software c. Bug d. Procedure
2. The extension of C source program is:
a. .h b. .c c. .obj d. .exe
3. A memory location with some data that cannot be changed is called:
a. Constant b. Variable c. Comment d. Keyword
4. Logical operators are:
a. NOT b. AND c. OR d. All
5. The functions used for input and output is stored in:
a. stdio.h b. conio.h c. math.h d. inout.h
6. How many table views are available in MS Access.
a. 3 b. 1 c. 0 d. 4
7. A database consists of various components called:
a. Tool b. Properties c. Entities d. object
8. CREATE command is used to create a:
a. Table b. Form c. Report d. Query
9. Conditional operator is an alternative of:
a. if b. if-else c. nested if d. All
10. All of the following are control statements expect:
a. Sequential b. Repetition c. Selection d. Relation
11. The semicolon is placed at the end of condition in:
a. while loop b. for loop c. do-while loop d. do loop
12. A loop within a loop is called:
a. Nested loop b. Complex loop c. Infinite loop d. Dual loop
13. The process of identifying and removing errors in program is called:
a. Modifying b. Fixing c. Updating d. Debugging
14. How many types of loop are available in C?
a. 1 b. 2 c. 3 d. 4
15. In a relational database a table is also called
a. Record b. field c. Entity d. Tuple
SSs SSUBJECTIVE-Section
IIntermediate Part-II Computer Science
Time: 02:10 Hours Marks: 60 Roll No. __
SECTION – I
Q.2 Attempt any six parts. 6x2=12
i. What do you mean by file organization? ii. What do you mean by integrity of data?
iii. What is use of DML? iv. What are dependent and parent relations?
v. How many primary keys can be defined in a table? vi. How is referential integrity achieved?
vii. When a relation is in 2NF? viii. Write any three advantages of form.
ix. What do you mean by IDE?
Q.3 Attempt any six parts. 6x2=12
i. What is assembly language? ii. What do you mean by machine independence?
iii.Why the logical error is the most difficult error? iv. Differentiate between gets and puts function.
v. List three types of format specifier.
vi. Which characters are used to modify the format of output?
vii. Trace the error in the following code segment. viii. Predict the output of the following.
VOID Main();
{ int a = 9;
int y = 5; a = a % 4;
int y y = x+3 printf(“%d is Result”,a);
printf(“%d”,y);
ix. Predict the output of the following.
int x = 15;
int y = 5;
printf (“%d \t %d”,x%y,x/y)
Q.4 Attempt any six parts. 6x2=12
i. Define compound statement. ii. What is switch statement?
iii. Write the syntax of if-else statement iv. What is sentinel control loop?
v. What is continue statement? vi. What is local variable?
vii. What is a function?
viii. Convert the code in do-while loop. ix. Predict the output of the following code.
int i; int a;
for (i=3; i<=39; i+=6) for (a=1; a<=5; a++ )
{ printf(“%d”,a)
printf(“%d /n”,i);
}
Section- II (Each question carries 08 marks)
Note: Attempt any one of the following questions.
Q.5. What is query? Write advantages of queries.
Q.6 Explain different components of logical in detail.

Section- III(Each question carries 08 marks)


Note: Attempt any two of the following questions.
Q.7 What is for loop? Write down syntax and working of for loop with example.
Q.8 Write a program that inputs a character and display whether it is vowel or not.
Q.9 Write a program that perform all mathematical operations on two variables.

You might also like