(MULTAN 2014)
INTERMEDIATE PART-II (12th CLASS)
COMPUTER SCIENCE (NEW SCHEME)
TIME ALLOWED: 20 Minutes
PAPER-II
OBJECTIVE
MAXIMUM MARKS: 17
Note: You have four chokes for each objective type gotten 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. Attempt as many questions as given in objective type question paper nod leave others blank:. Do credit will be awarded is case BUBBLES are not filled. Do not solve question on this sheet of OBJECTIVE PAPER.
Q.No.1
- The goal of normalization is to:-
(A) Increase number of relation
(B) Get stable data structure
(C) Increase redundancy
(D) None of these
- __________table views are available in MS-Access.
(A) 4
(B) 3
(C) 2
(D) 1
- A sub form can be created by using:-
(A) Drag and Drop method
(B) The form wizard
(C) Sub form wizard
(D) All of these
(A)Text Editor
(B) Compiler
(C) Debugger
(D) All of these
OR
__________is the native Language of computer.
(A) Language
(B) Pastel
(C) Both A and B
(D) Machine Language
- Which is a numeric data type?
(A) Floating point
(B) Integer
(C) Both A and B
(D) None of these
OR
_____________ in Visual Basic Form is another name of .
(A) Object
(B) Window
(C) Property
(D) None of these
- ___________is not a valid escape code.
(A) \t
(B)\r
(C)\y
(D) \f
OR
The property that changes text color is:-
(A) Back color
(B) Font color
(C) Foreklor
(D) None of these
- The escape sequence for back slash is:-
(A) \
(B) \b
(C) \y
(D) \t
OR
__________bytes are occupied by long data type.
(A) 12
(B) 16
(C) 8
(D) 4
- A relational expression is false, it has the value .
(A) Zero
(B) One
(C) Less than zero
(D) None of these
OR
A statement block can consist of _____________lines.
(A) Unlimited
(B) 0
(C) 2
(D) None of these
- In If statement false is represented by:-
(A) 0
(B) 1
(C) 2
(D) 3
OR
A loop within a loop is called,-
(A) Nested loop
(B) Inner loop
(C) Outer loop
(D) None of these
- This statement causes a loop to terminate early:-
(A) Exit
(B) Terminate
(C) Break
(D) All of these
OR
Caption property is not available with:-
(A) List Box
(B) Text Box
(C) Both A and B
(D) None of these
- Find and replace command is found in:-
(A) Edit menu
(B) File menu
(C) Tool
(D) View menu
OR
How widely a variable is recognized to procedures in project?
(A) Scope
(B) Life time
(C) Duration
(D) Execution
(A) Built in function
(B) User defined function
(C) Keyword
(D) None of these
OR
Function is used to convert numerical value to string.
(A) Str
(B) Val
(C) CStr
(D) Len
- ____________are file handling functions.
(A) f print f ( )
(B) f scan f ( )
(C) Both A and B
(D) None of these
OR
_________________method will close a file.
(A) Close same
(B) Close all
(C) Close
(D) None of these
- A logical grouping of characters is a:-
(A) File
(B) Record
(C) Field
(D) All of these
- A relation is analogous to a:-
(A) Row
(B) Field
(C) Record
(D) File
- An attribute is also known as a:-
(A) Relation
(B) Table
(C) Row
(D) Field
- Cars and parts are example of:-
(A) Concepts
(B) Attributes
(C) Entities
(D) None of these
(MULTAN -2014)
NTERMEDIATE PART-II (12th CLASS)
COMPUTER SCIENCE (NEW SCHEME)
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 St Visual Basle").
MS-ACCESS
2. Attempt any Eight parts. (8 x 2.16)
- What is Data Processing?
- Enlist different types of Database Models.
- What is the concept of Consistency Constraints?
- Who is Data Administrator?
- What is the difference between Primary Key and Foreign Key?
- Define the term Relation.
- What is the concept of Data Distribution Strategy?
- What are Database Anomalies? Only list their nausea.
- What is the difference between Form and Report?
- List different buttons available on Access Database Window.
- Define the term Cardinality of s Relation.
- What is the concept of Sub-form?
3. Attempt any Eight part. (8 x 2 = 16)
(Note: In each option 1st question relates to C-Language and 2nd question relates to Visual Basic)
- What do you mean by Case Sensitive in C- Language?
OR
What is Compiling in Visual Basic?
- Write two reasons why it would be preferable to write a program in C rather than machine language.
OR
What is NET Platform?
- State the purpose of defining Preprocessor Directive.
OR
What is Object Oriented Language?
- Differentiate between Declaring and Defining a variable.
OR
What is the purpose of VAL Function?
- What is the value of Y after the following code executes: float Y = 3.4 + SQRT(2.5.0)
OR
What is an identifier in Visual Basic?
- How are comments added on multiple lines?
OR
State the purpose variable in Visual Basic.
- Give some examples of valid variable names.
OR
Describe the use of message box in Visual Basic.
- Write C statement to print the value of unsigned long x.
OR
Define Sequence in Visual Basic.
- Give single print statement to print the following message.
- No. of employees
- No. of officers
OR
State Relational Expression.
- Describe clever ( ) function.
OR
Write the syntax of if-then statement in Visual Basic.
- Write the output of the following code:-
int x = 9;
x = x%4;
printf ("\%d is result",x);
OR
Draw a flowchart of simple if statement.
- Trace the output of the following cake,
{
Int x,y, z;
x 3;
y = 2
z = 4
printf (‘'%d%d%d", x + y, y + 5, x + z);
getche( );
}
OR
What are Logical Operators in Visual Basic?
4. Attempt any six part. (6 x 2=12)
(Note: In each option 1st question relates to C-Language and 2nd question relates to Visual Basic)
- Write an expression in C Language for "Number is divisible by 5"
OR
Write an expression in Visual Basic for "Number is divisible by 5".
- Define one why decision and also draw flowchart.
OR
Define Control Structure.
- Define assignment statement with example.
OR
Write an expression in Visual Basic for the formula. disc =
- What will be output of the following:-
int x= 5, y =10;
if(x>y)
y 2;
Y=Y+ 1;
printf ("value of y = %d” y);
OR
Write use of for-next loop in Visual Basic.
- Define Sentinel Control Loop.
OR
What is the use of exit do in Visual Basic?
- Draw a flowchart of While Loop.
OR
What do you mean by Caption in Visual Basic?
- What is function Call Statement?
OR
Write code in Visual Basic to print counting from I to 10.
- Define EOF marker in filer
OR
What do you mean by Variant type variables in Visual Basic?
- What are Actual Parameters?
OR
Write down the General Syntax of input box, also give example.
SECTION-II (Essay Type)
NOTE: Attempt any one question. (8 x1=8)
MS-ACCESS
5. Define Data Modeling. What arc the ingredients of Data Modeling? 2 + 6 8
6. Discuss different methods of Modifying a table. (8)
NOTE: Attempt any two questions either from "C-Language" OR from Visual Basic".
C-Language
7. Briefly describe the basic structure of a C-Program. (8)
OR
Visual Basic
Briefly describe the basin structure of Visual Basic Program. (8)
C-Language
8. Writ a program that inputs a number and find whether it is even or odd, using if-else structure. (8)
OR
Visual Basic
Wale a program using Visual Basic that inputs a number and find whether it is even or odd using if-then-else structure. (8)
C-Language
9. What is "While" loop and explain its working with example. (8)
OR
Visual Basic
Discuss conditional loop and explain its working in Visual Basic. (8)
SECTION-III
(PRACTICAL)
10. Attempt any three parts of the questions. (3 x 5=15)
- How you can add a combo box on form in MS-Access?
- How you can add a check box on form in MS-Access?
- Write a program that will add two numbers in C-Language or in Visual Basic.
- Write a program to find the factorial of a number in C-Language Or in Visual Basic.
- Write s program to message on screen "We Love Pakistan" by using function C-Language or in Visual basic.