0% found this document useful (0 votes)
15 views34 pages

Ags Class 12 Comp

Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
15 views34 pages

Ags Class 12 Comp

Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 34

Sir Asghar Academy

Address: Ghorra Mohalla , M.B Din


Principal : Asghar Waseem 03461428629,03161748726
Class:2nd Year

Syllabus Division Subject :Computer Class :2nd Year


Test No. Chapter No.
Round-1
T1 Ch#1:Data Basics

T2 Ch#2: Basic Concepts and terminology of Databases

T3 Ch#3: Data Base design process

T4 Ch#4: Data Integrity and normalization

T5 Ch#5: Introduction to Microsoft access

T6 Ch#6:Table and query

T7 Ch#7:Microsoft access forms and reports

T8 Ch#8: Getting started with C

T9 Ch#9:Elements of C

T10 Ch#10: Input /Output

T11 Ch#11: Decision constructs

T12 Ch#12: Loops Constructs

T13 Ch#13: Functions in C

T14 Ch#14: File Handling in C

Round-2
T15 Ch#1,2

T16 Ch#3,4

T17 Ch#5,6

T18 Ch#7,8

T19 Ch#9,10

T20 Ch#11,12

T21 Ch#13,14

Round-3
T22 First Half Book (1-7)

T23 Second Half Book (8-14)

Round-
T24 Full Book
Sir Asghar Academy
Address: Ghorra Mohalla , M.B Din
Principal : Asghar Waseem 03461428629,03161748726
Class:2nd Year

ROUND-1
Subject: Computer
Class: 2nd Year
Series: Chapter Wise Test
Sir Asghar Academy
Address: Ghorra Mohalla , M.B Din
Principal : Asghar Waseem 03461428629,03161748726
Class:2nd Year

Name: Roll No.: Total Marks: /40


Syllabus: Ch#1:Data Basics Test No.: 1 Date: DD/MM/YYYY
Computer Time:10min Total Marks:6 Subjective Part Group:1st Grand Test Series
Note: Four possible answer a,b,c and d to each question are given. The choice which you think is correct ,fill that circle in
front of that questions with Marker or Pen ink, Cutting or filling two or more circles will result in zero mark in that question.
1 ⒶⒷⒸⒹ 2 ⒶⒷⒸⒹ 3 ⒶⒷⒸⒹ 4 ⒶⒷⒸⒹ 5 ⒶⒷⒸⒹ 6 ⒶⒷⒸⒹ
Q:No.1 6*1=1
1. The manipulated and processed data is called:
(a) Object (b) Information (c) Knowledge (d) Data
2. Data can be recovered in case of loss by using:
(a) Master File (b) Transaction file (c) Backup file (d) Data file
3. The most commonly used database model in current database development is
(a) Network (b) Hierarchical (c) Relational (d) All
4. Which of the following details least flexible.
(a) Network data model (b) Hierarchical model (c) Relational data model (d) Object data model
5. Which of the following database model is also referred as inverted tree?
(a) ℎ (b) Network (c) Relational (d) Object
6. SQL is a:
Unstructured
(a) language (b) Structure language (c) Object oriented language (d) Software

Computer Part( I) Total Marks:34 Time :45 Min Subjective Part Group: 1st Grand Test Series
Q:No.2 Give short answers to the following questions. 5*2=10
i. Define capturing.
ii. Define DML.
iii. List some important purpose of SQL.
iv. State the purpose of report generator?
v. Why is report generator used in database system?
Q:No.3 Give short answers to the following questions. 4*2=8
i. Define data integration.
ii. Differentiate between master file and transaction file.
iii. Why is it important to specify data type and size of a field.
iv. What is summarizing of data?
Q:No.4 Give short answers to the following questions. 4*2=8
i. Write any two objectives of data base management.
ii. Describe data manipulation.
iii. What is the use of DDL?
iv. List different objectives of database.
Attempt All parts from this section: Part II (8)
Q:No.5 What is database? Explain three types of data base models.
Sir Asghar Academy
Address: Ghorra Mohalla , M.B Din
Principal : Asghar Waseem 03461428629,03161748726
Class:2nd Year

Name: Roll No.: Total Marks: /40


Syllabus: Ch#2: Basic Concepts and terminology of Databases Test No.: 2 Date: DD/MM/YYYY
Computer Time:10min Total Marks:6 Subjective Part Group:1st Grand Test Series
Note: Four possible answer a,b,c and d to each question are given. The choice which you think is correct ,fill that circle in
front of that questions with Marker or Pen ink, Cutting or filling two or more circles will result in zero mark in that question.
1 ⒶⒷⒸⒹ 2 ⒶⒷⒸⒹ 3 ⒶⒷⒸⒹ 4 ⒶⒷⒸⒹ 5 ⒶⒷⒸⒹ 6 ⒶⒷⒸⒹ
Q:No.1 6*1=1
1. Which of the following is correct association?
(a) File =column (b) Record=row (c) Field=row (d) Record =table
2. Views are also called:
(a) Complex table (b) Simple tables (c) Virtual tables (d) actual tables
3. CREATE command is used to create
(a) Table (b) Query (c) Field (d) Both a & b
4. A table must have a :
(a) Primary key (b) Secondary key (c) Composite key (d) Sort key
5. Which one is powerful database language?
(a) (b) SQL (c) File system (d) Both a & b
6. An attribute is also known as:
(a) Relation (b) Row (c) Field (d) Tuple

Computer Part( I) Total Marks:34 Time :45 Min Subjective Part Group: 1st Grand Test Series
Q:No.2 Give short answers to the following questions. 5*2=10
i. Define database administrator.
ii. Define the term relation.
iii. Distinguish between entity class and entity instance?
iv. Who is User or end User?
v. How the tables are formed in DBMS
Q:No.3 Give short answers to the following questions. 4*2=8
i. Differentiate between parent table and child Table.
ii. Write down the four responsibilities of database administrator.
iii. How primary key is different than a candidate key?
iv. Enlist properties of a relation.
Q:No.4 Give short answers to the following questions. 4*2=8
i. Write three important characteristics of primary key.
ii. Define view and its purpose.
iii. What is data base administrator?
iv. Writhe the name of types of keys
Attempt All parts from this section: Part II (8)
Q:No.5 What are field properties? Explain at least three field properties with examples.
Sir Asghar Academy
Address: Ghorra Mohalla , M.B Din
Principal : Asghar Waseem 03461428629,03161748726
Class:2nd Year

Name: Roll No.: Total Marks: /40


Syllabus: Ch#3: Data Base design process Test No.: 3 Date: DD/MM/YYYY
Computer Time:10min Total Marks:6 Subjective Part Group:1st Grand Test Series
Note: Four possible answer a,b,c and d to each question are given. The choice which you think is correct ,fill that circle in
front of that questions with Marker or Pen ink, Cutting or filling two or more circles will result in zero mark in that question.
1 ⒶⒷⒸⒹ 2 ⒶⒷⒸⒹ 3 ⒶⒷⒸⒹ 4 ⒶⒷⒸⒹ 5 ⒶⒷⒸⒹ 6 ⒶⒷⒸⒹ
Q:No.1 6*1=1
1. Which of the following is not included is the definition of entity?
(a) (b) (c) (d)
2. Which one of the following is used to associate entities with each other/
(a) Attributes (b) Relationship (c) Entities (d) Cardinals
3. A relationship between countries and capitals is an example of relationship:
(a) One to one (b) One to many (c) Many to many (d) Many to one
4. Ingredient of data modeling which defines the nature of the relationship among entities:
(a) Modality (b) Cardinality (c) Object (d) Attribute
5. E-R diagram represents:
(a) Attribute (b) Relationship (c) Cardinals (d) Entity
6. All the hardware costs are considered during:
(a) Project planning (b) Requirements analysis (c) Feasibility study (d) Data analysis

Computer Part( I) Total Marks:34 Time :45 Min Subjective Part Group: 1st Grand Test Series
Q:No.2 Give short answers to the following questions. 5*2=10
i. Define implementation.
ii. What do you know about integrity constraint?
iii. Enlist data distribution strategy.
iv. What is database design?
v. What are criteria to select file organization?
Q:No.3 Give short answers to the following questions. 4*2=8
i. Define system analysis.
ii. What is the importance of project planning?
iii. Define the term feasibility.
iv. Differentiate between cardinality and modality.
Q:No.4 Give short answers to the following questions. 4*2=8
i. How is database integrity maintained.
ii. State the purpose of physical database design.
iii. Define ER diagram.
iv. What is an attribute? Give an example.
Attempt All parts from this section: Part II (8)
Q:No.5 Discuss different types of relationship relationships. Explain with example.
Sir Asghar Academy
Address: Ghorra Mohalla , M.B Din
Principal : Asghar Waseem 03461428629,03161748726
Class:2nd Year

