FAISALABAD BOARD 2015
PAPER COMPUTER SCIENCE
PART-II
Time: 20 Minutes
(Objective Part)
Marks: 17
Note: You have four choices for each objective type question as A, 8, C and D. The choke which you think b 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)
- An index may be created on:
(a) Secondary key
(b) Foreign key
(c) Primary key
(d) All of these
(a) Secondary key
(b) Primary key
(c) Seri key
(d) Composite key
- A database is an organized collection of related data,
(a) Logically
(b) Physically
(c) Loosely
(d) Badly
- How many are layout of report?
(a) 5
(b) 4
(c) 3
(d) 2
- Which field type can be indexed?
(a) Memo
(b) Number
(c) Hyperlink
(d) OLE
- The output of query is In the form of a:
(a) Table
(b) Form
(c) Report
(d) Query
- In 2NE, which form of dependency is removed:
(a) Functional
(b) Associative
(c) Partial
(d) Transitive
C-Language OR Visual Basic
(C-Language)
- Conditional operator takes____ operands.
(a) 3
(b) 4
(c) 2
(d) 1
- Relational operators allow you to____ numbers.
(a) Add
(b) Multiply
(c) Compare
(d) Divide
- The function getche ( ) Is defined in:
(a) stdio.h
(b) conio.h
(c) string.h
(d) math.h
- Format specifier started with:
(a) #
(b) &
(c) ?
(4) %
- The total number of keywords in C-Language:
(a) 32
(b) 62
(c) 60
(d) 90
- The expression 3%5 has a value equal to:
(a) 5
(b) 3
(c) 2
(4) I
- Which function is used to write character to a file?
(a) putc ( )
(b) sputc ( )
(c) fputs
(d) fgets ( )
- Global variables are created in:
(a) Hard disk
(b) Cache
(c) RAM
(d) ROM
- This is good choice when you know how many times you want to loop to iterate in advance of entering the loop.
(a) While
(b) For
(c) Do – While
(d) Nested
- This statement may be used to stop a loop's current iteration and begin next one:
(a) Increment
(b) Decrement
(c) Break
(d) Continue
(Visual Basic)
- A loop within a loop is called:
(a) Nested loop
(b) Complex loop
(c) Outer loop
(d) Inner loop
- In Visual Basic, which statement indicates the end of decision structure?
(a) End
(b) Next
(c) End if
(d) Else
- Use of ______to declare mink la Visual Buic.
(a) Identifier
(b) Dim
(c) Sub
(d) Event
- You can enter data in s control only when It has:
(a) Tab order
(b) Mask
(c) Control
(d) Focus
- Visual Basic is product of
(a) Microsoft
(b) IBM
(c) Sun System
(d) Hewlett
- The output of compiler is milled;
(a) The program
(b) Object code
(c) Linked code
(d) Source code
- Which event is good to initialize form scope variable?
(a) Form-load
(b) Form. activate
(c)Form-change
(d) Form gotfocus
- The window that do not require any user action before the focus can move other form:
(a) Model
(b) Modular
(c) Modeless
(d) Module
- The interval property of timer control is set in:
(a) Seconds
(b) Milliseconds
(c) Minutes
(d) Hours
- One dimension array is also known as:
(a) Vector array
(b) Linear array
(c) One-D array
(d) All these
Time: 3:11
(Subjective Part)
Section-I
2. Attempt any EIGHT short questions: (8 x 2 =16)
- List different types of file frorn usage point of view.
- Define database integrity.
- State the purpose of backup and recovery.
- Who is database administrator?
- Write two responsibilities of a database administrator.
- Differentiate between candidate key and alternate key.
- Stan the purpose of database design process.
- Define referential intergrity.
- List different button available on Access database window. (0) Define database object.
- What is the concept of degree of a relation?
- Differentiate between fromand report
(C-Language)
3. Attempt any EIGHT short questions. (8 x 2 = 16)
- What is a preprocessor directive?
- What do you mean by deli meters?
- Define the term bug and debug.
- Define logical operator. Give example.
- What is meant by operator precedence?
- What is the use of OR operator?
- Trace out the errors from the following code segment:
main ( )
{
int a, b,
a=77;
c = 40;
a + = b;
print("a=%d" , a);
}
- Trace out the errors from the following code segment include (stdio.h)
void main ( )
{
float n;
scanf("%d" , & n);
printf("The number is % f’.n):
}
- Explain getche function.
- Defoe standard output.
- Trace the output of the following code:
int a = 9;
a = a % 4;
printf(“/n%d is result”,a);
- Trace the output of the following code;
void main ( )
printf("55\t”);
print(("666”);
printf(n777");
OR
(Visual Basic)
3. Attempt any Eight (8) short questions. (8 x 2 =16)
- What is an object in Visual Basic?
- What is the difference between Boolean and predefined values?
- What are mouse up and key up events?
- Define implicit declaration.
- What is a string variable? Give example.
- What is a floating point constant? Give example.
- What is a input? Give example,
- What is the purpose of MSG box function?
- Write the use of input box function.
- What is a system specific mode?
- What is the purpose of default button?
- What is a string concatenation? Give example.
OR
(C-Language)
4. Attempt any SIX short questions. (6 x 2 =12)
- Define control structure.
- Describe switch statement.
- Trace the output:
if (1 = = 2)
print8"Hello'');
else
Print(Equality”);
- Trace the error;
Void main( )
}
if (16> 10) then
printf("%”, Pakistan)
getch ( );
- Wtite the syntax of while loop.
- What is goto statement?
- Define function header.
- What is global variable?
- What is binary stream?
OR (Visual Basic)
4. Attempt any SIX short questions. (6 x 2=12)
- What is assignment operator?
- What is option explicit?
- What is val function?
- What is a condition?
- What is the use of logical operator in Visual Basic?
- Which case option is used to test relational values?
- What is pretest in a do loop?
- Which statement terminates for-next loop early?
- What is post test in a do loop?
SECTION –II
ATTEMPT ANY ONE QUESTION. (8x1=8)
MS-ACCESS
5. (a) What is a relationship? Explain the three types of relationship among the entities.
6. (a) Explain different data types available in MS-Access.
SECTION –III
ATTEMPT ANY TWO QUESTION . (8 x 2 = 16)
C-LANGUAGE OR VISUAL BASIC
C-LANGUAGE
7. (a) How would you creat, edit, compile, link and execute a C program? Discuss briefly.
OR
VISUAL BASIC
Define constant in Visual Basic. Explain in detail.
C-LANGUAGE
8. (a) Write a program that inputs a year and finds whether it is a leap year or not using if else structure .
Develop an application program to input a value for year and test weather it is leap year or not using if-then else structure..
OR VISUAL BASIC
9. (a) Define nested loop. Explain its working with the help of example.
OR VISUAL BASIC
Define and explain foment loop in Visual Basic.
SECTION –IV
10. ATTEMPT ANY THREE QUESTION . (5X3=15)
- Write down the procedure for creating a single table query.
- Write down the procedure for creating a single table form
- Write a program that take a number from user and displays its cube using function in C or using procedure in Visual Basic.
- Write a program that takes two numbers from user and displays greater of them in C or in Visual Basic.
- Write a program that displays sum of numbers from Ito 10 using loop in C or in Visual Basic.