RAWALPINDI BOARD 2016
PAPER COMPUTER SCIENCE
PART-II
Time: 20 Minutes
(Objective Part)
Marks: 17
Note: You have four choice for each objective type question as A, B, C and D. The choice which you think is correct; fill that circle in front of that question number. Use marker or pen to fill the circles. Cutting or filling two or more circles will result in zero mark in that question.
(MS-ACCESS)
- Which data type is default type in Access?
(a) Memo
(b) Number
(c) Text
(d) Auto number
- A form within another form is called:
(a) Subform
(b) Main form
(c) Multiform
(d) Outer form
- The manipulated and processed data is:
(a) Object
(b) Data
(c) Figure
(d) Information
- The category of data that describes and entity is called:
(a) Attribute
(b) Data item
(c) Record
(d) Tuple
- Which of the following is used to associate entities with one another:
(a) Entity
(b) Attribute
(c) Identifier
(d) Relationship
- A relation that contains minimal redundancy and allow easy use is called:
(a) Clean
(b) Simple
(c) Complex
(d) Well structured
- Each set of related items in a table is called:
(a) Table
(b) Record
(c) Field
(d) Query
C-Language
OR
Visual Basic
- Local variable are called:
(a) Normal
(b) Automatic
(c) Global
(d) None
- Which of the following functions is used to write a character to a file?
(a) fputc( )
(b) putc ( )
(c) fputs ( )
(d) fgets ( )
- All of the following are logical operators except:
(a) NOT
(b) AND
(c) OR
(d) =
- The value of C expression 5/9*2 is:
(a) 0.27
(b) 1.11
(c) 0
(d) 2
- Which of the following format specifiers is used for string:
(a) % f
(b) % d
(c) % c
(d) % s
- Which of the following escape sequence is used to begin new line in C:
(a) \a
(b) \n
(c) \t
(d) \m
- In if statement, false is represented by:
(a) 0
(b) 1
(c) 2
(d) 3
- Which programming structure makes a comparison?
(a) Relation
(b) Decision
(c) Sequence
(d) Repetition
- One execution of a loop is known as:
(a) Cycle
(b) Duration
(c) Iteration
(d) Test
- How many types of loop structure are in C:
(a) 4
(b) 3
(c) 2
(d) 6
(Visual Basic)
- Each element in a control array is identified by:
(a) Tab Index
(b) Index
(c) List Index
(d) Subscript
- One execution of a loop is known as:
(a) Iteration
(b) Cycle
(c) Test
(d) Duration
- The term used to refer a program error is called:
(a) Short circuit
(b) Crash
(c) Down
(d) Bug
- Visual Basic is a product of:
(a)Sun System
(b) Hewlet
(c) Microsoft
(d) IBM
- List of commands such as open, print and exit can be found on:
(a) Solution explorer
(b) Toolbar
(c) Toolbox
(d) Menu bar
- Methods characterized on object's:
(a) Style
(b) Behaviour
(c) Value
(d) Appearance
- The expression 0 mod 4 has a value equal to:
(a) 0
(b) 1
(c) 2
(d) 4
- The default message box style is:
(a) Yes No
(b) OK only
(c) Yes No cancel
(d) Retry cancel
- All of the following are relational operators except:
(a) > =
(b) < =
(c) #
(d) < >
- In if statement, false is represented by:
(a) 1
(b) 0
(c) 2
(d) 3
Time: 3:10 Hours
(Subjective Part)
Marks: 83
Section I
(MS-ACCESS)
2. Attempt any EIGHT short questions. (8 x 2 = 16)
- List at least two advantages of DBMS.
- State the purpose of Query Language.
- Define Data integrity.
- State the use of Index in FMS.
- Define composite key.
- How a relation is formed in database?
- Define Modality with the help of figure.
- What do you mean by entity integrity?
- List advantages of RDBMS.
- What is Microsoft ACCESS?
- Create a query in design view.
- Define combo box.
(C-Language)
3. Attempt any EIGHT short questions. (8 x 2 =16)
- What do you mean by bug?
- What is difference between machine language and high level language?
- State the purpose of Body of Function.
- Define keywords.
- What do you mean by assignment operator?
- Define character constant.
- Find the error in the following code.
# include (conio.h);
# include (stdio. h);
void main ( )
{
Printf ("OK");
}
- Find the output of following code:
int a, b, c;
a = b = c = 6;
a = 4;
b = a;
c = 2;
printf ("%d%d%d",a,b,c);
- Find the output of the following code.
printf("Pakistan\n is an \n Islamic\n country");
- Find the error in the following code
Main ( ):
{
Printf (OK)
}
- List some input functions in C-Language.
- Describe getch ( ) function.
OR
(Visual Basic)
3. Attempt any Eight (8) short questions.
- List three uses of logic flow diagram.
- What is VBA?
- State the purpose of naming controls.
- Define object events.
- What is constant?
- Name different form events.
- What do you mean by unload?
- Define explicit declaration.
- Describe currency variables.
- Define symbolic constant.
- What is massage box?
- State the term comments.
OR
(C-Language)
4. Attempt any SIX short questions.
- Write down the output of following code.
char ch = 'a';
switch (ch)
{
case 'a';
printf("A");
case 'b':
printf("B");
- What is the error in the following code?
int x = 10, y = 20;
if (x > 10 & y < 30)
printf("%d", x+y);
- What is the use of if-else statement?
- Why break statement is used in switch statement?
- Write down the syntax of do-while loop.
- What is the output of following code?
int x = 10;
for(x = 8; x > = 1; x--)
printf ("%d\n", x%z)
- What are the two types of functions is C-language?
- What are local variables?
- Which function is used to close a file in C-language?
OR
(Visual Basic)
4. Attempt any SIX short questions.
- Explain the use of input box.
- What are relational operators?
- What is the syntax of WHILE....WEND loop?
- What is a counter controlled loop?
- What is the use of option buttons?
- What are function parameters?
- What are Named constant in VB?
- What is Nested-If statement?
- Define control array?
SECTION –I
Attempt any One Question: (8 x1=08)
MS-ACCESS
5.What is data modeling? What are the ingredients of data modeling? 8
6.Explain different data types available in MS-Access. 8
SECTION -III
Attempt any TWO Question from C-LANGUAGE OR VISUAL BASIC: (8 x2=16)
C-LANGUAGE
7. How many types of operators are available in C? Describe briefly. 8
OR
VISUAL BASIC
7. Define the process of analyzing a problem in detail. 8
C-LANGUAGE
8. Write a program that inputs a character from user and check whether it is vowel or consonent using switch statement? 8
OR
VISUAL BASIC
8. Write a program in VB that inputs a character from user and checks whether it is vowel or consonant? 8
C-LANGUAGE
9. What is "While loop"? Write its syntax. Explain its working with example. 8
OR
VISUAL BASIC
9. What is While-Wend loop? Write its syntax. Explain its working with example. 8
SECTION-IV
Attempt any THREE questions.
- Write a procedure for sorting using menu. (5)
- Write a procedure for running switchboard in MS Access. (5)
- Write a program that accepts two numbers and exchange their values in C-language or in visual basic. (5)
- Write a program that accepts two numbers from user and displays whether numbers are equal or not by using functions in C-language or in Visual Basic. 5
- Write a program that inputs a number from user and displays its table in C language or in Visual Basic. (5)