Full Book 2nd Year Paper Computer
Full Book 2nd Year Paper Computer
3 Which view is used to add, edit or datasheet view Design view Record view Edit view
delete record from times)
Which object is used to store data in Macro Table Form report
4 database
5 Which is also called control key Composite key sort key Candidate key Primary key
6 Which is used to indicate Relationship Candidate Modality attribute
characteristics of an object
Conditional operator is an alternative If Nested if If-else switch
7
8 What Operators are used to join two Logical Relational Assignment comparison
or more condition
Which is a valid character constant "Hello" A ‘6’ none
9
13 The loop that never ends is called Infinite loop Running loop Nested loop Continuous loop
SECTION-1
Q#2 Attempt any six parts 6x2=12
Write the basic purpose of using views. Define program file
i ii
Define an attribute. Give an example, Write any two objective of Database
iii iv Management System
iii List four keywords in C iv Why the logical error most difficult error to find
v Write about data types in C vi What is the use of “getch” function
vii trace errors ; viii. write output :
#include<stdio.n> void main ()
Void main () { printf ("555\n");
{ print ( 'pakistan' ); } printf ("55"); }
ix find output:
int i=10; printf("%3d",i);
Q#4 Attempt any six parts 6x2=12
i Name any two control structure ii What is meant by loop
iii Why is function used in program iv List two types of function
v Define the stream in C language vi write output :
vii Convert code into do while loop { Int a=2;
{ int n =1; If(a==1)
while(n< =7) Printf(“ok”);
{ else
Printf(“*/n”); printf(“cancle”);
n++; } getch(); }
ix write output : viii. What is counter variable?
int i, j = 3;
for(i=1 ; i < = 5 ; i++)
print(“ %d %d/n “, i, j);
SECTION-II
NOTE: Attempt any three questions. 8x3=24
Q#05 What is database? Explain three types of database model.
Q#06 What are reports? Explain its two types.
Q#07 Write a program in C language which input a user and display a table .
Q#08 Write a program in C language which input a user and display a factorial number.
Q#09 What are identifier in C language and its types.
BEST OF LUCK