Name: Roll No.: Total Marks: /40


Syllabus: Ch#4: Data Integrity and normalization Test No.: 4 Date: DD/MM/YYYY
Computer Time:10min Total Marks:6 Subjective Part Group:1st Grand Test Series
Note: Four possible answer a,b,c and d to each question are given. The choice which you think is correct ,fill that circle in
front of that questions with Marker or Pen ink, Cutting or filling two or more circles will result in zero mark in that question.
1 ⒶⒷⒸⒹ 2 ⒶⒷⒸⒹ 3 ⒶⒷⒸⒹ 4 ⒶⒷⒸⒹ 5 ⒶⒷⒸⒹ 6 ⒶⒷⒸⒹ
Q:No.1 6*1=1
1. Two or more attributes having different names but same meaning are called:
(a) Homonyms (b) Aliases (c) Synonyms (d) Alternate Attributes
2. Value of primary key attribute can’t be null. Which constraint defines this rule?
(a) Entity integrity (b) Data integrity (c) Referential integrity (d) All
3. A relation that contains minimal redundancy and allows easy use is called _____:
(a) Simple (b) Well structured (c) Use friendly (d) All
4. Goal of normalization is to
Get stable None
(a) (b) Reduce redundancy (c) Both a & b (d)
Structure
5. In 3NF , which form of dependency is removed?
(a) (b) Repeating group (c) Partial (d) Transitive
6. A primary key that consists of two or more attributes of a relation is called:
(a) Sort key (b) Candidate key (c) Sub key (d) Composite key

Computer Part( I) Total Marks:34 Time :45 Min Subjective Part Group: 1st Grand Test Series
Q:No.2 Give short answers to the following questions. 5*2=10
i. Define referential integrity.
ii. Briefly explain normalization.
iii. Define functional dependency.
iv. When does an insertion anomaly occur?
v. When is referential integrity used?
Q:No.3 Give short answers to the following questions. 4*2=8
i. How do we attain entity integrity?
ii. Define homonym.
iii. How first normal form is achieved?
iv. How referential integrity can be achieved.
Q:No.4 Give short answers to the following questions. 4*2=8
i. Define partial dependency.
ii. What is transitive dependency?
iii. What is mutual exclusiveness of data?
iv. What is synonym?
Attempt All parts from this section: Part II (8)
Q:No.5 What are conditions for a relation to be in second normal form? Give example.
Sir Asghar Academy
Address: Ghorra Mohalla , M.B Din
Principal : Asghar Waseem 03461428629,03161748726
Class:2nd Year

Name: Roll No.: Total Marks: /40


Syllabus: Ch#5: Introduction to Microsoft access Test No.: 5 Date: DD/MM/YYYY
Computer Time:10min Total Marks:6 Subjective Part Group:1st Grand Test Series
Note: Four possible answer a,b,c and d to each question are given. The choice which you think is correct ,fill that circle in
front of that questions with Marker or Pen ink, Cutting or filling two or more circles will result in zero mark in that question.
1 ⒶⒷⒸⒹ 2 ⒶⒷⒸⒹ 3 ⒶⒷⒸⒹ 4 ⒶⒷⒸⒹ 5 ⒶⒷⒸⒹ 6 ⒶⒷⒸⒹ
Q:No.1 6*1=1
1. It makes very simple to create a database
(a) Sample Database (b) (c) (d)
2. Which object is the output of a database application?
(a) Form (b) Query (c) Table (d) Report
3. Find and replace command is found in
(a) Edit menu (b) File menu (c) Tool (d) View menu
4. Microsoft access saves the database with extension
(a) .mdb (b) .msdb (c) .madb (d) None
5. A report may be may be used on :
(a) (b) Relationship (c) Form (d) Attribute
6. The maximum number of tables in a database are:
(a) 1 (b) 2 (c) 3 (d) Many

Computer Part( I) Total Marks:34 Time :45 Min Subjective Part Group: 1st Grand Test Series
Q:No.2 Give short answers to the following questions. 5*2=10
i. Enlist advantages of IDE.
ii. What is difference between report and form?
iii. List any five buttons available on Access Database window.
iv. Differentiate between sample database and database wizard?
v. Explain queries.
Q:No.3 Give short answers to the following questions. 4*2=8
i. What is Wizard?
ii. Which database object stores data in database?
iii. Name any four parts of MS-Access application window.
iv. What are advantages of MS Access?
Q:No.4 Give short answers to the following questions. 4*2=8
i. Define form object?
ii. What are advantages of report?
iii. What is meant by RBDMS and also give its advantages.
iv. Differentiate between tool bar and Manu bar.
Attempt All parts from this section: Part II (8)
Q:No.5 Briefly describe the advantages of using MS-ACCESS
Sir Asghar Academy
Address: Ghorra Mohalla , M.B Din
Principal : Asghar Waseem 03461428629,03161748726
Class:2nd Year

Name: Roll No.: Total Marks: /40


Syllabus: Ch#6:Table and query Test No.: 6 Date: DD/MM/YYYY
Computer Time:10min Total Marks:6 Subjective Part Group:1st Grand Test Series
Note: Four possible answer a,b,c and d to each question are given. The choice which you think is correct ,fill that circle in
front of that questions with Marker or Pen ink, Cutting or filling two or more circles will result in zero mark in that question.
1 ⒶⒷⒸⒹ 2 ⒶⒷⒸⒹ 3 ⒶⒷⒸⒹ 4 ⒶⒷⒸⒹ 5 ⒶⒷⒸⒹ 6 ⒶⒷⒸⒹ
Q:No.1 6*1=1
1. Each set of related items in a table is called:
(a) Table (b) Record (c) Field (d) Query
2. Memo data type can store up to ___________ characters.
(a) 255 (b) 256 (c) 35565 (d) 64000
3. What symbol indicates that you are editing a records from a table.
(a) Record view (b) Datasheet View (c) Design view (d) Edit view
4. The data In table is entered in
(a) Datasheet view (b) Layout view (c) Design view (d) Normal view
5. What is the term for a characteristic or attribute of an object that determines how the object looks and behaves.
(a) (b) Property (c) Size (d) Orientation
6. How find four names that starts with H, the criteria is specified as?
(a) H *a (b) H? 4 (c) H ? ? ? ? (d) H # #

Computer Part( I) Total Marks:34 Time :45 Min Subjective Part Group: 1st Grand Test Series
Q:No.2 Give short answers to the following questions. 5*2=10
i. Define cardinality of relation.
ii. Define datasheet view.
iii. How is MS-ACCESS loaded?
iv. What is difference between sorting and filtering?
v. What are wildcards?
Q:No.3 Give short answers to the following questions. 4*2=8
i. How a new record is added to table using data.
ii. What are characteristics of a relation?
iii. Describe required property of field.
iv. What does cascade delete men?
Q:No.4 Give short answers to the following questions. 4*2=8
i. Write two advantages of using query..
ii. What is parametric query?
iii. List two disadvantages of integrated development environment.
iv. Write tow differences between relationship and join?
Attempt All parts from this section: Part II (8)
Q:No.5 What is Query? Discuss its uses and advantages.
Sir Asghar Academy
Address: Ghorra Mohalla , M.B Din
Principal : Asghar Waseem 03461428629,03161748726
Class:2nd Year

Name: Roll No.: Total Marks: /40


Syllabus: Ch#7:Microsoft access forms and reports Test No.: 7 Date: DD/MM/YYYY
Computer Time:10min Total Marks:6 Subjective Part Group:1st Grand Test Series
Note: Four possible answer a,b,c and d to each question are given. The choice which you think is correct ,fill that circle in
front of that questions with Marker or Pen ink, Cutting or filling two or more circles will result in zero mark in that question.
1 ⒶⒷⒸⒹ 2 ⒶⒷⒸⒹ 3 ⒶⒷⒸⒹ 4 ⒶⒷⒸⒹ 5 ⒶⒷⒸⒹ 6 ⒶⒷⒸⒹ
Q:No.1 6*1=1
1. A sub form can be created by using ;
(a) The form wizard (b) Drag and method (c) Sub form wizard (d) All of these
2. Forms and control are collectively recognized as:
(a) Properties (b) Methods (c) Events (d) Objects
3. A form is an object of
(a) Table (b) Database (c) Query (d) Report
4. How many reports layout are?
5
(a) 2 (b) 3 (c) 4 (d)
5. Which of the following is used to retrieve data from database and represent it to the user in a formatted way ?
(a) ! (b) Query (c) Table (d) Report
6. The forms are designed to :
(a) Data capturing (b) Data manipulation (c) Analysis (d) Managing output result

