Documente Academic
Documente Profesional
Documente Cultură
[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?
[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.
[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