Inter (Part-II) Sargodha Board 2016
Computer
Part II (Objective Type)
Time Allowed: 20 Minutes
Max. Marks: 15
Note: You have four choices 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.
Question #1
Circle the correct option i.e. A/B/C/D. Each part carries one mark.
(MS-ACCESS)
- A collection of raw facts and figures is called:
(a) Data
(b) Information
(c) Processing
(d) Output
- A database containing all students in a class would store the information of individual students in:
(a) Field
(b) Record
(c) Cell
(d) File
(a) Attribute
(b) Relationship
(c) Tuple
(d) Relation
- Which is NOT included in the definition of an entity:
(a) Person
(b) Object
(c) Action
(d) Concept
- In 2NF, which form of dependency is removed?
(a) Functional
(b) Partial
(c) Associative
(d) Transitive
- Which symbol indicate that you are editing record?
(a) Pencil
(b) Black arrow
(c) Key
(d) Asterisk
- How many are basic layout of forms in Microsoft ACCESS?
(a) 1
(b) 2
(c) 3
(d) 4
C-Language OR Visual Basic
(C-Language)
- The name of Header file is written between:
(a) [ ]
(b) ""
(c) < >
(d) {}
- The a + = b is equivalent to:
(a) b+=a
(b) a=a+b
(c) a=+b
(d) b=b+a
- The function getche ( ) is defined in:
(a) Stdio.h
(b) Math.h
(c) String.h
(d) Conio.h
- Format specifier is started with symbol:
(a) %
(b) ?
(c) #
(d) $
- Which operator in C is called ternary operator?
(a) +
(b) + +
(c) ?
(d)--
- In if statement, False is represented by:
(a) 0
(b) 1
(c) 2
(d) 3
- One execution of a loop is known as a(n):
(a) Cycle
(b) Duration
(c) Test
(d) Iteration
- A loop that never ends is called:
(a) Infinite loop
(b) Finite loop
(c) Nested loop
(d) Running loop
- Global variables are created in:
(a) ROM
(b) Hard Disk
(c) RAM
(d) Cache
- An array, script should be:
(a) Float
(b) Int
(c) Double
(d) Long
(Visual Basic)
VISUAL BASIC is a product of:
(a) IBM
(b) HP
(c) Microsoft
(d) Dell
- The naming prefix for label control is:
(a)
ab
(b)
(c)
(d)
- Lowest level of programming language is:
(a) Java
(b) Pascal
(c) C++
(d) Assembly language
- The code that is used in sub procedure to stop execution of a program is:
(a) End
(b) Exit
(c) Halt
(d) Endsub
- How many elements are in the following array? Dim A(5,5) as integer:
(a) 5
(b) 6
(c) 25
(d) 36
- Which control is used to display text or accept user Input?
(a) Text box
(b) Label
(c) Button
(d) Message Box
- Which of the following operators is used to assign a value to variable?
(a) *
(b) +
(c) >
(d) =
- Which Keyword is used to trigger the execution of another procedure?
(a) CALL
(b) GO
(c) Start
(d) Run
- Division by zero (e.g 3/0) is an example of:
(a) Compiler error
(b) Logical error
(c) Runtime error
(d) Operator error
- How many bytes occupied by decimal data type in VB?
(a) 14
(b) 16
(c) 18
(d) 20
Inter (Part-II) Sargodha Board 2016
Computer
Part II (Subjective)
Time Allowed: 2.10 Hours
Max. Marks: 60
Section I
(MS-ACCESS)
- Attempt any EIGHT short questions. (8 x 2 = 16)
- Write two advantages of database management system.
- Define foreign key attribute in database.
- What are the four responsibilities of a database administrator?
- How a primary key is different than a candidate key?
- Define any two cardinalities of relationship.
- List any two data distribution strategies.
- What is difference between Relation and Relationship?
- (viii)How do we attain entity integrity in database?
- List any four properties of a good relational database management system.
- Differentiate between query and report in MS-Access.
- Differentiate between degree and cardinality of a relation.
- Name any two types of forms used in Ms-Access.
(C-Language)
- Attempt any EIGHT short questions. (8 x 2 = 16)
- Define Source Code.
- Write down any two causes of syntax error.
- Distinguish between source code and object code?
- Define implicit casting
float area , r
printf ("Enter Radius);
scanf ("% ; r);
- Write the output of the following code:
printf ("Programming \t is \n very \t interesting");
- Write the output of the following code:
int x, y, z, r;
printf ("Enter three numbers:");
scanf ("% d % d % d", &x, &y, &z);
r=x+y*z;
printf ("% d ", r);
OR
(Visual Basic)
- Attempt any Eight (8) short questions. (8 x 2 = 16)
- Why assembly language is called symbolic language?
- What is the function of language processor in VB?
- Differentiate between structured and object oriented programming.
- How are controls placed on a form?
- What is the purpose of Name property of a control?
- Define the function of Focus?
- What is the use of Key Press, Key Down and Key Up events?
- (viii)Give the difference among properties and methods.
- Why are Boolean variables used in VB?
- What is assignment operator in VB?
- What is the difference between '+' and '&' ?
- Differentiate between variable length string and fixed length string.
OR
(C-Language)
- Attempt any SIX short questions. (6 x 2 = 12)
- Define selection statement. List two basic selection statements in
- What are logical operators?
- Trace the error from the following code:
void main ( )
{
int a = 2 ;
if (a = 1);
printf ("ok");
Else
Printf ("No");
- Predict the output for the following code:
int a = 1 ;
int b = 6 ;
if(a+b<7)
printf ("%d", a);
else
printf ("% d", b);
- Write the syntax of do-while loop both for single and for multiple statements.
- List four benefits of using functions.
- Predict the output from the following code:
int n;
n= 1;
clrscr ( );
while (n < = 10)
{
printf ("% d n", n);
n + + ;
}
- What is function declaration or function prototype?
- Describe binary stream.
OR
(Visual Basic)
- Attempt any SIX short questions. (6 x 2 = 12)
- What are the purpose of relational operators?
- Write down the syntax of IF THEN structure.
- Trace the error from the following code:
int i
i = 100
printf "I has 100"
End Sub
- Predict the output from the following code:
Dim a , b As Integer
a = b
b = 4
If a * a = b then
Print a + b
End If
- Describe counter- controlled loops.
- Write down the syntax of Do until loop also draw its flow chart.
- Predict the output of the following code:
Dim n As Integer
n = 1
while n < = 5
Print "Help"
n = n + 1
Wend
- How are individual array elements identified?
- Define the use of data file in V.B.
SECTION -II
Attempt any One Question. (8 x1=08)
MS-ACCESS
Question #5 What is database? Explain three types of database Models.
Question #6 Discuss any four different methods of modifying a table?
SECTION -III
Attempt any TWO Question. (8 x2=16),
C-LANGUAGE OR VISUAL BASIC
C-LANGUAGE
Question #7 Expthe stepwise procedure of writing a C program.
OR
VISUAL BASIC
Question #7 What is Visual Basic IDE? Write down step-wise procedure of application development in Viusal Basic.
C-LANGUAGE
Question #8 Write a program that inputs a character from user and tells whethe' it is Vowel or Consonant.
VISUAL BASIC
Question #8 Write a program that inputs a character from user and tells whether it is Vowel or Consonant.
C-LANGUAGE
Question #9 Define "while" loop. Write its syntax, Draw Flow chart and Explain its working with the help of Example.
OR
VISUAL BASIC
Question #9 Define "while-wend" loop. Write its syntax, Draw Flow chart and Explain its working with the help of Example.
SECTION IV
Attempt any TIIREE Questions. (5x3=15)
Question #10.
- Write down the procedure of creating a table in design view.
- Write down the procedure of creating a form using wizard.
- Write a program in C language or visual basic that inputs three numbers and displays their sum.
- Write a program in C language or Visual Basic that displays table of a number entered by user.
- Write a program in C language or Visual Basic that inputs a number, passes it to a function, the function return it after incrementing it by 10. The incremented number is displayed by main ( )?