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

Comp 2nd HB

This document is a pre-board examination paper for Computer Part II, consisting of objective and subjective questions related to MS Access and C programming. The objective section includes multiple-choice questions, while the subjective section requires short answers and programming tasks. Students are instructed on how to fill out the answer sheet and are given a time limit for completion.

Uploaded by

ghulamhaider7879
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)
10 views2 pages

Comp 2nd HB

This document is a pre-board examination paper for Computer Part II, consisting of objective and subjective questions related to MS Access and C programming. The objective section includes multiple-choice questions, while the subjective section requires short answers and programming tasks. Students are instructed on how to fill out the answer sheet and are given a time limit for completion.

Uploaded by

ghulamhaider7879
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

Punjab Colleges, Faisalabad

Pre-Board Series Exam 2nd Half Book


Roll No.: ------------------- Computer Part II Section: ---------
Time Allowed: 20min ( ((Group-I) Marks: 15
Objective Part
Note: You have four choices for each objective type questions as A, B, C and D. The choice which you think is correct; fill the relevant circle in front
of that question number on computerized answer sheet. Use marker or pen to fill the circles. Cutting or filling two or more circles will result in zero mark
in that question. Attempt as many questions as given in objective type question paper and leave other circles blank.
Q.1 (15x1=15)
Sr. # Question A B C D
A form that contain a sub form is
1 Main Form Form Report Both a and b
called:
Which type of query is used to join Find
2 Select Find Duplicate Cross table
two tables? Unmatched
Which of the following is used to
3 List box Combo box Both a and b None
display a list of items in form?
To find all names started with M from
4 Like “M?” Like “M-“ Like “M*” Like “M+”
student table, the criteria is:
5 The column of a table corresponds to: Field Record Characters File
Which form of dependency is removed
6 Functional Transitive Partial None
in 2NF?
7 A report may be based on: Table Field Byte Bits
A function does not return any value
8 Nothing float void int
has return type
Which loop structure always executes
9 do-while for while while-wend
at least once?
Another name for built - in function User – define Library Arithmetic
10 Both a and b
is? function Function function
11 While loop is also called: Conditional loop Wend Loop Infinite Loop Running Loop
12 A _________ can store text only: Binary File Text File Exe File Object File
One execution of loop is known as
13 Cycling Test Duration Iteration
a(n):
In _______ file opening mode, data
14 W W+ r+ r
can only be read from an existing file:
15 A loop within the loop is called: Complex loop Running Loop Infinite Loop Nested Loop
Punjab Colleges, Faisalabad
Pre-Board Series Exam 2nd Half Book
Roll No.: ------------------- Computer Part II Section: ----------
Time Allowed: 2:10hrs ((Group-I) I) Marks: 60

Subjective Part
Section-I
(MS-ACCESS)
Q.2.Write short answers of any Six. (6x2=12)
i. Define entity integrity. v. Define the term RDBMS.
ii. What is transitive vi. Enlist two uses of Form.
dependency? vii. Define the term cardinality
iii. When a relation is in 1st NF? of relation.
iv. Write two table views in MS viii. How is combo box used?
Access. ix. Name the different types of
queries in MS Access.

(C-LANGUAGE)
Q.3.Write short answers of any Six. (6x2=12)

i. Write the syntax of do-while loop. vii. How many times will the
ii. Write the difference between following loop display “Hello”:
while and do-while loop. for(i=0; i<20; i++)
iii. What is the purpose of goto printf(“Hello”);
statement? viii. Output the following code:
iv. What is sentinel control loop? int i, j=3;
v. Convert the following code into for(i=1; i<=5; i++)
while loop: printf(“\n%d%d”, i , j);
void main() ix. Find errors in the following code:
{ x=2;
for(int i=1; i<=10; i++) sum=0;
printf(“%d”,i);} While(x<=10)
vi. Describe nested loop. Sum + = x;
x--;

Q.4.Write short answers of any Six. (6x2=12)

i. Describe user- define v. Write the syntax of


function. function declaration.
ii. What is function call? vi. What is file pointer?
iii. Which type of function are vii. What is the use of EOF
part of language? markers in file?
iv. What is function viii. What are different types of
prototype? file access methods?
ix. What is a String?

Section-II
(MS-ACCESS)
Note: Attempt any one question from the following: (1x8=8)
Q.5.When is a relation is in first normal form? Explain with example.
Q.6.Write the different data types available in MS-Access.

Section-III (Each Question carries 08 marks)


(C-Language)
Note: Attempt any two of the following questions: (2x8=16)
Q.7. Write a program that input a number from the user and display the factorial of that number using
while loop.
Q.8. Write a program that inputs a number from the user and displays a table of that number using
for loop
Q.9.Write a program that display the sum of the following series using for loop.
1+1/3+1/5+1/7 + . . . + 1/99

You might also like