GENERAL INSTRUCTIONS FOR EXAMINING ANSWER BOOKS
OBJECTIVE PART KEYS ANNUAL-
2017
QUESTION NO.01 (Multiple Choice)
CODE Q- Q- Q- Q- Q- Q- Q- Q- Q- Q- Q- Q- Q- Q- Q- Q- Q-
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17
8831 B D C A B A C A B A C A B D b A B
8833 C A B A C D B B A B D B A C A B A
8835 A C D B C A B B A C A B A B A B D
8837 A B A C B D C B D B A B A B A C A
SECTION-I (MS-ACCESS)
QUESTION NO.02 (SHORT ANSWERS)
Most of these are the definitions of MS-Access, Check the concept and award Marks according to the
following criteria:
For complete correct answer 02Marks.
For partially correct answer 01Mark.
For wrong answer 0Marks.
I. A type of file that contains software instructions is called program file. The source program
files and executable files are examples of program files.
II. Objectives of Database Management System are:
Shareability Availability Evolvability and Database integrity
III. The basic purpose of view is to keep data safe and secure from unauthorized and illegal
users. A view can also display record from multiple tables. The views provide more flexibility
and security in displaying data.
IV. The characteristics of an entity are called attributes or properties. Some examples of
attribute of an entity TEACHER are: Name, Gender, Cell etc.. An attribute is represented by
oval.
V. The referential integrity can be achieved by connecting two relations by specifying
relationship between them. When two relations are connected, one relations is called parent
relation and other is called child relation.
VI. A type of dependency in which one or more non key attributes are functionally dependent
on a part of primary key is called partial dependency.
VII. Characteristics of MS-Access are:
Simple Database Wizards, Easier programming Command standard
No Redundancy
VIII. SELECT * FROM EMPLOYEE
IX. Columnar Form is used to display one record at a time. It display textboxes and labels. The
textboxes represent the fields of the table or query and label represent the name of the fields.
QUESTION NO.03 C-language (SHORT ANSWERS)
Most of these are the definitions of C-language, Check the concept and award Marks according to the following criteria:
For complete correct answer 02Marks.
For partially correct answer 01Mark.
For wrong answer 0Marks.
I. A programming language in which the entire logic of the program is written as a single
continuous block is called unstructured programming language.
II. The source code cannot be executed by the computer directly because the computer
does not understand it. It is converted into machine code and then executed.
III. The commands that give instructions to C-compiler are called preprocessor directives.
They are given at the beginning of the source code. The preprocessor directives are also
known as compiler directives.
IV. The data type defines the set of values and a set of operations that can be performed
on these values. Data and its types are defined before designing the actual program
used to process data.
V. INCLUDE must be written in lowercase letter.
header files should be written in double quotation marks or in between < >
variable m should be assigned integer value.
VI. Result=4 5 0
VII. The order in which different types of operators in an expression are evaluated is known
as operator precedence. It is also known as hierarchy of operators. Each operator has its
own precedence level.
VIII. Functions for input are: scanf( ) gets( ) getch( ) getche( ) and
Functions for output are: printf( ) puts( )
IX. Main( ) function should be written in lower case letter.
Character variable should be assigned only single character. It should be written in
single quotation mark.
12.43=n, in this expression, the variable should be on the left side and value should be on the
right side of the assignment operator.
X. Format specifier is used to specify the format according to which values will be read and
displayed. It determines the data type of the variable, field width and format of the value.
XI. Value of a=20
Value of b=10
XII. m=25 n=125
Or Visual Basic
I. The statements that are used to control the flow of execution in a program are called
control structures. The control structures in C-language are used to combine individual
instruction into a single logical unit.
II. If-else-if is also known as multiple if-else statement. Switch( ) is an alternative of if-else-if
structure. Syntax is:
switch(expression){ case val1:
statement;
break;
case val2:
statement;
break;
-----------------
------------
case val n:
statement;
break;
default:
statement; }
III. There is no error, award marks who attempted this part.
QUESTION NO.04 C-language (SHORT ANSWERS)
Most of these are the definitions of C-language, Check the concept and award Marks according to the following criteria:
For complete correct answer 02Marks.
For partially correct answer 01Mark.
For wrong answer 0Marks.
IV. i=3;
do{ printf(“%d\n”,i);
i=i+6; }
while(i<=39);
V. Thanks
VI. 1
2
3
---
---
10
VII. Built-in-functions user defined functions
VIII. The time period for which a local variable exists in the memory is called life time of a
local variable. The local variables are created when the control enter into function. They
are destroyed from the memory when control returns back to the calling function.
IX. EOF stands for End of File Marker. It is a special character. It is automatically inserted at
the end of each data file. EOF is frequently used in C-language programs to find the end
of the program.
SECTION-II( MS-Access)
QUESTION NO.05
Definition of file. 02Marks
Description and explanation of different types of files from usage point of view: (Master File, 06Marks
Transaction File, Backup File)
QUESTION NO.06
Definition of Query. 01 Mark
Enlist the different types of query available in MS-Access. 01Mark
Select Queries, Action Queries, Cross table Queries, Parametric Queries, SQL Queries
Explanation of any three types of queries. 06Marks
SECTION-III (C-Language OR Visual Basic)
(C-Language)
QUESTION NO.07
Definition of debugging. 01Mark
Enlist different types of errors in the program: 01Mark
(syntax error, logical error, run time error.)
Explanation of three types of errors with examples. 06Marks
QUESTION NO.08
Check the concept of written program in C-Language. 02Marks
Procedure of program to check whether the numbers are equal or different using if-else statement. 06Marks
QUESTION NO.09
Definition of do while ( ) loop structure. 02Marks
Enlist syntax of do while ( ) loop with flow chart. 02Marks
Explanation of do while () loop along with working procedure and simple program. 04Marks
OR (Visual Basic)
QUESTION NO.07
Basic definition of error. 01Mark
Enlist different types of errors in the program: 01Mark
(syntax error, logical error, run time error.)
Explanation of three types of errors with examples. 06Marks
QUESTION NO.08
Check the concept of written program in Visual Basic. 02Marks
Procedure of program to check whether the numbers are equal or different using If-Then-Else statement. 06Marks
QUESTION NO.09
Definition of do …..Until( ) loop structure. 02Marks
Enlist syntax of do …..Until( ) loop with flow chart. 04Marks
Explanation of do …..Until( ) loop along with working procedure and simple program. 02Marks
SECTION-III(PRACTICAL)
QUESTION NO.10
a Write Procedure to create Relationship in MS-Access Database. 05Marks
b Write Procedure to create Form in Design wizard using MS-Access Database. 05Marks
c Write Procedure to write program in C/VB to calculate temperature in Centigrade. 05Marks
d Write Procedure to write program in C/VB to display counting from 10 to 1 using while () 05Marks
loop structure.
e Write a function C/VB to display “Pakistan “five times. 05Marks
Tasleem Mustafa Muhammad Saleem
Raza Shah
Chairman Department of Computer Science Assistant Professor (Comp.Sc.)
University of Agriculture, Faisalabad Government Postgraduate College, Jhang
0345-
4707500, 03137035400
I. An object consists of properties and methods with associate events. An object is a part of application such as
buttons, textboxes, list boxes and labels etc.
II. The project file informs Visual Basic which form are associated with a specific project. The Form file lists the
objects on the form, the object properties settings and the source code associated with the form.
III. Code window contains the statements of Visual Basic which are executed when some event occurs. It may
contain many pieces of code. Each piece of code is related to particular event of a particular object.
IV. Different RAD tools are: Visual Basic, Delphi, and PowerBuilder.
V. VBA stands for Visual Basic for Applications. It is a popular macro programming language.
VI. When form is closed, it is destroyed. The control property setting and variables are lost immediately. When
form is hidden, the control properties and variables remain accessible and procedures in the form can
continue to run.
VII. An event procedure is a procedure that belongs to specific object and event.
VIII. The Val function is used to convert text data into numeric value. The expression to be converted can be
property of a control, a vriable or constant
I. An object consists of properties and methods with associate events. An object is a part of application such as
buttons, textboxes, list boxes and labels etc.
II. The project file informs Visual Basic which form are associated with a specific project. The Form file lists the
objects on the form, the object properties settings and the source code associated with the form.
III. Code window contains the statements of Visual Basic which are executed when some event occurs. It may
contain many pieces of code. Each piece of code is related to particular event of a particular object.
IV. Different RAD tools are: Visual Basic, Delphi, and PowerBuilder.
V. VBA stands for Visual Basic for Applications. It is a popular macro programming language.
VI. When form is closed, it is destroyed. The control property setting and variables are lost immediately. When
form is hidden, the control properties and variables remain accessible and procedures in the form can
continue to run.
VII. An event procedure is a procedure that belongs to specific object and event.
VIII. The Val function is used to convert text data into numeric value. The expression to be converted can be
property of a control, a variable or constant