All Subjects
Bahria University50 Questions

Computer Science & Information Technology MCQs

Practice Computer Science & Information Technology multiple-choice questions for Bahria University competitive exams. Each question includes the correct answer and a short explanation, and past-paper questions are marked so you can revise both repeated and fresh material in one place.

7
12
19
14
ExplanationFirst, find f(1) = 2(1)+5 = 7. Then, find f(7) = 2(7)+5 = 19.
3
4/3
3/4
-3/4
ExplanationRewrite in y = mx + b form: -4y = -3x + 12, so y = (3/4)x - 3. The slope is 3/4.
3
4
5
6
ExplanationSince 2 raised to the power of 5 equals 32 (2*2*2*2*2 = 32), the log base 2 of 32 is 5.
Equilateral
Isosceles
Right-angled
Obtuse
ExplanationThe side lengths satisfy the Pythagorean theorem (6^2 + 8^2 = 10^2, or 36 + 64 = 100).
8
11
12
14
ExplanationExpanding gives 4x - 12 = 2x + 10. Subtracting 2x and adding 12 gives 2x = 22, so x = 11.
2x
x + 5
2x + 5
x^2 + 5
ExplanationUsing the power rule, the derivative of x^2 is 2x and the derivative of 5x is 5.
360 degrees
540 degrees
720 degrees
900 degrees
ExplanationThe formula for the sum of interior angles is (n-2) * 180. For n=5, (5-2) * 180 = 3 * 180 = 540.
5
8
11
14
ExplanationThe determinant of [[a, b], [c, d]] is ad - bc. Thus, (2*4) - (1*3) = 8 - 3 = 5.
22 cm
44 cm
154 cm
88 cm
ExplanationCircumference = 2 * pi * r. So, 2 * (22/7) * 7 = 44.
1/6
1/12
7/36
1/7
ExplanationThere are 6 combinations that sum to 7 (1+6, 2+5, 3+4, 4+3, 5+2, 6+1) out of 36 possible outcomes. 6/36 = 1/6.
x^3
x^4
x^8
x^12
ExplanationWhen dividing like bases, subtract the exponents: 6 - 2 = 4.
0
0.5
1
-1
ExplanationBy definition in the unit circle, sin(90 degrees) is 1.
Queue
Stack
Linked List
Binary Tree
ExplanationA stack follows the LIFO principle where the last element added is the first one removed.
ROM
Hard Drive
RAM
Flash Drive
ExplanationRAM (Random Access Memory) is volatile because it requires power to maintain the stored information.
Data Link Layer
Network Layer
Transport Layer
Session Layer
ExplanationThe Network Layer manages logical addressing (IP addresses) and routing of data packets.
PostgreSQL
MySQL
MongoDB
Oracle
ExplanationMongoDB is a NoSQL database, while the others are relational databases (RDBMS).
Creating many instances of a class
Hiding internal data and requiring interaction via methods
A class inheriting from another class
The ability to run functions in parallel
ExplanationEncapsulation bundles data and the methods that operate on that data, restricting direct access to some of an object's components.
Managing the user interface
Managing hardware resources and CPU scheduling
Compiling high-level code
Sending email notifications
ExplanationThe kernel is the core of the OS that bridges applications and hardware.
O(1)
O(n)
O(log n)
O(n^2)
ExplanationBinary search consistently halves the search area, resulting in logarithmic time complexity.
To provide text for search engines
To provide alternative text for images
To style the element
To link to a new webpage
ExplanationThe 'alt' attribute displays text if an image fails to load or for screen readers.
200
401
404
500
Explanation404 is the standard HTTP error code for a resource that cannot be located.
When a process terminates prematurely
When two or more processes are waiting indefinitely for each other to release resources
When memory is fully occupied
When a computer crashes during boot
ExplanationA deadlock occurs when processes are stuck waiting for resources held by others in a circular chain.
Docker
Git
Jenkins
Kubernetes
ExplanationGit is the industry-standard distributed version control system.
1110
1000
0110
1100
ExplanationThe AND operator returns 1 only if both bits are 1. 1010 & 1100 = 1000.
Neither the students nor the teacher are present.
Neither the students nor the teacher is present.
Neither the students nor the teacher were present.
Neither the students nor the teacher have been present.
ExplanationIn 'neither/nor' constructions, the verb agrees with the subject closest to it (the teacher).
Confuse
Obscure
Clarify
Hasten
ExplanationTo elucidate means to make something clear or explain it.
He went to the store; but he forgot his wallet.
He went to the store, but he forgot his wallet.
He went to the store but, he forgot his wallet.
He went to the store but he forgot; his wallet.
ExplanationA comma is used before a coordinating conjunction (but) when joining two independent clauses.
Kind
Generous
Malevolent
Friendly
ExplanationBenevolent means well-meaning and kindly; malevolent means having or showing a wish to do evil to others.
Noun
Adjective
Adverb
Verb
ExplanationAn adverb modifies a verb, describing how the action was performed.
was
were
is
has been
ExplanationWith 'neither/nor', the verb agrees with the subject closest to it ('students'), which is plural.
Accomodate
Acomodate
Accommodate
Acommadate
ExplanationThe correct spelling is 'accommodate' (double c, double m).
She don't know the answer.
The data is accurate.
They was going to the park.
Me and him are friends.
ExplanationSubject-verb agreement is maintained correctly in this sentence.
To make something shorter
To do something in the easiest or cheapest way, often sacrificing quality
To turn sharply
To be efficient and hardworking
ExplanationThe idiom refers to skipping steps or cutting costs to save time, often to a detriment.
I
me
my
mine
ExplanationThe preposition 'between' requires an object pronoun, which is 'me'.
un-
dis-
non-
in-
ExplanationThe prefix 'dis-' turns 'agree' into 'disagree'.
book
read
that
was
Explanation'That' is the relative pronoun connecting the subordinate clause to 'the book'.
38
40
42
44
ExplanationThe differences are 4, 6, 8, 10. The next difference should be 12. 30 + 12 = 42.
5 miles
7 miles
12 miles
6 miles
ExplanationThis forms a right triangle with legs 3 and 4. Using the Pythagorean theorem: sqrt(3^2 + 4^2) = 5.
12
18
24
35
ExplanationAll numbers except 35 are even and multiples of 6. 35 is odd and not a multiple of 6.
Tuesday
Wednesday
Thursday
Friday
ExplanationAdding 7, 14, and 21 days keeps the same day. 1st is Monday, 8th, 15th are Monday, 19th is Friday, 20th is Saturday (wait, recalculating: 1+7=8, 8+7=15, 15+5=20. Monday -> Monday -> Monday + 5 days = Saturday). Let's re-verify: 1(M), 2(Tu), 3(W), 4(Th), 5(F), 6(Sa), 7(Su), 8(M)... 1+19=20. 19/7 = 2 remainder 5. Mon + 5 days = Saturday.
30
36
40
49
ExplanationThe series follows the squares of natural numbers: 1^2, 2^2, 3^2, 4^2, 5^2, 6^2.
0 degrees
7.5 degrees
15 degrees
30 degrees
ExplanationThe minute hand is at 15 minutes (90 degrees). The hour hand moves past the 3 by (15/60)*30 degrees = 7.5 degrees. Difference = 97.5 - 90 = 7.5.
PSBOIH
PQBOHF
PSBOHF
PTBOHG
ExplanationEach letter is shifted by +1, +2, +3, +4, +5 respectively. O+1=P, R+2=S, A+3=D (wait, the pattern is O+1=P, R+1=S, A+1=B... Actually, looking at A->B (+1), P->R (+2), P->Q (+1)... Let's re-eval. Code: A(1)->B(2), P(16)->R(18), P(16)->Q(17), L(12)->M(13), E(5)->F(6). The code is +1, +2, +1, +1, +1? No, let's look at simple offsets: O->P, R->S, A->B, N->O, G->H, E->F.
30 km/h
40 km/h
50 km/h
90 km/h
ExplanationSpeed = Distance / Time = 60 / 1.5 = 40.
All Bloops are Lazzies
All Lazzies are Bloops
Some Razzies are not Bloops
No Bloops are Lazzies
ExplanationThis is a transitive property: If B is subset of R, and R is subset of L, then B must be a subset of L.
Circle
Triangle
Square
Cube
ExplanationCircle, triangle, and square are 2D shapes, while a cube is a 3D object.
3/5
3/8
5/8
1/3
ExplanationProbability = Favorable outcomes / Total outcomes = 3 / (5+3) = 3/8.
7200s
8100s
8500s
9000s
Explanation(2 * 3600) + (15 * 60) = 7200 + 900 = 8100.
50
60
80
100
ExplanationEach term is multiplied by 2 to get the next term.
10
15
25
30
ExplanationArea = L*W, so 50 = L*5, L=10. Perimeter = 2*(L+W) = 2*(10+5) = 30.

Frequently Asked Questions

Are these Computer Science & Information Technology MCQs free?

Yes. Every Computer Science & Information Technology MCQ on this page is free to practice, including the correct answer and explanation.

Do these include past-paper questions?

Yes — questions sourced from past papers are clearly marked with a "Past Paper" badge, alongside fresh practice questions.

Which exams do these Computer Science & Information Technology MCQs help with?

They are aimed at Bahria University and related Pakistani competitive exams that test Computer Science & Information Technology.

How should I practice subject-wise MCQs?

Attempt each question first, then reveal the answer and read the explanation. Short, focused sessions on one subject work better than long unstructured reading.

We use cookies

We use essential cookies to keep the platform running and analytics cookies to understand usage. You can accept or reject analytics and advertising cookies.