CS101 Sample Paper (Final)
CS101 Sample Paper (Final)
Time: 90 min
Marks: 60
Objective Part
[40 sample MCQs each of Mark (01)- You need to attempt any 33
questions from these]
Which tool is used to convert codes of assembly language into machine language?
A. Assembler
B. Debugger
C. Compiler
D. Interpreter
A. Tree
B. Array
C. Queue
D. Stack
A. Stack
B. Queue
C. Tree
D. Array
A. Complexity
B. Cost
C. Design
D. Efficiency
Which of the following phases of the software development life cycle is about developing
a solution to the problem?
A. Requirement analysis
B. Design
C. Implementation
D. Testing
In which software model, a simplified version of the final product with limited
functionality is constructed?
A. Waterfall model
B. Incremental model
C. Prototype model
D. Integrated Model
Which software testing methodology ensures that each instruction in the software is
executed at least once?
C. Beta testing
D. Alpha testing
A. List
B. Loop
C. If-Else Statement
D. Variable initialization
In which iterative structure of loop, test for termination will perform after the body is
executed.
A. Pretest loop
B. Posttest loop
C. While loop
D. For loop
A. Initialization
B. Testing
C. Execution
D. Modification
A two-dimensional array named “marks” having 4 rows and 5 columns can be declared
as.
A. Particular
B. Same
C. Non-linear
D. Heterogeneous
A. 1
B. 0
C. 3
D. 2
A. \
B. /
C. %
D. !
A. MS Excel
B. MS Word
C. Dev C
D. Java
A. Landscape
B. Subscript
C. Superscript
D. A4
A. Scroll bar
B. Home tab
A. Application
B. Compiler
C. System
D. Programming
A. Grammar options
B. Spelling suggestions
D. Comments
In Microsoft PowerPoint, which option on the custom animation task pane allows you to
apply a preset or custom motion path?
A. Add effect.
B. Emphasis
C. Animate now.
D. On Mouse Click
In Microsoft PowerPoint, which of the following options is not available in the Transition
timing group?
A. Sound
B. Duration
C. On Mouse Click
D. Add effect
Which of the following sign is used to specify the range of the cell on which you want to
apply the formula in MS Excel.
A. =
B. %
C. ^
D. :
B. Queue
C. Stack
D. Tree
In ____________, the data entries are inserted and removed at the head.
A. Array
B. List
C. Queue
D. Stack
A. Aggregates
B. Array
C. Pointer
D. Integer
B. A file where records are stored in sorted order and an index is used to access the
data quickly
C. A file where records are stored one after another, in the order they were added
D. A file where records are stored in the reverse order they were added
B. A file where records are stored in sorted order and an index is used to access the
data quickly
C. A file where records are stored one after another, in the order they were added
D. A file where records are stored in the reverse order they were added
What are the advantages of using an indexed file over a sequential file?
C. Both A and B
A. 10
B. 32
C. 50
D. 64
A. Antivirus
B. Spam email
C. Client
D. Firewall
Question No. 37 (Marks: 01) - Please choose the correct option
A. Online Harassment
B. Spamming
C. Unsuitable products
D. Harmful Advice
A. Arrange data
B. Remove data
C. Add data
D. Hide data
A. Column
B. Rows
C. Table
D. Cells
A. .html
B. .mtl
C. .css
D. .doc
Subjective Part
#include<iostream>
using namespace std;
void main()
{
int a = 3, b = 7, c = 5, d = 9;
Write down the Excel formulas for each cell in column “E” to compute the remaining
amount after subtracting the expenses from salary.
Question No. 44 (Marks 03)
Write down the steps to insert a new page in an MS Word document using the Insert
ribbon.
How can you insert footnotes and endnotes in MS Word? Write down the steps.
Write down the names of at least three programming language that belongs to the Object-
Oriented programming paradigm.
Define pretest and posttest loops and also show the concepts of both loops with flow
diagrams.
What is ‘Data Abstraction’? Provide the name of at least three data structures that come
under data abstraction.
1- Ergonomics
2- Cognetics
CANDIDATES
CandID FirstName LastName City Age Degree Experience
1 Ali Umar Lahore 22 BSCS 0
2 Aslam Iqbal Karachi 27 MBA 5
3 Adnan Ahmed Multan 24 BBA 2
4 Bilal Khan Okara 23 BSIT 1
5 Burhan Idrees Lahore 20 MSc GIS 1
… … … … … … …
… … … … … … …
You are required to define relational database operations (queries) to extract the
following information for this table.
1. Write a relational query to extract all the candidates with a degree of BSIT from the
relation ‘CANDIDATES’.