Computer Part( I) Total Marks:34 Time :45 Min Subjective Part Group: 1st Grand Test Series
Q:No.2 Give short answers to the following questions. 5*2=10
i. Write use of columnar form in MS-Access.
ii. Write any two advantages of a form.
iii. Discuss the uses of design view in MS-Access.
iv. How is form created for a single table.
v. List any two methods of creating sub forms.
Q:No.3 Give short answers to the following questions. 4*2=8
i. What are check boxes?
ii. Write the purpose of radio button.
iii. What is the concept of Sub Form?
iv. Differentiate between combo box and list box.
Q:No.4 Give short answers to the following questions. 4*2=8
i. Write the use of switchboard.
ii. what is linking in MS-Access?
iii. What is report?
iv. How can you apply sort order to the report?
Attempt All parts from this section: Part II (8)
Q:No.5 Discuss different options for editing in MS-Access.
Sir Asghar Academy
Address: Ghorra Mohalla , M.B Din
Principal : Asghar Waseem 03461428629,03161748726
Class:2nd Year

Name: Roll No.: Total Marks: /40


Syllabus: Ch#8: Getting started with C Test No.: 8 Date: DD/MM/YYYY
Computer Time:10min Total Marks:6 Subjective Part Group:1st Grand Test Series
Note: Four possible answer a,b,c and d to each question are given. The choice which you think is correct ,fill that circle in
front of that questions with Marker or Pen ink, Cutting or filling two or more circles will result in zero mark in that question.
1 ⒶⒷⒸⒹ 2 ⒶⒷⒸⒹ 3 ⒶⒷⒸⒹ 4 ⒶⒷⒸⒹ 5 ⒶⒷⒸⒹ 6 ⒶⒷⒸⒹ
Q:No.1 6*1=1
1. Which of the following language provided the basis for the development of C?
(a) B (b) C++ (c) Pascal (d) Cobol
2. The extension of C source program is :
(a) .h (b) .c (c) .obj (d) .exe
3. A table is a two dimensional structure that consist of:
X and Y
(a) coordinates (b) Matrix elements (c) Rows and columns (d) Intersection of data
4. Header file in C contains:
(a) Header (b) Compiler command (c) Library function (d) Operators
5. The name of header file is written between
(a) { } (b) ( ) (c) <> (d) {>
6. Which of the following language requires no translator to execute the program?
(a) C (b) C++ (c) Machine language (d) Assembly language

Computer Part( I) Total Marks:34 Time :45 Min Subjective Part Group: 1st Grand Test Series
Q:No.2 Give short answers to the following questions. 5*2=10
i. What is difference between linker and loader.
ii. Why #include directive is used in C-language.
iii. Define a Bug.
iv. Differentiate between program and a programmer.
v. Define assembly language.
Q:No.3 Give short answers to the following questions. 4*2=8
i. What is programming language?
ii. Why the logical error is the most difficult error to find?
iii. Briefly describe the basic structure of C program.
iv. Write any three characteristics of High level programming.
Q:No.4 Give short answers to the following questions. 4*2=8
i. List two reasons why it would be preferable to write a program in C rather than in machine
Language.
ii. Writ any three debugging features of Turbo C++
iii. How can we save The C program. Write procedure.
iv. What is syntax error?
Attempt All parts from this section: Part II (8)
Q:No.5 What is bug and debugging? Explain types of error in C program.
Sir Asghar Academy
Address: Ghorra Mohalla , M.B Din
Principal : Asghar Waseem 03461428629,03161748726
Class:2nd Year

Name: Roll No.: Total Marks: /40


Syllabus: Ch#9:Elements of C Test No.: 9 Date: DD/MM/YYYY
Computer Time:10min Total Marks:6 Subjective Part Group:1st Grand Test Series
Note: Four possible answer a,b,c and d to each question are given. The choice which you think is correct ,fill that circle in
front of that questions with Marker or Pen ink, Cutting or filling two or more circles will result in zero mark in that question.
1 ⒶⒷⒸⒹ 2 ⒶⒷⒸⒹ 3 ⒶⒷⒸⒹ 4 ⒶⒷⒸⒹ 5 ⒶⒷⒸⒹ 6 ⒶⒷⒸⒹ
Q:No.1 6*1=1
1. Total number of keyword in C is:
(a) 30 (b) 32 (c) 34 (d) 36
2. Relation operator takes __________ operands:
(a) 2 (b) 3 (c) 4 (d) 1
3. A memory cell that has specific name and location is called ………..?
(a) & (b) % &' (c) (d) $
4. An ampersand before the name of a variable denotes:
(a) Actual values (b) Variable name (c) Address (d) Data type
5. Which operator has the lowest precedence ___________:
(a) ! (b) + (c) = (d) ==
6. The expression 0 % 4
(a) 4 (b) 1 (c) 2 (d) 0
Computer Part( I) Total Marks:34 Time :45 Min Subjective Part Group: 1st Grand Test Series
Q:No.2 Give short answers to the following questions. 5*2=10
i. Define identifier with example.
ii. C is a case sensitive language. What does it mean?
iii. Define compound assignment operator.
iv. Define variable declaration.
v. Trace the output.
Void main()
{
Char word1, word2, word3;
word1 = ‘A’; word2 = ‘B’; word3 = ‘C’;
Printf(“%c %c word3”, word1, word2);
Q:No.3 Give short answers to the following questions. 4*2=8
i. Define key word, also give 10 key words.
ii. Differentiate between function definition and declaration.
iii. Why is C know as strongly typed language?
iv. Differentiate between string constant and character.
Q:No.4 Give short answers to the following questions. 4*2=8
i. What is difference between constant and variable?
ii. What is data type?
iii. What is user defined data type.
iv. Write all the relation operator and their symbols.
Attempt All parts from this section: Part II (8)
Q:No.5 Write any eight for naming variables in C-language. Give example of each rule.
Sir Asghar Academy
Address: Ghorra Mohalla , M.B Din
Principal : Asghar Waseem 03461428629,03161748726
Class:2nd Year

Name: Roll No.: Total Marks: /40


Syllabus: Ch#10: Input /Output Test No.: 10 Date: DD/MM/YYYY
Computer Time:10min Total Marks:6 Subjective Part Group:1st Grand Test Series
Note: Four possible answer a,b,c and d to each question are given. The choice which you think is correct ,fill that circle in
front of that questions with Marker or Pen ink, Cutting or filling two or more circles will result in zero mark in that question.
1 ⒶⒷⒸⒹ 2 ⒶⒷⒸⒹ 3 ⒶⒷⒸⒹ 4 ⒶⒷⒸⒹ 5 ⒶⒷⒸⒹ 6 ⒶⒷⒸⒹ
Q:No.1 6*1=1
1. The functions getch () is defined in :
(a) .ℎ (b) .ℎ (c) .ℎ (d)
2. Which function is used to input string value from user:
(a) Gets (b) Puts (c) Getch (d) All
3. The field width specifier %8.2 will consume how many columns for output:
(a) 10 (b) 8 (c) 6 (d) 12
4. The escape sequence used to insert tab in C :
(a) \t (b) \r (c) \b (d) \d
5. Void occupies how many bytes in memory :
(a) 1 (b) 2 (c) 3 (d) 4
6. The functions used for input and output is stored in:
(a) Stdio.h (b) Conio.h (c) Math.h (d) Inout.h

Computer Part( I) Total Marks:34 Time :45 Min Subjective Part Group: 1st Grand Test Series
Q:No.2 Give short answers to the following questions. 5*2=10
i. Compare getch and getche functions.
ii. Give single print statement to print the following message “I Love Pakistan”
iii. Trace the output of following code.
Void main() {
Float f = 3.141592;
Printf(“ f= %5.1 f”, f );
Printf(“\n f= %3.2 f”, f );
iv. What is difference between format specifier and field with specifier?
v. Give the use of scanf function.
Q:No.3 Give short answers to the following questions. 4*2=8
v. Define the term “escape sequence”
vi. What we mean by standard input and output?
vii. Write a program that adds two floating point and shows their sum on screen.
viii. Explain the printf function and give its syntax.
Q:No.4 Give short answers to the following questions. 4*2=8
i. Define input and list the input functions in C
ii. What is purpose of getch ( ) function?
iii. Why the ampersand (&) used in scanf is function?
iv. Define standard input.
Attempt All parts from this section: Part II (8)
Q:No.5 (a) Write a program to convert the distance in kilometers into meters. (b) write a detail note on scanf ( ) function.
Sir Asghar Academy
Address: Ghorra Mohalla , M.B Din
Principal : Asghar Waseem 03461428629,03161748726
Class:2nd Year

Name: Roll No.: Total Marks: /40


Syllabus: Ch#11: Decision constructs Test No.: 11 Date: DD/MM/YYYY
Computer Time:10min Total Marks:6 Subjective Part Group:1st Grand Test Series
Note: Four possible answer a,b,c and d to each question are given. The choice which you think is correct ,fill that circle in
front of that questions with Marker or Pen ink, Cutting or filling two or more circles will result in zero mark in that question.
1 ⒶⒷⒸⒹ 2 ⒶⒷⒸⒹ 3 ⒶⒷⒸⒹ 4 ⒶⒷⒸⒹ 5 ⒶⒷⒸⒹ 6 ⒶⒷⒸⒹ
Q:No.1 6*1=1
1. What is the simplest selection structure?
(a) If (b) Switch (c) If-else (d) Nested-if
2. Which of the following is equivalent to (p>=q)
(a) P<q (b) !(p<q) (c) p>q (d) !p<q
3. The symbol that perform operations on data are called:
(a) Operands (b) Code (c) Operators (d) Syntax
4. The case block ends with:
(a) Default (b) Break (c) Continue (d) end case
5. Which operator is called ternary operator?
(a) ++ (b) || (c) ? (d) %
6. Which of the following is valid case statement in a switch statement.
(a) Case 1 (b) Case x<1 (c) Case x>1 (d) Case 1.5

Computer Part( I) Total Marks:34 Time :45 Min Subjective Part Group: 1st Grand Test Series
Q:No.2 Give short answers to the following questions. 5*2=10
i. Why break statement is used in switch structure?
ii. What is purpose of nested if statement.
iii. Define control structure.
iv. Write the general form of if statement with two alternatives.
v. What is condition.
Q:No.3 Give short answers to the following questions. 4*2=8
i. Why default keyword is used in switch statement.
ii. Write three advantages of switch statement.
iii. What happens if break is missed in case block?
iv. Write some rule of using switch case.
Q:No.4 Give short answers to the following questions. 4*2=8
i. Write the general form of switch statement.
ii. Write an expression to test the relationship “age is 18 to 25”
iii. Compare the nested if and sequence of ifs.
iv. Define flow chart with example.
Attempt All parts from this section: Part II (8)
Q:No.5 Briefly explain the basic control structure for writing programs.
Sir Asghar Academy
Address: Ghorra Mohalla , M.B Din
Principal : Asghar Waseem 03461428629,03161748726
Class:2nd Year

Name: Roll No.: Total Marks: /40


Syllabus: Ch#12: Loops Constructs Test No.: 12 Date: DD/MM/YYYY
Computer Time:10min Total Marks:6 Subjective Part Group:1st Grand Test Series
Note: Four possible answer a,b,c and d to each question are given. The choice which you think is correct ,fill that circle in
front of that questions with Marker or Pen ink, Cutting or filling two or more circles will result in zero mark in that question.
1 ⒶⒷⒸⒹ 2 ⒶⒷⒸⒹ 3 ⒶⒷⒸⒹ 4 ⒶⒷⒸⒹ 5 ⒶⒷⒸⒹ 6 ⒶⒷⒸⒹ
Q:No.1 6*1=1
1. How many types of loop structures are present?
(a) 1 (b) 2 (c) 3 (d) 4
2. One execution of loop is called:
(a) Series (b) Duration (c) Iteration (d) Life cycle
3. The do-while loop structure always ends with :
(a) Comma (b) Semi colon (c) Colon (d) Brace
4. Which is a loop stunt?
(a) If (b) If-else (c) Switch (d) For
5. Semicolon is placed at the end of condition in:
(a) Switch (b) For loop (c) While loop (d) Do-while loop
6. In for statement, the expressing is executed only once:
(a) Validation (b) Initialization (c) Test (d) Condition

Computer Part( I) Total Marks:34 Time :45 Min Subjective Part Group: 1st Grand Test Series
Q:No.2 Give short answers to the following questions. 5*2=10
i. What is while loop? Give its syntax.
ii. Write a program to print digit from 1 to 10.
iii. What is sequential-controlled loop.
iv. What is the final value of x after executing the following code? : for (int x=0; x<10,x++)
v. Write two uses of loop.
Q:No.3 Give short answers to the following questions. 4*2=8
i. What is do while loop. Give its syntax.
ii. What is nested loop?
iii. Define loop.
iv. Define goto statement.
Q:No.4 Give short answers to the following questions. 4*2=8
i. Define compound statement.
ii. Convert the following loop in do-while loop. For(i=3; i<39;i+=6) { print(“%d/n”,i);}
iii. Draw the flow chart do-while loop?
iv. Distinguish between break and continue statements.
Attempt All parts from this section: Part II (8)
Q:No.5 What is sequential-controlled loop and how it is implemented? Discuss some of the situations where it can be useful.
Sir Asghar Academy
Address: Ghorra Mohalla , M.B Din
Principal : Asghar Waseem 03461428629,03161748726
Class:2nd Year

Name: Roll No.: Total Marks: /40


Syllabus: Ch#13: Functions in C Test No.: 13 Date: DD/MM/YYYY
Computer Time:10min Total Marks:6 Subjective Part Group:1st Grand Test Series
Note: Four possible answer a,b,c and d to each question are given. The choice which you think is correct ,fill that circle in
front of that questions with Marker or Pen ink, Cutting or filling two or more circles will result in zero mark in that question.
1 ⒶⒷⒸⒹ 2 ⒶⒷⒸⒹ 3 ⒶⒷⒸⒹ 4 ⒶⒷⒸⒹ 5 ⒶⒷⒸⒹ 6 ⒶⒷⒸⒹ
Q:No.1 6*1=1
1. Global variables are created in:
(a) , (b) ,- (c) % (d) ,
2. Formal arguments are also called _______arguments:
(a) Actual (b) Original (c) Dummy (d) Referenced
3. A function that does not return thing has return type:
(a) Int (b) Float (c) Void (d) None
4. Which type of functions are written according to exact need of programmer :
All
(a) User – defined (b) Built- in (c) Library (d)
5. How many arguments can be passed to function?
(a) 2 (b) 3 (c) 4 (d) Many
6. Local variables are also called:
(a) Automatic variable (b) Static variable (c) Register variable (d) Run time variable

Computer Part( I) Total Marks:34 Time :45 Min Subjective Part Group: 1st Grand Test Series
Q:No.2 Give short answers to the following questions. 5*2=10
i. Why function is used in a program?
ii. Define function prototype.
iii. Tell scope of local variable.
iv. Write three advantages of function.
v. What is return statement? Give its syntax.
Q:No.3 Give short answers to the following questions. 4*2=8
i. What is scope of global variable?
ii. Compare the local and global variable.
iii. How long the global variable exists in the memory?
iv. How a function returns value?
Q:No.4 Give short answers to the following questions. 4*2=8
i. Distinguish between formal parameter and actual parameter.
ii. List any four benefits of using functions.
iii. Define local variable.
iv. Define global variable.
Attempt All parts from this section: Part II (8)
Q:No.5 What is function? Briefly describe the process of writing a function in C- language.
Sir Asghar Academy
Address: Ghorra Mohalla , M.B Din
Principal : Asghar Waseem 03461428629,03161748726
Class:2nd Year

Name: Roll No.: Total Marks: /40


Syllabus: Ch#14: File Handling in C Test No.: 14 Date: DD/MM/YYYY
Computer Time:10min Total Marks:6 Subjective Part Group:1st Grand Test Series
Note: Four possible answer a,b,c and d to each question are given. The choice which you think is correct ,fill that circle in
front of that questions with Marker or Pen ink, Cutting or filling two or more circles will result in zero mark in that question.
1 ⒶⒷⒸⒹ 2 ⒶⒷⒸⒹ 3 ⒶⒷⒸⒹ 4 ⒶⒷⒸⒹ 5 ⒶⒷⒸⒹ 6 ⒶⒷⒸⒹ
Q:No.1 6*1=1
1. A file is stored in
(a) , (b) ,- (c) % (d) ℎ
2. Which mode opens only an existing file for both reading and writing.
(a) “w” (b) “w+” (c) “r+” (d) “a+”
3. An array scripts should be
(a) Int (b) Float (c) Double (d) An
4. Which of the following character is used to mark the end of the string?
(a) /0 (b) \0 (c) \a (d) \n
5. Which of the following functions is used to write character to a file?
(a) /0 (b) putc() (c) fputs() (d) fgets()
6. On successful closing a file the fclose( ) returns:
(a) Null (b) 0 (c) 1 (d) File pointer

Computer Part( I) Total Marks:34 Time :45 Min Subjective Part Group: 1st Grand Test Series
Q:No.2 Give short answers to the following questions. 5*2=10
i. Compare binary and text stream.
ii. What is text file?
iii. How string value is displayed in C-language?
iv. What is meant fgets() function?
v. Which functions are used read and write string to a file?
Q:No.3 Give short answers to the following questions. 4*2=8
i. What is new line marker?
ii. How is the end text file indicated ?
iii. Do you know the type of variable that stores memory address?
iv. What is the use of file pointer?
Q:No.4 Give short answers to the following questions. 4*2=8
i. How is file open in C.
ii. Describe the purpose of file handling.
iii. What is string?
iv. Write the name of two types of stream used in files in C language.
Attempt All parts from this section: Part II (8)
Q:No.5 How many mods are there for opening a file in C. Discuss characteristics of different file opening Modes
Sir Asghar Academy
Address: Ghorra Mohalla , M.B Din
Principal : Asghar Waseem 03461428629,03161748726
Class:2nd Year

ROUND-2
Subject: Computer
Class: 2nd Year
Series: 2,2 Chapter Wise Test
Sir Asghar Academy
Address: Ghorra Mohalla , M.B Din
Principal : Asghar Waseem 03461428629,03161748726
Class:2nd Year

Name: Roll No.: Total Marks: /40


Syllabus: Unit#1,2 Test No.: 15 Date: DD/MM/YYYY
Computer Time:10min Total Marks:6 Subjective Part Group:1st Grand Test Series
Note: Four possible answer a,b,c and d to each question are given. The choice which you think is correct ,fill that circle in
front of that questions with Marker or Pen ink, Cutting or filling two or more circles will result in zero mark in that question.
1 ⒶⒷⒸⒹ 2 ⒶⒷⒸⒹ 3 ⒶⒷⒸⒹ 4 ⒶⒷⒸⒹ 5 ⒶⒷⒸⒹ 6 ⒶⒷⒸⒹ
Q:No.1 6*1=1
1. The manipulated and processed data is called:
(a) Object (b) Information (c) Knowledge (d) Data
2. Storage and retrieval of data is related is:
(a) Data capturing (b) Data manipulation (c) Managing output (d) Analysis result
3. The columns of a relation correspond to:
(a) Table (b) Cell (c) Field (d) Records
4. Another name for composite key is
(a) Primary key (b) Control key (c) Concatenate key (d) Sort key
5. A table must have
(a) &% & (b) Secondary key (c) Composite key (d) Sort key
6. Views are also called:
(a) Complex tables (b) Simple tables (c) Virtual tables (d) Actual tables

Computer Part( I) Total Marks:34 Time :45 Min Subjective Part Group: 1st Grand Test Series
Q:No.2 Give short answers to the following questions. 5*2=10
i. Differentiate file and record.
ii. What are objective of DBMS?
iii. Write the properties of relations.
iv. How primary key is different than a candidate key?
v. Who is end User?
Q:No.3 Give short answers to the following questions. 4*2=8
i. Define sort key.
ii. Distinguish between entity class and entity instance?
iii. Write any two objectives of data base management system.
iv. What is an entity?
Q:No.4 Give short answers to the following questions. 4*2=8
i. What is data?
ii. Why is it important to specify data type and size of a field?
iii. What are sequential files?
iv. What is view?
Attempt All parts from this section: Part II (8)
Q:No.5 What are field properties? Explain at least three field properties with examples.
Sir Asghar Academy
Address: Ghorra Mohalla , M.B Din
Principal : Asghar Waseem 03461428629,03161748726
Class:2nd Year

Name: Roll No.: Total Marks: /40


Syllabus: Unit#3,4 Test No.: 16 Date: DD/MM/YYYY
Computer Time:10min Total Marks:6 Subjective Part Group:1st Grand Test Series
Note: Four possible answer a,b,c and d to each question are given. The choice which you think is correct ,fill that circle in
front of that questions with Marker or Pen ink, Cutting or filling two or more circles will result in zero mark in that question.
1 ⒶⒷⒸⒹ 2 ⒶⒷⒸⒹ 3 ⒶⒷⒸⒹ 4 ⒶⒷⒸⒹ 5 ⒶⒷⒸⒹ 6 ⒶⒷⒸⒹ
Q:No.1 6*1=1
1. In an E-R diagram , a diamond represent a(n):
(a) Attribute (b) Relationship (c) Entity (d) Modality
2. Which of the following defines the nature of relationship?
(a) Modality (b) Decision tree (c) Attribute (d) None of the above
3. In 3 NF a non-key attribute must not depend on a /an
(a) Non-key attribute (b) Key attribute (c) Composite key (d) Sort key
4. Referential integrity is applied on:
(a) Primary key (b) Candidate key (c) Foreign key (d) Composite key
5. A functional dependency between two or more non-key attributes in a relation is called:
(a) , & (b) Consistency (c) Transitive dependency (d) None of these
6. Referential integrity is applied on :
(a) Foreign key (b) Composite key (c) Primary key (d) Sort key

Computer Part( I) Total Marks:34 Time :45 Min Subjective Part Group: 1st Grand Test Series
Q:No.2 Give short answers to the following questions. 5*2=10
i. Define physical data model.
ii. When does an insertion anomaly occur?
iii. How entity integrity attained?
iv. What is a repeating group?
v. On what normalization based on ?
Q:No.3 Give short answers to the following questions. 4*2=8
i. Draw E-R diagram.
ii. ERD stand for what?
iii. What is hybrid?
iv. How referential integrity can be achieved?
Q:No.4 Give short answers to the following questions. 4*2=8
i. Enlist different database objects in MS-Access.
ii. What is meant by data integrity?
iii. Define functional dependency.
iv. Define project planning.
Attempt All parts from this section: Part II (8)
Q:No.5 What are the database anomalies? Briefly discuss insertion, deletion and modification anomalies.
Sir Asghar Academy
Address: Ghorra Mohalla , M.B Din
Principal : Asghar Waseem 03461428629,03161748726
Class:2nd Year

Name: Roll No.: Total Marks: /40


Syllabus: Unit#5,6 Test No.: 17 Date: DD/MM/YYYY
Computer Time:10min Total Marks:6 Subjective Part Group:1st Grand Test Series
Note: Four possible answer a,b,c and d to each question are given. The choice which you think is correct ,fill that circle in
front of that questions with Marker or Pen ink, Cutting or filling two or more circles will result in zero mark in that question.
1 ⒶⒷⒸⒹ 2 ⒶⒷⒸⒹ 3 ⒶⒷⒸⒹ 4 ⒶⒷⒸⒹ 5 ⒶⒷⒸⒹ 6 ⒶⒷⒸⒹ
Q:No.1 6*1=1
1. What is the default field size of a text data-type in MS-ACCESS?
(a) 2 (b) 5 (c) 20 (d) 50
2. A database consists of various components called:
(a) Tool (b) Properties (c) Entities (d) Objects
3. The data in table is entered in:
(a) Design View (b) Normal View (c) Datasheet View (d) Layout View
4. How ma many types of relationship are there?
(a) 2 (b) 3 (c) 4 (d) 5
5. Which view is used to add, edit or delete record from table?
(a) Record view (b) Data sheet view (c) Design view (d) Edit view
6. I n table, each row represents a
(a) (b) Form (c) Field (d) Record
6. Which object is the output of a database application?
(a) Form (b) Query (c) Table (d) Report

Computer Part( I) Total Marks:34 Time :45 Min Subjective Part Group: 1st Grand Test Series
Q:No.2 Give short answers to the following questions. 5*2=10
i. Why database objects are used?
ii. How you can relational database?
iii. What is a join?
iv. What is the use of default Value?
v. What is table relationship?
Q:No.3 Give short answers to the following questions. 4*2=8
i. Forms provide us what?
ii. What is a Query?
iii. How a new record is added to a table using data sheet view?
iv. What are the benefits of MS-ACCESS?
Q:No.4 Give short answers to the following questions. 4*2=8
i. What is text data type?
ii. What is OLE object?
iii. Why are field properties used in MS-Access?
iv. Which database object stores the data in database?
Attempt All parts from this section: Part II (8)
Q:No.5 What is form? Explain its uses and advantages.
Sir Asghar Academy
Address: Ghorra Mohalla , M.B Din
Principal : Asghar Waseem 03461428629,03161748726
Class:2nd Year

Name: Roll No.: Total Marks: /40


Syllabus: Unit#7,8 Test No.: 18 Date: DD/MM/YYYY
Computer Time:10min Total Marks:6 Subjective Part Group:1st Grand Test Series
Note: Four possible answer a,b,c and d to each question are given. The choice which you think is correct ,fill that circle in
front of that questions with Marker or Pen ink, Cutting or filling two or more circles will result in zero mark in that question.
1 ⒶⒷⒸⒹ 2 ⒶⒷⒸⒹ 3 ⒶⒷⒸⒹ 4 ⒶⒷⒸⒹ 5 ⒶⒷⒸⒹ 6 ⒶⒷⒸⒹ
Q:No.1 6*1=1
1. How many basics layouts of forms are here in Microsoft Access?
(a) 2 (b) 3 (c) 4 (d) 5
2. _______ is not type of report:
(a) Tabular (b) Datasheet (c) Columnar (d) None
3. The forms are the _________ end of our database in Microsoft Access.
(a) Back end. (b) Front end (c) Both a and b (d) None of them
4. The name of header file is written between
(a) { } (b) <> (c) [] (d) ( )
5. A set of instruction given to the computer is called:
(a) ' (b) Software (c) Computer Language (d) Application Software
6. C language was developed in
(a) 1962 (b) 1969 (c) 1970 (d) 1972
6. Which of the following is used to retrieve data from database and represent it to the user in a formatted way?
(a) Form (b) Query (c) Table (d) Report

Computer Part( I) Total Marks:34 Time :45 Min Subjective Part Group: 1st Grand Test Series
Q:No.2 Give short answers to the following questions. 5*2=10
i. What is report?
ii. How we create a form in design view.
iii. What is conditional formatting?
iv. What are logical errors?
v. What is structured Programming language?
Q:No.3 Give short answers to the following questions. 4*2=8
i. How you can change control type?
ii. Write down the steps to add conditional formatting to a control element.
iii. What is a language processor / Translator?
iv. What is linker?
Q:No.4 Give short answers to the following questions. 4*2=8
i. What is the difference between tabular form and columnar form?
ii. Why the logical error is the most difficult error to find?
iii. Who is a programmer?
iv. What is a Statement Terminator?
Attempt All parts from this section: Part II (8)
Q:No.5 Explain the basic structure of C-language program with example.
Sir Asghar Academy
Address: Ghorra Mohalla , M.B Din
Principal : Asghar Waseem 03461428629,03161748726
Class:2nd Year

Name: Roll No.: Total Marks: /40


Syllabus: Unit#9,10 Test No.: 19 Date: DD/MM/YYYY
Computer Time:10min Total Marks:6 Subjective Part Group:1st Grand Test Series
Note: Four possible answer a,b,c and d to each question are given. The choice which you think is correct ,fill that circle in
front of that questions with Marker or Pen ink, Cutting or filling two or more circles will result in zero mark in that question.
1 ⒶⒷⒸⒹ 2 ⒶⒷⒸⒹ 3 ⒶⒷⒸⒹ 4 ⒶⒷⒸⒹ 5 ⒶⒷⒸⒹ 6 ⒶⒷⒸⒹ
Q:No.1 6*1=1
1. In C, the maximum length of text name is :
(a) 50 Characters (b) 250 Characters (c) 155 Characters (d) 255 characters
2. The number of digits after a decimal point is called:
(a) Significance (b) Range (c) Precision (d) Scope
3. The ASCII code for escape key:
(a) 27 (b) 28 (c) 29 (d) 30
4. Which character is used as address operator?
(a) $ (b) ? (c) # (d) &
5. The escape sequence to insert tab in C is:
(a) \ (b) \t (c) \r (d) \f
6. The printf( ) function is used to display
Constants or values of
(a) 7 (b) Both a & b (c) (d) None
variables
6. The format specifier %f is used for:
(a) Integer (b) Unsigned short (c) Float (d) Usingned long int
Computer Part( I) Total Marks:34 Time :45 Min Subjective Part Group: 1st Grand Test Series
Q:No.2 Give short answers to the following questions. 5*2=10
i. What is an output statement?
ii. What is a getch() Function?
iii. Trace the error in the following code:
#include <std.n>
Vo9id main (void)
{ Printf(“Pakistan” }
iv. Define variable initialization?
v. What are key words /reserve words?
Q:No.3 Give short answers to the following questions. 4*2=8
i. Compare getch() and getche() functions.
ii. What is standard input.
iii. What is data type?
iv. Define standard identifier?
Q:No.4 Give short answers to the following questions. 4*2=8
i. Write down output of the following float. f=3.14159; printf (“f=%4.f”,f);
ii. What is Arithmetic expression?
iii. Differentiate between function definition and declaration.
iv. What is user defined datatype?
Attempt All parts from this section: Part II (8)
Q:No.5 Write a program that converts a temperature in degrees Fahrenheit to degrees Celsius.
Sir Asghar Academy
Address: Ghorra Mohalla , M.B Din
Principal : Asghar Waseem 03461428629,03161748726
Class:2nd Year

Name: Roll No.: Total Marks: /40


Syllabus: Unit#11,12 Test No.: 20 Date: DD/MM/YYYY
Computer Time:10min Total Marks:6 Subjective Part Group:1st Grand Test Series
Note: Four possible answer a,b,c and d to each question are given. The choice which you think is correct ,fill that circle in
front of that questions with Marker or Pen ink, Cutting or filling two or more circles will result in zero mark in that question.
1 ⒶⒷⒸⒹ 2 ⒶⒷⒸⒹ 3 ⒶⒷⒸⒹ 4 ⒶⒷⒸⒹ 5 ⒶⒷⒸⒹ 6 ⒶⒷⒸⒹ
Q:No.1 6*1=1
Unit#11&12 Test#20 Date:
Q.1: Tick the correct Option. [6]
1. which one is control structure?
(a) (b) 8 (c) , (d)
2. An if statement is an alternative of :
(a) If (b) If-else (c) Nested-if (d) Nested-if-else
3. The case block ends with:
(a) Case else (b) Break (c) End case (d) End select
4. What is a loop stunt?
(a) If (b) If else (c) Switch (d) For
5. The loop which never ends is called
(a) (b) Nested loop (c) Infinite loop (d) All
6. What is the value of x after executing the code for ( i=1; <=10; x++)?
(a) 9 (b) 10 (c) 12 (d) 11
6. Which statement causes a loop to terminate early?
(a) End (b) Terminate (c) Break (d) Exit
Computer Part( I) Total Marks:34 Time :45 Min Subjective Part Group: 1st Grand Test Series
Q:No.2 Give short answers to the following questions. 5*2=10
iv. What is do-while loop? i. What is a repetition /iteration/Loop?
v. Find the output. ii. Write any tow uses of loop?
int a=4, b=2,c=5: iii. Convert the following loop into while loop?
if(a>b) for(int i=1; i<=10;i++)
a=5; {
if (c==a) printf(“/nPakistan”);
a=6; }
print(“%d”.a);
Q:No.3 Give short answers to the following questions. 4*2=8
i. Why default keyword is used is switch statements?
ii. What do you know about compound statement?
iii. What is working of while loop?
iv. What is counter loop?
Q:No.4 Give short answers to the following questions. 4*2=8
i. What is a Conditional Operator or Ternary Operator?
ii. What is if-else statement.
iii. List three types of control structure.
iv. Distinguish between break and continue statements used In loop.
Attempt All parts from this section: Part II (8)
Q:No.5 Write a program in C that displays the following series using while loop: 1,3,5,7,9,11,13,15,17,19,21,23.
Sir Asghar Academy
Address: Ghorra Mohalla , M.B Din
Principal : Asghar Waseem 03461428629,03161748726
Class:2nd Year

Name: Roll No.: Total Marks: /40


Syllabus: Unit#13,14 Test No.: 21 Date: DD/MM/YYYY
Computer Time:10min Total Marks:6 Subjective Part Group:1st Grand Test Series
Note: Four possible answer a,b,c and d to each question are given. The choice which you think is correct ,fill that circle in
front of that questions with Marker or Pen ink, Cutting or filling two or more circles will result in zero mark in that question.
1 ⒶⒷⒸⒹ 2 ⒶⒷⒸⒹ 3 ⒶⒷⒸⒹ 4 ⒶⒷⒸⒹ 5 ⒶⒷⒸⒹ 6 ⒶⒷⒸⒹ
Q:No.1 6*1=1
1. Built in functions make our task;
(a) 7 (b) 9 ℎ& (c) (d) ℎ
2. The process of sending an argument to a function is called:
(a) Sending (b) Passing (c) Filtering (d) Delivering
3. A function that does not return anything has return type;
(a) Nothing (b) Float (c) Void (d) Null
4. A stream is associated with a file using and ______ operation.
(a) Association (b) Attach (c) Link (d) Open
5. On successfully closing a file , the fclose( ) returns
(a) : (b) 0 (c) 1 (d) File pointer
6. A collection of related records is called
(a) (b) Field (c) Database (d) File
Computer Part( I) Total Marks:34 Time :45 Min Subjective Part Group: 1 st Grand Test Series
Q:No.2 Give short answers to the following questions. 5*2=10
i. Define function declaration with its syntax.
ii. What do you know about C language?
iii. How a function returns value.
iv. How the end of text file is indicated?
v. What are the types of function?
Q:No.3 Give short answers to the following questions. 4*2=8
i. What are built in function?
ii. What is life time of variable?
iii. How long a global variable exists in the memory?
iv. Trace the output of the following code: for(int x=1;x<=10;x=x+4) printf(“%d\n”,x);
Q:No.4 Give short answers to the following questions. 4*2=8
i. Compare the binary and text stream.
ii. How string value is displayed in C-language?
iii. Describe the user define function.
iv. What is file closing?
Attempt All parts from this section: Part II (8)
Q:No.5 Write a program that prompts the user to enter a number and calls a function (Factorial ) to To compute its factorial.
Sir Asghar Academy
Address: Ghorra Mohalla , M.B Din
Principal : Asghar Waseem 03461428629,03161748726
Class:2nd Year

ROUND-3
Subject: Computer
Class: 2nd Year
Series: Half -Book
Sir Asghar Academy
Address: Ghorra Mohalla , M.B Din
Principal : Asghar Waseem 03461428629,03161748726
Class:2nd Year

Name: Roll No.: Total Marks: /75


Syllabus: First Half Book (1-7) Test No.: 22 Date: DD/MM/YYYY
Computer Time:20Min Total Marks:15 Subjective Part Group:1st Grand Test Series
Note: Four possible answer a,b,c and d to each question are given. The choice which you think is correct ,fill that circle in
front of that questions with Marker or Pen ink, Cutting or filling two or more circles will result in zero mark in that question.
1 ⒶⒷⒸⒹ 2 ⒶⒷⒸⒹ 3 ⒶⒷⒸⒹ 4 ⒶⒷⒸⒹ 5 ⒶⒷⒸⒹ 6 ⒶⒷⒸⒹ
7 ⒶⒷⒸⒹ 8 ⒶⒷⒸⒹ 9 ⒶⒷⒸⒹ 10 Ⓐ Ⓑ Ⓒ Ⓓ 11 ⒶⒷⒸⒹ 12 ⒶⒷⒸⒹ
12 Ⓐ Ⓑ Ⓒ Ⓓ 14 ⒶⒷⒸⒹ 15 ⒶⒷⒸⒹ
Q:No.1 15*1=1
1. Storage and retrieval of data is related is :
(a) Data capturing (b) Data manipulation (c) Managing output (d) Analysis result
2. Which one of the following data model is more flexible?
(a) Network (b) Hierarchical model (c) Relational model (d) Object data model
3. Insert command is used to insert.
(a) New table (b) New record (c) View (d) Dependencies
4. Who is responsible to design , implement and maintain a databases?
Database
(a) (b) End user (c) Application programmer (d) Web designer
administrator
5. In ERD there are:
(a) - (b) Relationship (c) Both a and b (d) None of above
6. Data is stored at single site while following.

(a) (b) & (c) Hybrid Strategy (d) &


&
7. Different attribute in tow different tables having same name are referred to as :
(a) Synonym (b) Homonym (c) Acronym (d) Mutually exclusive
8. A process of analyzing the dependencies of attributes with in entities is called
(a) Normalization (b) Simplification (c) Structure constraint (d) Field Constraints
9. You can create tables, forms , reports and queries in very short time using
(a) Menus (b) GUI (c) Tools (d) Wizard
10 A Record is complete set of _____ fields
(a) (b) Related (c) Designed (d) All of them
11. In a table , each column represents a :
(a) , (b) ! (c) (d) &
12. The actual data of database is stored in :
(a) Query (b) Tables (c) Forms (d) Report
13. ______ is no an example action query
(a) Select (b) Parameter (c) Delete (d) Convert
14 Report can be printed using menu
(a) File (b) Edit (c) Print (d) Tools
15. The forms are the ______ end of our database in Microsoft Access.
(a) % (b) Front end (c) Both a & b (d) None of them
Sir Asghar Academy
Address: Ghorra Mohalla , M.B Din
Principal : Asghar Waseem 03461428629,03161748726
Class:2nd Year

Computer Part( I) Total Marks:60 Time :2:10Hours Subjective Part Group: 1st Grand Test Series
Q:No.2 Give short answers to any SIX of the following questions. 6*2=12
i. State purpose/uses of query language.
ii. What are the activities performed on data?
iii. Name the file types from function point of view.
iv. What is program file. Write its extension name.
v. Differentiate between composite key and candidate key?
vi. Write down the example of an entity?
vii. Distinguished between record and field?
viii. What is relational database?
ix. Write any two properties of a relation.
Q:No.3 Give short answers to any SIX of the following questions. 6*2=12
i. How is database integrity maintained?
ii. Differentiate between menu bar and Toolbar.
iii. What is the primary model of ERD?
iv. How second normal form explained?
v. What is the mutual Exclusive Data?
vi. What is the difference between 1ND and 2NF?
vii. List any four properties of relational database management system.
viii. What is difference between form and table?
ix. How you can create a new data base?
Q:No.4 Give short answers to any SIX of the following questions. 6*2=12
i. What facilities are provided by DBMSs?
ii. How is query designed in Access?
iii. What is number data type?
iv. Enlist MS-ACCESS database major objects.
v. What is hyperlink?
vi. What is the use of input Mask?
vii. How can we create form in design view?
viii. Define tabular from briefly?
ix. What do you mean by composite primary keys?
Attempt Any THREE questions from this section: Part II (8*3=24)
Q:No.5 Differentiate between data and information?
Q:No.6 Discuss the data manipulation in DBMS system.
Q:No.7 What are the components of a logical data model?
Q:No.8 Define transitive dependency. How it can be removed? Explain with the context of normalization?
Q:No.9 What are the advantages of using a Microsoft Access IDE.
Sir Asghar Academy
Address: Ghorra Mohalla , M.B Din
Principal : Asghar Waseem 03461428629,03161748726
Class:2nd Year

Name: Roll No.: Total Marks: /75


Syllabus: 2nd
Half Book (8-14) Test No.: 23 Date: DD/MM/YYYY
Computer Time:20Min Total Marks:15 Subjective Part Group:1st Grand Test Series
Note: Four possible answer a,b,c and d to each question are given. The choice which you think is correct ,fill that circle in
front of that questions with Marker or Pen ink, Cutting or filling two or more circles will result in zero mark in that question.
1 ⒶⒷⒸⒹ 2 ⒶⒷⒸⒹ 3 ⒶⒷⒸⒹ 4 ⒶⒷⒸⒹ 5 ⒶⒷⒸⒹ 6 ⒶⒷⒸⒹ
7 ⒶⒷⒸⒹ 8 ⒶⒷⒸⒹ 9 ⒶⒷⒸⒹ 10 Ⓐ Ⓑ Ⓒ Ⓓ 11 ⒶⒷⒸⒹ 12 ⒶⒷⒸⒹ
12 Ⓐ Ⓑ Ⓒ Ⓓ 14 ⒶⒷⒸⒹ 15 ⒶⒷⒸⒹ
Q:No.1 15*1=1
1. C language was developed in
(a) 1962 (b) 1969 (c) 1970 (d) 1972
2. C-language programs are divided into units called:
(a) Section (b) Syntax (c) Function (d) Debug
3. Which one of the following is also known control key.
(a) Foreign key (b) Composite key (c) Primary key (d) Sort key
4. The result of C expression 9/4*2 will be equal to:
(a) 4.5 (b) 4.0 (c) 5 (d) 4
5. The expression 0% 4 has a value equal to:
(a) 4 (b) 1 (c) 2 (d) 0
6. The function getch( ) is defined in:
(a) .ℎ (b) .ℎ (c) ℎ. ℎ (d) .ℎ
7. _______ characters indicates the beginning of escape sequence
(a) / (b) \ (c) | (d) %
8. In if-statement , true is represented by:
(a) 0 (b) 1 (c) 2 (d) 3
9. Which one of the following operator is used as decision making statement.
(a) ++ (b) - (c) && (d) Conditional operator
10 How many types of loop structures are in C language.
(a) 2 (b) 3 (c) 4 (d) 5
11. The expression 0% 4 has value equal to
(a) 4 (b) 1 (c) 2 (d) 0
12. The first line of the function definition is called
(a) Function (b) Function Definition (c) Function header (d) Function name
13. Which of the following looks for the prototype of function is called
(a) Sending (b) Passing (c) Filtering (d) Delivering
14 There are types of stream
(a) 1 (b) 2 (c) 3 (d) Many
15. On successfully closing a file , the fclose returns.
(a) :=99 (b) 0 (c) 1 (d) File pointer
Sir Asghar Academy
Address: Ghorra Mohalla , M.B Din
Principal : Asghar Waseem 03461428629,03161748726
Class:2nd Year

Computer Part( I) Total Marks:60 Time :2:10Hours Subjective Part Group: 1st Grand Test Series
Q:No.2 Give short answers to any SIX of the following questions. 6*2=12
i. What is a compiler.
ii. Why source code cannot be executed directly?
iii. What are delimiters?
iv. Why machine language does execute faster?
v. Find the error in the following code. Main() ; { printf(“Hellow);}
vi. Write down the name of two type of identifier in C.
vii. What are data types for integers?
viii. Differentiate between declaring and defining a variable.
ix. What is an Escape Sequence?
Q:No.3 Give short answers to any SIX of the following questions. 6*2=12
i. What is the output of following code?|
/"I/n Love/n programming"0
ii. Trace the error in the following code.
# < . >
B 9 /$ 0
{
/Pakistan0;
}
iii. What is difference between standard input and standard output?
iv. List three types of control structure?
v. What is if-else-if statement?
vi. What is the function of break statement?
vii. What is loop control variable?
viii. Write down two uses of loop?
ix. Trace the out put:
= 1;
'ℎ / < = 60
{
/"Islam Zindabad" )
= + 1;
}
Q:No.4 Give short answers to any SIX of the following questions. 6*2=12
i. What are types of functions?
ii. What are global variables?
iii. Write down the example of user defined and build in function?
iv. What do you know about C language?
v. Differentiate between function definition and function declaration?
vi. Why is it important to close a file.
vii. What is file opening model?
viii. Write the use of function prototype.
ix. What is the purpose of file handling?
Attempt Any THREE questions from this section: Part II (8*3=24)
Q:No.5 Define a bug. Discuss some debugging features of Turbo C++.
Q:No.6 Write down rules for naming variable in C.
Q:No.7 Illustrate the difference between format specifiers and field- width specifiers with examples.
Q:No.8 What is control structure? Briefly describe the basic control structures for writing program.
Q:No.9 Wat is stream? Illustrate the difference between text and binary streams.
Sir Asghar Academy
Address: Ghorra Mohalla , M.B Din
Principal : Asghar Waseem 03461428629,03161748726
Class:2nd Year

ROUND-4
Subject: Computer
Class: 2nd Year
Series: Full Book
Sir Asghar Academy
Address: Ghorra Mohalla , M.B Din
Principal : Asghar Waseem 03461428629,03161748726
Class:2nd Year

Name: Roll No.: Total Marks: /75


Syllabus: Full Book Test No.: 24 Date: DD/MM/YYYY
Computer Time:20Min Total Marks:15 Subjective Part Group:1st Grand Test Series
Note: Four possible answer a,b,c and d to each question are given. The choice which you think is correct ,fill that circle in
front of that questions with Marker or Pen ink, Cutting or filling two or more circles will result in zero mark in that question.
1 ⒶⒷⒸⒹ 2 ⒶⒷⒸⒹ 3 ⒶⒷⒸⒹ 4 ⒶⒷⒸⒹ 5 ⒶⒷⒸⒹ 6 ⒶⒷⒸⒹ
7 ⒶⒷⒸⒹ 8 ⒶⒷⒸⒹ 9 ⒶⒷⒸⒹ 10 Ⓐ Ⓑ Ⓒ Ⓓ 11 ⒶⒷⒸⒹ 12 ⒶⒷⒸⒹ
12 Ⓐ Ⓑ Ⓒ Ⓓ 14 ⒶⒷⒸⒹ 15 ⒶⒷⒸⒹ
Q:No.1 15*1=1
1. A data base is an organized collection of _____data.
(a) Physically (b) Loosely (c) Random (d) Logically
2. Which of the following can be a primary key:
(a) Last name (b) Salary (c) Customer id (d) Region
3. A technique for physically arranging the records of a file on secondary storage devices is called:
(a) fast retrieval (b) Data analysis (c) File organization (d) Update program
4. Every relation must have :
(a) Primary key (b) Candidate key (c) Secondary key (d) Composite key
5. Which shortcut key is used to open an existing database in MS-ACCESS?
(a) CTRL+N (b) CTRL+S (c) CTRL+O (d) CTRL+Z
6. The forms are the ______ end of our database in Microsoft Access.
(a) % (b) (c) ℎ & (d) :- ℎ
7. How many reports layout are?
(a) 2 (b) 3 (c) 4 (d) 5
8. When the result of the computation of two very small numbers is too small to be represented , this phenomenon is called;
(a) Arithmetic Overflow (b) Arithmetic underflow (c) Truncation (d) Round off
9. The symbol = represents
(a) Comparison (b) Assignment operator (c) Equal to operator (d) None
10 The function getche() is defined in
(a) .ℎ (b) .ℎ (c) ℎ. ℎ (d) .ℎ
11. Another name of conditional operator
(a) = &- (b) &- (c) &- (d) ' -
12. In for statement, the expression is executed only once, is called:
(a) Validation (b) Initialization (c) Test (d) Condition
13. A function that does not return anything has return type:
(a) Nothing (b) Float (c) Void (d) Null
14 A file is stored in
(a) RAM (b) Hard disk (c) ROM (d) Cache
15. Which of the following function is used to write string to a file?
(a) /0 (b) Putc() (c) Fputs() (d) Fgets()
Sir Asghar Academy
Address: Ghorra Mohalla , M.B Din
Principal : Asghar Waseem 03461428629,03161748726
Class:2nd Year

Computer Part( I) Total Marks:60 Time :2:10Hours Subjective Part Group: 1st Grand Test Series
Q:No.2 Give short answers to any SIX of the following questions. 6*2=12
i. Name the file type from function point of view.
ii. What is database management system?
iii. Who is database administrator?
iv. State the purpose of physical database design.
v. Differentiate between cardinality and Modality.
vi. Distinguish between relationship and relation.
vii. What is difference between report and form?
viii. What is Auto number data types?
ix. Which database object Stores the data in database?
Q:No.3 Give short answers to any SIX of the following questions. 6*2=12
i. How new record is added to a table using data sheet view?
ii. State the purpose of header file?
iii. Distinguished between Logical error and syntax error.
iv. Write down the name of two types of identifiers in in C.
v. What is an arithmetic expression?
vi. What is Decrement operator (-- )?
vii. What is a Postfix decrement operator?
viii. What is meant by operators precedence?
ix. Find the error in the code?
# < = F- > >
$ /0{
;
= 20;
/ %f , 0;
ℎ/ 0; }
Q:No.4 Give short answers to any SIX of the following questions. 6*2=12
i. What is the output of following?
# < .ℎ >
#$ /0
{ = 5;
/ "% %% %% |, , + + + + 0
ℎ/ 0;
}
ii. List three types of control structure.
iii. What is the syntax of if-statement?
iv. Find out errors in (
# < >
B /0
[
/50 > 200 ℎ
/Islamic Country0;
ℎ/ 0
]
v. Find out error:
= 10
/ ! = 100
= 017
vi. Trace the output:
= 4, = 2, = 5;
/ > 0
= 5;
/ == 0;
= 6;
/% ". 0;
vii. Predict the out put of the following:
Sir Asghar Academy
Address: Ghorra Mohalla , M.B Din
Principal : Asghar Waseem 03461428629,03161748726
Class:2nd Year

= 1;
'ℎ / ≤ 50
{ /"Pakistan"0;
+ +;
}
viii. What are types of function?
ix. How long the global variable exists in the memory?
Attempt Any ONE questions from this section: Part II (8*3=24)
Q:No.5 Discuss the objectives of the databases in your own words.
Q:No.6 Explain any Eight data types available in MS-Access.
C-Language
Attempt Any TWO questions from this section:
Q:No.7 Describe the characteristics of High Level Language?
Write a program in C language that inputs two numbers from the user and determine whether the numbers are equal or not.
Q:No.8
Q:No.9 Define For-Next loop. Give its syntax and flow chart. Also explain its working using an example.
Sir Asghar Academy
Address: Ghorra Mohalla , M.B Din
Principal : Asghar Waseem 03461428629,03161748726
Class:2nd Year

You might also like