Lahore Board 2014
Computer Science
Inter (Part-II)
(Objective Type)
Time Allowed: 20 Minutes
Max. Marks:17
Note: Four possible answers A, B, C and D to each question are given. The choice which you think is correct, fill that circle in front of that question with Marker or Pen ink in the answer-book. Cutting or filling two or more circles will result in zero mark in that question.
(MS-ACCESS)
Q1.
- How many are the layouts of report:
a. 2
b. 3
c. 4
d. 5
a. Structured Query Language
b. Sort Query List
c. Self Query Languag
d. Seek Query Language
- Which of the following is not included in the definition of entity:
a. Person
b. Object
c. Concept
d. Action
- How many table views are available in MS-Access:
a. 4
b. 3
c. 2
d. 1
- The column of table corresponds to:
a. Table
b. Record
c. Field
d. Cell
- The goal of normalization is to:
a. Get Stable data structure
b. Increase number of relation
c. Increase redundancy
d. None of These
- A two dimensional table of data is called a:
a. Group
b. Set
c. Declaration
d. Relation
C-Language OR Visual Basic
(C-Language)
- Which statement is used to move the control to the start of loop body:
a. Continue
b. Break
c. Switch
d. None
- On successful closing a file, the f close () returns:
a. Null
b. 0
c. 1
d. File pointer
- Which of the following loop is called counter loop:
a. For
b. While
c. Do-while
d. if
- Which is an example of multiple branches from single expression:
a. if statement
b. switch statement
c. while loop
d. for loop
- Local variables are also called:
a. Automatic
b. Normal
c. Global
d. None of These
- The format specifier %u is used for:
a. Integer
b. Unsigned short
c. Unsigned float
d. Unsigned long int
- Which escape sequence can be used to begin a new line in C:
a. \a
b. \b
c. \n
d. \m
- Which of the following is equivalent to (p>=q):
a. p<q
b. !(p<q)
c. p>q
d. !(p>q)
a. RAM
b. ROM
c. Hard disk
d. Cache
- Which of the following key is used to save a file:
a. F2
b. F3
c. F5
d. F9
OR
(Visual Basic)
- As a computer processes instructions one execution of a loop is known as:
a. Iteration
b. Duration
c. Cycle
d. Test
- Which of the following is not an example of string function in Visual Basic:
a. Lease
b. Abs
c. R trim
d. U case
- How many options can be selected if a frame contains four option buttons:
a. 1
b. 2
c. 3
d. 4
- Which of the following is valid assignment statement:
a. d=c+b
b. a=100
c. x=c-d+10
d. All of These
- Which keyword is used to trigger the execution of another procedure:
a. Call
b. Go
c. Start
d. Run
- You can enter data in a control only when it has:
a. Tab order
b. Mask
c. Focus
d. Control
- The name prefix for a label control is:
a. Lab
b. lbe
c. lbl
d. l
- is used to specify two different choices with ‘if’ statement:
a. Select
b. Else
c. if
d. Do
- The mod operator is used for:
a. Integer remainder
b. Exponentiation
c. Multiplication
d. Division
- List of commands such as Open, Print and Exit can be found on:
a. Toolbar
b. Toolbox
c. Menu Bar
d. Format bar
Lahore Board 2014
Computer Science
Inter Part II
(Subjective Type)
Time Allowed: 3.10 Hours
Max. Marks: 83
Section-I
(MS-ACCESS)
Q2. Write short answers to any EIGHT (8) questions: (16)
- What is data?
- What is a field?
- Define data set.
- What are the properties of relation?
- What is a view
- What is a purpose of index file?
- What is data modeling?
- How entity integrity is maintained?
- What is the use of MS-Access?
- What is query?
- What is the use of data sheet view?
- Define list box.
(C-Language)
Q3. Write short answers to any EIGHT (8) questions: (16)
- What is assembler?
- Explain constant macro?
- What do you know about C-Statements?
- Define an expression with example.
- Find error in the code
#include<stdio.h>
void main();
{
X=20
Y=40
Z=X+Y
printf(“%d”,z)
getch();
}
- What is increment operator?
- What is the use of scanf() function? Write syntax.
- What is format specifier? Write example
- Explain clrscr() function.
- Trace output:
void main()
{
char w1,w2,w3;
w1=’A’;
w2=’B’;
w3=’C’;
printf(“%c %c w3”,w1,w2);
getch();
}
- List some important functions for output.
- Trace output
void main()
{
int a, b, temp;
a=10;
b=20;
temp=b;
b=a;
a=temp;
printf(“%d\n”,a);
printf(“%d\n”,b);
getch();
}
OR
(Visual Basic)
Q3. Write short answers to any EIGHT (8) questions: (16)
- List the names of errors in Visual Basic program
- What is integrated development environment?
- Define structured programming technique.
- Differentiate between property and method.
- What is the purpose of Val function?
- What does declaring a variable mean?
- How colour of a form is changed in Visual Basic?
- Explain variant type of variable.
- What are logical operators?
- How comments are added in Visual Basic program?
- What is constant? List its types.
- Explain ADO controls.
(C-Language)
Q4. Write short answers to any SIX (6) questions: (12)
- Write the syntax of conditional operator.
- What do you mean by selection?
- What is the output of the following statement, if grade = ‘B’?
- If(grade = = ‘A’} {grade = = ‘B’ && grade = = ‘C’
printf(“Fail”);
else
printf(“Pass”);
- Trace the errors in the following code:
- void main(void);
{
int x,y,z
if(x>y);
printf(“X is largest”);
else
printf(“Y is largest”);
getch();
}
- Write the output of the following program fragments:
n=0;
WHILE(n<=4)
printf(“% 3d % 3d \n”,n,10-n);
n++;
}
- What is “goto” statement?
- Describe user defined function.
- List some benefits of using function.
- Define pointer.
OR
(Visual Basic)
Q4. Write short answers to any SIX (6) questions: (12)
- Can a person be good programmer if he is expert in problem solving?
- What is property window?
- What is code window?
- How are event procedures named?
- Define object and property in Visual Basic.
- Differentiate between hiding and closing a form.
- How many times does the following loop execute.
For I=1 to 5 step 1
NEXT I
- What is iteration in Visual Basic?
- Differentiate between outer and inner loop in Visual Basic.
Section II
Note: Attempt any ONE question.
Q5. What is ER Model? What are symbols used in ER diagram? (8)
Q6. Explain different data types available in MS Access. 2,6
Section III
(C-Language)
Note: Attempt any TWO descriptive answers (either from “C-Language” or from “Visual Basic”) of the following questions.
Q7. What is program and programming language? Discuss two main categories of programming language. (8)
Q8. Write a program which input three numbers and display largest number. (8)
Q9. What is “While” loop? Write its syntax. Explain its working with example. 2,2,4
OR
(Visual Basic)
Q7. Write detailed note on components of Visual Basic IDE. (8)
Q8. Explain select case structure with its working. (8)
Q9. What is While-Wend loop? Write its syntax. Explain its working with example. (8)
Section IV
(Practical Part)
Note: Attempt any TRHEE questions.
A. Explain the procedure to apply primary key on table. (5)
B. Explain the procedure for creating simple forms. (5)
C. Write a program that adds two numbers and shows the sum on the screen in C-language or in Visual Basic. (5)
D. Write a program that displays counting from 1 to 10 using while loop in C-language or in Visual Basic. (5)
E. Write a program that accepts distance in kilometers and converts into meter by using function in C-language or in Visual Basic. (5)