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.

a. 2
b. 3
c. 4
d. 5

a. Structured Query Language
b. Sort Query List
c. Self Query Languag
d. Seek Query Language

a. Person
b. Object
c. Concept
d. Action

a. 4
b. 3
c. 2
d. 1

a. Table
b. Record
c. Field
d. Cell

a. Get Stable data structure
b. Increase number of relation
c. Increase redundancy
d. None of These

a. Group
b. Set
c. Declaration
d. Relation

C-Language OR Visual Basic
(C-Language)

a. Continue
b. Break
c. Switch
d. None

a. Null
b. 0
c. 1
d. File pointer

a. For
b. While
c. Do-while
d. if

a. if statement
b. switch statement
c. while loop
d. for loop

a. Automatic
b. Normal
c. Global
d. None of These

a. Integer
b. Unsigned short
c. Unsigned float
d. Unsigned long int

a. \a
b. \b
c. \n
d. \m

a. p<q
b. !(p<q)
c. p>q
d. !(p>q)

a. RAM
b. ROM
c. Hard disk
d. Cache

a. F2
b. F3
c. F5
d. F9

OR
(Visual Basic)

a. Iteration
b. Duration
c. Cycle
d. Test

a. Lease
b. Abs
c. R trim
d. U case

a. 1
b. 2
c. 3
d. 4

a. d=c+b
b. a=100
c. x=c-d+10
d. All of These

a. Call
b. Go
c. Start
d. Run

a. Tab order
b. Mask
c. Focus
d. Control

a. Lab
b. lbe
c. lbl
d. l

a. Select
b. Else
c. if 
d. Do

a. Integer remainder
b. Exponentiation
c. Multiplication
d. Division

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)

  1. What is data?
  2. What is a field?
  3. Define data set.
  4. What are the properties of relation?
  5. What is a view
  6. What is a purpose of index file?
  7. What is data modeling?
  8. How entity integrity is maintained?
  9. What is the use of MS-Access?
  10. What is query?
  11. What is the use of data sheet view?
  12. Define list box.

(C-Language)

Q3. Write short answers to any EIGHT (8) questions: (16)

  1. What is assembler?
  2. Explain constant macro?
  3. What do you know about C-Statements?
  4. Define an expression with example.
  5. Find error in the code
    #include<stdio.h>
    void main();
    {
    X=20
    Y=40
    Z=X+Y
    printf(“%d”,z)
    getch();
    }
  6. What is increment operator?
  7. What is the use of scanf() function? Write syntax.
  8. What is format specifier? Write example
  9. Explain clrscr() function.
  10. Trace output:
    void main()
    {
    char w1,w2,w3;
    w1=’A’;
    w2=’B’;
    w3=’C’;
    printf(“%c %c w3”,w1,w2);
    getch();
    }
  11. List some important functions for output.
  12. 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)

  1. List the names of errors in Visual Basic program
  2. What is integrated development environment?
  3. Define structured programming technique.
  4. Differentiate between property and method.
  5. What is the purpose of Val function?
  6. What does declaring a variable mean?
  7. How colour of a form is changed in Visual Basic?
  8. Explain variant type of variable.
  9. What are logical operators?
  10. How comments are added in Visual Basic program?
  11. What is constant? List its types.
  12. Explain ADO controls.

(C-Language)

Q4. Write short answers to any SIX (6) questions: (12)

  1. Write the syntax of conditional operator.
  2. What do you mean by selection?
  3. What is the output of the following statement, if grade = ‘B’?
  4. If(grade = = ‘A’} {grade = = ‘B’ && grade = = ‘C’
    printf(“Fail”);
    else
    printf(“Pass”);
  5. Trace the errors in the following code:
  6. void main(void);
    {
    int x,y,z
    if(x>y);
    printf(“X is largest”);
    else
    printf(“Y is largest”);
    getch();
    }
  7. Write the output of the following program fragments:
    n=0;
    WHILE(n<=4)
    printf(“% 3d % 3d \n”,n,10-n);
    n++;
    }
  8. What is “goto” statement?
  9. Describe user defined function.
  10. List some benefits of using function.
  11. Define pointer.

OR
(Visual Basic)

Q4. Write short answers to any SIX (6) questions: (12)

  1. Can a person be good programmer if he is expert in problem solving?
  2. What is property window?
  3. What is code window?
  4. How are event procedures named?
  5. Define object and property in Visual Basic.
  6. Differentiate between hiding and closing a form.
  7. How many times does the following loop execute.
    For I=1 to 5 step 1
    NEXT I
  8. What is iteration in Visual Basic?
  9. 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)