Intermediate Part-II (12th Class)
Computer Science Paper-II
Time Allowed: 20 min
OBJECTIVE
Maximum Marks: 17
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 fornt 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. Attempt as many questions as given in objective type question paper and leave others blank. No credit will be awarded in case BUBBLES are not filled. Do not solve question on this sheet of OBJECTIVE PAPER.
Q.No.1
- A collection of related fields is called
(A) File
(B) Database
(C) Attribute
(D) Record
- --------- type requires largest processing time
(A)Random File
(B) Direct Access File
(C) Sequential File
(D) Index Sequential file
- The selected candidate key is called
(A) Primary Key
(B) Foreign Key
(C) Super Key
(D) Composite Key
- ------- are used to define characteristics of an entity
(A)Objects
(B) Attributes
(C) Records
(D)Files
(A)Foreign Key
(B) Sort Key
(C) Composite Key
(D) Primary Key
- To find a name that starts with S, the criteria is written as
(A) S#?
(B) S#
(C) ?S
(D) S*
- ----------------- is used to retrieve data from one or more tables
(A) Macro
(B) Table
(C) Query
(D) Form
C-Language
- --------- Key is used to save a file in Turbo C++
(A) F1
(B) F2
(C) F5
(D) F7
- The number of bytes used by long double data type is
(A) 4
(B) 8
(C) 10
(D) 12
- The format specifier used for floating point values is
(A) % u
(B) %i
(C) %d
(D) %e
- The escape sequence used to move cursor one character back is
(A) \b
(B) \t
(C) \n
(D) \r
- ----------- operators are used to make compound condition
(A) Arithmetic
(B) Logical
(C) Bitwise
(D) Relational
- The expression p-=q is equivalent to
(A) p=q-p
(B) p=q-1
(C) p=p-q
(D)q=p-q
- ------- statement causes to terminate loop early
(A) Continue
(B) Break
(C) End
(D) Exit
- One iteration of a loop is known as
(A) Iteration
(B) Duration
(C) Cycle
(D) Repetition
- Multiple arguments passed to a function are separated by
(A) Period
(B) Colon
(C) Comma
(D) Semicolon
- In ----------- file opening mode, data can only be read from an existing file
(A) W
(B) W+
(C) r+
(D) r
VISUAL BASIC
- ----------- shortcut key is used to save a project in visual basic
(A) Alt + S
(B) Ctlr + S
(C) Alt + Shift + S
(D) Ctlr + Shift + S
- The number of types used by currency type variable is:-
(A) 2
(B) 4
(C) 8
(D) 10
- The index of an array is also called
(A) Size
(B) Content
(C) Value
(D) Subscribt
- The value of pre-defined constant VbyesNo is:-
(A) 4
(B) 5
(C) 6
(D) 7
- ------ operators are used to make compound condition in VB.
(A) Arithmetic
(B) Logical
(C) Bitwise
(D) Relational
- ----------- keyword is used to increment or decrement a counter by a value in FOR --- NEXT loop
(A) Interval
(B) Skip
(C) Step
(D) Next loop
- ----------- keyword is used for early termination of FOR --- NEXT loop
(A) End For
(B) Exit For
(C) Exit Loop
(D) End Loop
- One execution of a loop is known as
(A) Iteartion
(B) Duration
(C) Cycle
(D) Repetition
- Multiple arguments passed to a function in VB are separated by
(A) Period
(B) Colon
(C) Comma
(D) Semicolon
- ----------- Keyword in VB is used to trigger the execution of another procedure.
(A) Run
(B) Start
(C) Go
(D) Call
Intermediate Part-II (12th Class)
Computer Science
Paper-II
Time Allowed: 3.10 Hours
Subjective
Maximum Marks: 83
Note: Write same question number and its part number on answer book, as given in the question paper
SECTION-I
(Either from “MS-Access” & C-Language” or from “MS-Access & Visual Basic”)
MS-ACCESS
2. Attempt any eight parts: (8x2=16)
- Define Field?
- What is Secondary Key?
- Who is End User?
- Differentiate between Fixed Length Field and Variable Length Filed?
- List any two activities involved in Data Analysis?
- What is Attribute? Give an example?
- Give two example of Entity?
- What is Transitive Dependency?
- List any two parts of Application Window in MS-Access?
- Define integrated Development Environment?
- What is the use of Input Mask?
- List any two methods of creating sub-forms
3. Attempt any eigth parts: (8x2=16)
C-Language
- Write at least two differences between Source Code and Object Code.
- Define Runtime Error?
- Who is a Programmer?
- List two types of Identifiers in C?
- How are Characters Stored?
- Find the error in the following code?
#include <std10.h>
Void main (void)
{
Int x, y, z
Z=x+y+z
}
- What is the value of Y after the following code executes?
- Float y = 3.4 + sqrt (25.0);
- List out four types of format specifier
- What is the control string in print function?
- Trace the errors in the following code:-
# include (std 10.h)
Void main (void);
{
X=5;
Y=6:
Z=x+y;
Printf (“%d”,z);
}
- What is the output of the following code?
- Find the output of following code segment:-
int x = 10;
int y = 5;
int z = x + y;
printf (“%d %d %d”, x, y, z);
VISUAL BASIC
- What is Message Box?
- Write a code that should print the numbers from 2 to 100 only even numbers?
- Define Tool Tip?
- What is Option Button?
- Identify and correct In following statement?
Dim False as Integer
X+ Y =Z
- What does MDI mean?
- What do you mean by Selection Sort?
- Define Array?
- State the purpose of Object Code?
- Define Toolbar in VB
- What is form Layout Window?
- List two events of OLE control?
4. Attempt any six Parts: (6x2=12)
C-Language
- What is Control Structure?
- Write the syntax of “if-else” statement.
- Trace error
Void main ( )
{
Int a = 2
If (a = = 1)
Printf (“OK”)
Else
Printf (“Cancel”)
Getch ();
}
- Trace output:-
Int a = 5, b = 10
If a > b
Printf(“Low Triangle”);
Else
Printf (“Huge Triangle”);
- Trace output:-
Int I, j = 10;
For (i=1; i<=5; i++)
{
Printf(“\nPakistan”);
}
- Convert the following code into while loop;-
For (int I = 1; I < 10; i++)
{
Printf(“\npakistan”);
}
- What is lifetime of a variable?
- What is the scope of a local variable
- What is the use of Data File?
VISUAL BASIC
- What is Control Structure?
- Write the syntax of if-then-else statement?
- How do we print form in Visual Basic?
- What is the purpose of Val function?
- Give one difference between Cls and Hide Method of form?
- Write any two parts of form Object?
- When is concatenation useful in a Visual Basic Project?
- What is the scope of a Local Variable?
- What is lifetime of a variable?
SECTION-II (Essay Type)
Note:- Attempt any one question.
MS-ACCESS
Q5:Define Database System, What are three major components of Database Syatem? Explain in detail. 2+2+7=8
Q6:Explain any four method of modifying a table. 2+2+2+2=8
NOTE:- Attempt any two question either from “C-Language” OR from Visual Basic”.
C-Language
Q7:Discuss the basic structure of a C program in detail. 2+2+2+2=8
OR
Visual Basic
Discuss any eigth form events in Visual Basic. (8)
C-Language
Q8:Write a program that inputs a year and find whether it is a leap year or not. Using C-Language (8)
OR
Visual Basic
Write a program that inputs a year and find whether it is a leap year or not. Using C-Visual Basic (8)
C-Language
Q9:Define While loop. Give its syntax and flow chart diagram. Also explain its working using an example. 2+1+1+4=8
OR
Visual Basic
Define While Wend loop.Write its syntax and explain working using flow chart diagram. 8
SECTION-III (PARCTICAL)
Q.10: Attempt any three parts of the questions:- (5x3=15)
- Write procedure to extract data from multiple table in a query.
- Write a procedure to create a primary kry in a table.
- Write a program that inputs length and width of a rectangle and find its area in C-Language or Visual Basic.
- Write a program that genetrates the odd numbers starting from 1 to 19 in C-Language Visual Basic.
- Write a program that uses a function to calculate the circumference of a circle and returns the value to main function in C-Language or Visual Basic. Formula is C=2πr.