Sunteți pe pagina 1din 6

BISE FAISALABAD

Computer Science Part-II


Time Allowed: -20- Minutes Maximum
Marks: -15
Objective type
❶ Four possible answers A,B,C,D to each question are given. 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 circle will result in zero marks in that question. If
there is contradiction in the bubbles and handwritten answer, bubble option will be considered
correct.
MS ACCESS
1 The process of arranging the data in logical sequence is called:
A Sorting C Summarizing
B Classifying D Data capturing
2 A primary key that consists of two or more attributes of a relation is
called:
A Candidate key C Sort key
B Secondary key D Composite key
3 Database development process involves mapping of conceptual data
model into:
A Object Oriented Data Model C Network Data Model
B Implementation Model D Hierarchical Model
4 Different attributes in two different tables having same name are
referred to as:
A Synonym C Homonym
B Acronym D Organization
5 The output of the query is in the form of :
A table C Form
B Report D Macro
6 How many table views are available in MS Access?:
A One C Two
B Three D Four
C-LANGUAGE OR VISUAL BASIC
C-LANGUAGE
7 The target code produced by the compiler is called:
A Source code C Object code
B Library code D Linked code
8 The keyword “void” occupied how many bytes in memory?:
A Zero C One
B Two D Four

[Author] 1
9 The quantity whose value does not change during the execution of the
program is called:
A Keywork C Constant
B Variable D Token
10 The programmer usually enters source code into computer using:
A Compiler C Debugger
B Interpreter D Text Editor
11 How many variables can be used in printf() function?
A One C Two
B Three D Many
12 Which of the following is a valid character constant?:
A a C =
B ‘@’ D c
13 The loop whose body comes before the test condition is called:
A for C while
B do while D Next
14 Conditional operator is an alternative of :
A If( ) structure C Switch( ) structure
B Nested If ( ) else structure D If ( ) else structure
15 Which of the following function is used to write character to the file?:
A getc( ) C fputc( )
B putc( ) D fget( )
OR
VISUAL BASIC
7 In Visual Basic which statement indicate the end of a decision
structure?:
A END C END IF
B NEXT D ELSE
8 You can enter the data in a control when it has a :
A Focus C Tab order
B Control D Mask
9 Forms and controls are collectively called:
A Methods C Objects
B Properties D Events
10 The keyword ----------- is used to declare a variable in Visual Basic :
A Event C Sub
B Identifier D Dim

[Author] 2
11 If A=4 and B=4, which of the following evaluates to true?:
A A<>B C A<B
B A>B D A<=B
12 All of the followings are required to declare a variable except:
A Compiler C Debugger
B Interpreter D Text Editor
13 Which of the following is not a control in Visual Basic?:
A Textbox C Close Button
B Command Button D Option Button
14 Range of byte is:
A 32767,-32768 C True/False
B Any number D 0-255
15 Which is valid visual basic data type?:
A Array C Boolean
B Int D Char
-------------------------------------------------------------------------------------

BISE FAISALABAD
Computer Science Part-II
Time Allowed: -2:10- Hours Maximum Marks:
-60
SECTION-I
MS ACCESS

[Author] 3
❷ Write short answers of any Six (06) parts. 12
I. Explain the concept of reproduction?
II. What is meant by data inconsistency?

III. Who is database administrator?


IV. Define an attribute? Give an example.
V. What are ingredients of data modeling?
VI. How is entity integrity achieved?
VII. Differentiate between transitive dependency and partial dependency?
VIII. Enlist any four properties of a relation.
IX. Write down major difference between form and report.
C-Language or Visual Basic
C-Language
❸ Write short answers of any Six (06) of the following parts. 12
I. Write the purpose of define directives in C-language.
II. Differentiate between compiler and interpreter.
III. Why it is important to specify data type in C-language program?
IV. How can arithmetic overflow occur?
V. Write the purpose of operator and operand.
VI. Trace the errors in the program segment.
include<stdio,h>
Void main(void)
int x=3
printf(“%d”,x); }
VII. Why do you include “stdio.h” header file in C-Program?

VIII. Write the use of printf( ) function with example.

IX. Explain the concept and function of delimiters.


OR
Visual Basic
I. What is source code? Why it cannot be executed directly?
II. How are controlled placed on a form?
III. Differentiate between project file and a form file
IV. Why Visual Basic is called event-driven language?
V. Differentiate between Properties and Methods.
VI. Enlist five major components of a Visual Basic IDE.
VII. Describe the purpose of control naming conventions.
VIII. What is property window?
IX. How Visual Basic translator work?
C-Language
❹ Write short answers of any Six (06) of the following parts. 12

[Author] 4
I. What happens if break is missed in case block?
II. How function returns value?
III. Trace the errors in the program segment.
#include<STDIO.H>
Void main(void);
Mtar=20
printf(“%d”,x); }
IV. Compare binary and text stream
V. Convert the following code in while loop structure
int a;
for(a=0; a<=20; a+=2)
printf(“%”, a);
VI. Write down the syntax of ternary operator with example.

VII. Explain the concept of function prototype.


VIII. Find the output of the following code segment:
int a=13;
while(a>1){
if(a%2==0)
printf(“%d”, a);
a--;}
IX. Differentiate between while () and do while ( ) loop structure.
OR
Visual Basic
I. How can you create an executable file in Visual Basic?
II. Explain the concept of CAPTION property.
III. Trace the errors in the program segment.
Private Sub Command 1 Click( )
Int Mtar=20
Print(“%d”,x)
IV. How are the properties set at design time and run time?
V. Convert the following code in while loop structure in Visual Basic.
Dim a As Integer
For a=0 To 20 Step 2
Print (a)
Next
VI. State the purpose of Do Loop Until.
VII. How comments are added in Visual Basic program?
VIII. Find the output of the following code segment:
Dim a As Integer
a=13
While(a>1)
If(a Mod 2=0)
Print( a)
a=a-1
Wend

[Author] 5
IX. Differentiate between procedure and function.
SECTION-II
MS ACCESS
Note: - Attempt any ONE question from the following.
Each question carries 08-Marks.
❺ What is the concept of Data Processing? Explain different activities involved in 8
Data Processing.
❻ Briefly describe any Four data types available in MS-Access. 8
SECTION-III
C-Language or Visual Basic
C-Language
Note: - Attempt any TWO questions from the following.
Each question carries 08-Marks.
❼ Define debugging? Explain different types of errors occurring in C-language 8
program.
❽ What is switch ( ) statement in C-Language? Explain its working with example. 8
❾ Write a program in C-language to display first twenty even numbers. 8
OR
Visual Basic
❼ Define debugging? Explain different types of errors occurring while writing a 8
program in Visual Basic language.
❽ What is Select case statement in Visual Basic? Explain its working with 8
example.
❾ Write a program in Visual Basic Language to display first twenty even 8
numbers.

[Author] 6

S-ar putea să vă placă și