XII-Computer Science Karachi Board


Q.1 (A). Fill in the blanks with the correct answer.
i. The __________ loop means loop inside the loop.
ii. Comments in "C" program can be found in the set of __________ characters.
iii. A variable which can be accessed by all program modules is called __________ variables.
iv. Microsoft Access is the example of __________ database management system.
v. The closing brace of a structure is followed by a __________.
Q.1 (B). Choose the correct answer for each from the given options.
i. String is
A list of characters
An array of characters
A collection of characters
None of them
ii. The function Scan f() reads
A single character
A character by string
Any possible number
Any possible variable
iii. In a multiple statement which loop terminated with a
semicolon (;)
comma (,)
Right brace ()
Right bracket (})
iv. The collection of related file is called
v. From which part of a loop is the break statement used to exit
None of them
Q.1 (C). State whether the following statement are "True" or "False".
i. Data type filed with specifier and precision specifier are the parts of a format specifier.
ii. A for () loop contains four expressions: initialize, assignment test and increment.
iii. A function must use return statement to back to the calling function.
iv. Switch () is an exact equivalent of nested if-else statement.
v. In MS Access, expression builder can be used to create logical expression.
Q.1 (D). Match each items in Column "A" with its description in column "B".
Column "A"
(a) Database file
(b) Primary key
(c) High level
(d) Many-to-Many
(e) If-else
Column "B"
(i) Control Statement
(ii) C-Language
(iii) Relationship
(iv) Unique Value
(v) Records
@import "/extensions/GoogleAdSense/GoogleAdSense.css";
google_ad_client = "pub-5768095922297388";google_ad_slot = "8081389568";google_ad_width = 728;google_ad_height = 90;

Q.2 What is a Function? Explain user defined function by giving an example.
What Escape sequences? Define with an example of each.
What is structured Programming? Write the process of creating a "C" Program.
Q.3. Define are operator. Explain Logical Operator.
What are the advantages and disadvantages of functions.
Q.4. What data types are used in "C" language? Explain each by given examples.
Define the Loop. Discuss all the loops used in "C" language with syntax and examples.
Q.5 (A). Explain the following:
i. Relational Operators
ii. Logical Operators
iii. Format Specifiers
iv. Escape Sequence
v. Table
vi. Form
vii. Query
viii. Control Structure
Q.5 (B). Convert the following into equivalent if-else statement.
i. x ? Print f ("negative")
Print f ("positive")
ii. x = (y mod 2 = 0)? Print f ("even")
Print f ("odd")
Q.5 (C). What are commonly used I/O functions in "C" language.
Differentiate between the following
ii. Constant and Variable
iii. Define and Include
iv. Relational Operator & Conditional Operator
v. Scan (f) and ≠getchar
vi. Primary Key and Foreign Key
vii. Break Statement and Continue Statement
viii. Text Box Control and Label Control
ix. While Wend and For NEXT
x. Function and Library Function

Q.6 (A). Write a programme using "C" language to print the factorial of "n" numbers.
Write a programme in "C" language which takes inputs of three numbers from the user and prints the largest number among them.
Q.5 (B). What is nested looping? Write a program using nested loop to print the following output.
2 ..... 04 ..... 06 ..... 08 ..... 10
3 ..... 06 ..... 09 ..... 12 ..... 15
4 ..... 08 ..... 12 ..... 16 ..... 20
5 ..... 10 ..... 15 ..... 20 ..... 25
Q.7 (A). Describe different data base models. Define the different types of relationship in a database.
Discuss all the data types used in MS. Access.
What is primary key? Write down the characteristics of a primary key.
Q.7 (B). What is meant by top-down programming? Define it briefly with a flowchart and an example.
How many types of decision structures are there in "C" language? Define with an example of each.
Q.8. Define conditional operator. How does it differ from the other operator?
Write a program using switch statement.
Q.9 (A). What is the hierarchy of computer languages? Briefly explain the characteristics of high level programming language?
Q.9 (B). What will be the output of the following programs?
void main
{int i;
clrscr ();
for (i = 1; <10; 2 =" 0)" name="SECTION_.22A.22_2">
Q.1 (A). Fill in the blanks with the correct answers.
i. A key uniquely identifies a record is called _________.
ii. Retrieving the record from a database is called _________.
iii. The collection of homogenous data is called _________.
iv. _________ is a program which returns value.
v. Byte data type holds an integer in the range of _________.
Q.1 (B). Choose the correct answer for each from the given option.
i. Which DB model allows query through SQL.
ii. A database is collection of
Related fields
Related data
Related records
None of these
iii. Which control presents a group of buttons from which a user can choose only one?
Option button
Command button
Combo box
Check box
iv. Which method is used to hide a form
Form name.Hide
v. Boolean data type store values of type
Q.1 (C). State whether the following statements are "True" or "False".
i. A form is must in every Visual Basic Program.
ii. A foreign key in a table relates the value of another table.
iii. A file which contains upto date records is called master file.
iv. More than one variable can be declared in the same Dim statement.
v. Visual Basic (VB) is an object oriented language.
Q.1 (D). Match the item of Column "A" with its correct description in Column "B".
Column "A"
(a) Join tables
(b) Function
(c) While-Wend
(d) VB-Script
(e) For-Next
Column "B"
(i) Sub-Program
(ii) Web Page
(iii) Foreign Key
(iv) Condition
(v) Looping

Q.2. Define Multiple Document Interface. What are the characteristics of MDI parent form and MDI child form.
Define Array? How can program code.
Define Form and state its tools used in Visual Basic (VB).
Describe database modes with an examples of each.
Q.3 (A). Define the term Function. Explain how it differ from a sub-routine.
What is an active X-control? Discuss the properties a Text Book Active X-control.
What is meant by Control Flow? What control flow structures are used in Visual Basic (VB).
Q.3 (B). What is the purpose of If-then Else Statement? How is nested If-Else Statement suitable in situation where Multiple conditions are to be checked?
Q.4 (A). Define the following terms
i. Form and Report
ii. Integrated Development Environment (IDE)
iii. Mask and edit box
iv. Active x/exe and Standard EXE file
v. Even Driven Programming
vi. Keyboard Events
vii. VB Project
viii. Network Model and Relational Model
ix. Tab Index
x. Timer Control
Q.4 (B). Differentiate between the following
ii. While Wend and FOR Next
iii. Procedure and Function
iv. Primary Key and Foreign Key
v. Text Box and Control and Label Control
Q.5 (A). Write a program to calculate factorial of any number "N" by using any loop statement, read values from Text box and write it in the other Text box.
Q.5 (B). Write a values of x in the following
i. x = 2
x = x + x
ii. x = 5
if x < x =" 2*" x =" x" x =" x" google_ad_client = "pub-5768095922297388" google_ad_slot = "8081389568" google_ad_width =" 728;google_ad_height" name="SECTION_.22C.22_2">
Q.6. What is Active - X Data Object (ADO)? How is it used to connect a database?
What is Loop? How many types of loops are there in Visual Basic (VB) Describe each with syntax and examples.
Define query language with at least three examples?
Q.7. What is table object in Microsoft Access? How does it differ from the query object?
How many data types are used in Visual Basic (VB)? Explain each data types with an example.
What is Relational Database? Discuss the advantages of RDBMS.
Q.8 (A). What is a database? How does a data management system help in maintaining data in an efficient way?
What is a database? How is a database connected with a Visual Basic Program? What is meant by dynaset?
Q.8 (B). Explain the Following
i. Table
ii. Query
iii. Form
iv. Report
v. Command Button

No comments:

Post a Comment