Computer Science
Lahore Board 2015
Inter Part-II
Time: 20 Min.
Objective Type
Marks = 17
NOTE: Four possible answers A , B , C and D to each questions are given. The choice which you think is correct, fill that circle in front of that question with marker or ink pen in the answer-book. Cutting or filling two or more circles will result in zero mark in that question.
(MS-ACCESS)
- The manipulated and processed data is called:
(A) Data
(B) Information
(C) Object
(D) Instance
- Insert common is used to insert:
(A) New table
(B) New record
(C) View
(D) Dependencies
- Which is the following is used to associate entities with one other:
(A) Entity
(B) Attribute
(C) Identifier
(D) Relationship
- In 3NF, which form of dependency is removed:
(A) Functional
(B) Non-functional
(C) Associative
(D) Transitive
- A database consists of various components called:
(A) Tools
(B) Properties
(C) Entities
(D) Objects
- How many tables view are available in Microsoft access:
(A) 4
(B) 3
(C) 2
(D) 1
- A form within other from is called:
(A) Sub-form
(B) Main form
(C) Multi-form
(D) Inner form
C-Language OR Visual Basic
(C-language)
(A) RAM
(B) ROM
(C) Hard disk
(D) Cache
- Which is the following is not a valid identifier:
(A) Return
(B) My Int
(C) My integer
(D) Total 3
- Which is the following function is used to input in C-programs:
(A) Scanf
(B) Print
(C) Get
(D) Sqrt
- An ampersand (&) before the name of variable denotes:
(A) Actual value
(B) Variable name
(C) Address
(D) Data type
- Another term of computer making of decision is:
(A) Sequential
(B) Selection
(C) Repetition
(D) Iteration
- Relational operator allows us o----------numbers:
(A) Compare
(B) Add
(C) Multiply
(D) Divide
- One execution of a loop is known as a (n):
(A) Cycle
(B) Duration
(C) Iteration
(D) Test
- In which loop the condition comes after the body of the loop:
(A) While loop
(B) Do-while loop
(C) For loop
(D) Both B and C
- Function prototype for built-in functions are specified in:
(A) Source file
(B) Header file
(C) Object file
(D) Image file
(A) RAM
(B) ROM
(C) Hard disk
(D) Cache
OR
(Visual Basic)
- How many possible solution are there for a problem:
(A) Multiple
(B) One
(C) Two
(D) Three
- In Visual Basic, a form is another name for a (n):
(A) Window
(B) Object
(C) Property
(D) Label
- The naming prefix for a label control is:
(A) lbl
(B) lab
(C) lbe
(D) l
- You can enter data in a control only when it has:
(A) Tab order
(B) Mask
(C) Focus
(D) Control
- How many bytes are occupied by integer data type in visual basic :
(A) 4
(B) 2
(C) 6
(D) 8
- The default message box style is:
(A) OK/Only
(B) Yes/No
(C) Yes/No/Cancel
(D) Retry/Cancel
- A statement block can consist of how many lines:
(A) 0
(B) 2
(C) Unlimited
(D) At most 255
- The loops which never ends is called:
(A) Running loop
(B) Infinite loop
(C) Continuous loop
(D) Endless loop
- The increment in For-------Next loop can be:
(A) Positive only
(B) Both A and C
(C) Negative
(D) None of these
Computer Science
Lahore Board 2015
Inter Part-II
Time: 3:10
Essay Type
Marks = 83
SECTION-I
(MS-ACCESS)
2. Write short answer any Eight (8) questions: (16)
- Differentiate between data and information.
- List different activities in data processing.
- Define database system.
- Define entity
- Who is data administrator?
- Define an attributes. Give an example.
- Define the term redundancy .
- Write down the two advantages of IDE.
- Define query.
- Describe text data type.
- Distinguish between primary key and foreign key.
- Write down the table view available in access
C-Language
3. Write short answers to any EIGHT (8) questions: (16)
- What is the use of ‘include’ pre-processor directive?
- What is the use of semicolon in C-language?
- Define run time error.
- What is the error in following statement: int x – 0 ; y = 0;
- Define variables.
- Write down the two rules for naming variables.
- Define compound assignment operator.
- Correct the following statement.
printf (Hello World);
- Write down output of the following code:
Printf (“C programming is\t easy)
- Write down output of the following code:
Int x = 10;
Printf(“%f”,x);
- Write down the syntax of scanf ( ) function.
- Define field-width.
(Visual Basic)
3. Write short answers to any EIGHT (8) questions: (16)
- What is IDE?
- Define toolbox.
- Define the purpose of Name property of a VB control.
- Differentiate between design time and run time.
- Write down the names of four commonly used VB controls.
- What is implicate or default declaration in Visual Basic?
- What is meant by hiding a form?
- What are keywords?
- What is code window?
- What is flow chart?
- How are event procedures named?
- What are check box controls?
C-Language
4. Write shoat answers to any six (6) questions : (12)
- What is conditional operator?
- Why break statement is used in a switch () structure?
- Trace the errors in the following code:
Int word= 10
If (word! =10)_
Word = 0
Else;
Word + =2
(iv) What is the output of the following code:
Int x,y;
x=5
y=x;
if(x < y)
printf ( “Hello”)
else
prinf (“Pakistan”)
- Differentiate between While loop and Do While loop.
- Make a flowchart of For loop.
- Define built in a function.
- Compare local variable with global variable.
- Define file pointer.
(Visual Basic)
4. Write shoat answers to any six (6) questions: (12)
- Write down the syntax of select---case structure.
- Which cap option is used to test relational values?
- How many times do the following loop executes:
I =10
DO WHILE I >1
I=I – 1
loop
- What is Do While loop in VB?
- Draw a flowchart of For-----Next loop.
- Define nested loop in VB.
- List advantages of an array.
- What do you mean by selection sort?
- State the purpose of Timer Control.
SELECTION-II
(MS-ACCESS)
Note: Attempt any one question.
5. Explain different types of relationship with example. (8)
6. Explain different data types available in MS-Access. (8)
SECTION-III
Note: Attempt any TWO description answer (either from “C-Language” or form “Visual Basic “) of the following questions.
7. What is language processor? Discuss its different types.
8. Write a program that input marks from user and display ‘pass’. If marks are greater of or equal to 40 otherwise ‘fail;?
9. What are loops? Discuss different loops provide by C.
OR
(Visual Basic)
7. What is object oriented programming language? Explain briefly.
8. Write a click event procedure to input marks and message box to display either ‘pass’ or ‘fail’. If marks >=40 or marks ,40?
9. What are loops? Discuss while-wend loop in detail
SECTION-IV(Practical Part)
Note: Attempt any THREE questions.
- Explain the procedure for creating table in MS-Access.
- Write a procedure for creating form in design view.
- Write a program in C language or Visual Basic that input a string and displays it o the screen.
- Write a program in C language or Visual Basic that inputs a number and displays whether it is even or odd by using logical operator, using function.
- Write a program in C language or Visual Basic that displays product of all odd numbers from 1 to 10 using FOR loop.