MCQs — Programming Fundamentals

Practice questions for Computer Science.

Question 1

What is the World Wide Web (WWW)?

A. A physical cable that connects computers
B. A system of linked web pages that can be accessed through the internet
C. A program used to type documents
D. A device that stores all files
Question 2

What is a website?

A. A single picture on a web page
B. A program used to view web pages
C. A cable used for the internet connection
D. A collection of related web pages stored under one web address
Question 3

How is a web page different from a website?

A. A web page is a single document, while a website is a collection of related web pages
B. A web page is a collection of websites, while a website is a single document
C. A web page can only contain text, while a website can only contain images
D. A web page is hardware, while a website is software
Question 4

What is a web application?

A. A program that must be installed on a computer's hard disk before use
B. A device that connects computers to the internet
C. A program that runs on a web server and is used through a web browser
D. A file that stores the pictures of a website
Question 5

Which of the following is an example of a web application?

A. A calculator program installed on a computer
B. A printed newspaper
C. An online email service used through a browser
D. A photo saved in a phone gallery
Question 6

Sana opens her school portal in a browser to see her result without installing any software. What type of software is she using?

A. A web application
B. A desktop application
C. An operating system
D. A compiler
Question 7

What is the main purpose of a search engine?

A. To create new websites
B. To store all web pages on the user's computer
C. To protect a computer from viruses
D. To find web pages related to the words a user types
Question 8

Which of the following is a search engine?

A. Firefox
B. Bing
C. Notepad
D. Paint
Question 9

A student types 'map of Pakistan' into a search engine and presses Enter. What will the search engine show?

A. A list of web pages related to the typed words
B. The student's saved files
C. A new website built for the student
D. Only the pictures stored in the computer
Question 10

Which type of website shows the same fixed content to every visitor?

A. Dynamic website
B. Web application
C. Search engine
D. Static website
Question 11

Which feature shows that a website is dynamic?

A. Its pages never change
B. Its content can change according to the user or stored data
C. It has no images
D. It is written without HTML
Question 12

A social media site shows different posts to each user after login. Which type of website is it?

A. Static website
B. Search engine
C. Dynamic website
D. Web browser
Question 13

Why does an online shopping website need to be dynamic?

A. Because it cannot show any text
B. Because it never needs a database
C. Because it has only one page
D. Its prices, stock and shopping cart change and depend on the user
Question 14

What is the front end of a website?

A. The part that users see and interact with in the browser
B. The part that stores data on the server
C. The computer where the website is stored
D. The hidden system that checks passwords
Question 15

What is the back end of a website?

A. The part with buttons, images and text that users see
B. The web browser installed on the user's device
C. The part that works on the server to store and process data
D. The web address typed by the user
Question 16

Which of the following are used to build the front end of a website?

A. Database, server and firewall
B. HTML, CSS and JavaScript
C. Keyboard, mouse and monitor
D. Compiler, linker and loader
Question 17

Ali fills in a form on a website and clicks Submit. His details are saved in a database. Which part of the website saved the details?

A. The front end
B. The back end
C. The web browser
D. The search engine
Question 18

What is the first step in developing a website?

A. Publishing the website on the internet
B. Testing the finished website
C. Planning the purpose and content of the website
D. Fixing errors reported by visitors
Question 19

Why is a website tested before it is published?

A. To find and fix errors so that it works properly
B. To make it a static website
C. To remove the need for a server
D. To reduce the number of pages
Question 20

In a website team, one member designs the pages that visitors see and another builds the server and database. Which pair of roles is this?

A. Tester and publisher
B. Reader and writer
C. Client and browser
D. Front-end developer and back-end developer

🎯 How to get the most out of these questions

  • Attempt each question before revealing the answer.
  • Read the explanation even when you answered correctly — it reinforces the concept.
  • Note down any question you got wrong and revisit it the next day.
  • Use the pagination below the list to work through every page — do not stop at page 1.

📌 MCQs — FAQs

Are the answers in this section verified?

Yes — every answer on this page has been verified. MCQs also include explanations where available.

Can I print these questions?

Yes — use your browser's print option (Ctrl+P / Cmd+P) to print or save the page as PDF.

How often are questions updated?

New questions are added regularly. If a paper pattern changes, existing questions are reviewed and updated.

Scroll to Top