Computer Science and Entrepreneurship MCQs for 2nd Year (Punjab Board)

This page has over 3,100 multiple-choice questions for Computer Science and Entrepreneurship (2nd Year (Punjab Board)), arranged in 9 chapters and 71 topics. The chapters include Computer Networks, Computational Thinking and Algorithms, Object Oriented Programming Using Python, Development of Graphical User Interface (GUI) and Code Testing and Debugging. Every question has four options, an instant answer and, where available, a short explanation.

Chapters and topics

  • Computer Networks 16 topics · 586 MCQs
  • Computational Thinking and Algorithms 11 topics · 395 MCQs
  • Object Oriented Programming Using Python 5 topics · 390 MCQs
  • Development of Graphical User Interface (GUI) 10 topics · 315 MCQs
  • Code Testing and Debugging 3 topics · 207 MCQs
  • Data and Analysis 10 topics · 595 MCQs
  • Hypothesis Testing 7 topics · 267 MCQs
  • Applications of Computer Science 4 topics · 192 MCQs
  • Cybersecurity and Safe Digital Collaboration 5 topics · 236 MCQs

Sample Computer Science and Entrepreneurship MCQs

Try these questions, then open the full practice to work through every chapter. Tap “Show the answer” after you choose.

Q1. Which topology is suitable only for small networks and not good for large ones?

  1. Mesh
  2. Tree
  3. Bus
  4. Star
Show the answer

Answer: C. Bus

The correct answer is: Bus.

Q2. A proposition cannot be:

  1. Both true and false at the same time
  2. True
  3. A statement
  4. False
Show the answer

Answer: A. Both true and false at the same time

The correct answer is: Both true and false at the same time.

Q3. A major advantage of inheritance is:

  1. Slower execution
  2. Code reuse and less redundancy
  3. More duplicate code
  4. Hiding all methods
Show the answer

Answer: B. Code reuse and less redundancy

Inheritance promotes reuse and reduces redundancy.

Q4. The pack() method in Tkinter is used to:

  1. Organize widgets in rows and columns
  2. Set exact coordinates
  3. Create pop-up windows
  4. Place widgets one after another vertically or horizontally
Show the answer

Answer: D. Place widgets one after another vertically or horizontally

The correct answer is: Place widgets one after another vertically or horizontally.

Q5. Which error type is detected before the program runs?

  1. Runtime error
  2. Data error
  3. Logic error
  4. Syntax error
Show the answer

Answer: D. Syntax error

The correct answer is: Syntax error.

Q6. Selecting relevant input values for a model is called:

  1. Feature selection
  2. Validation
  3. Hyperparameter tuning
  4. Data deletion
Show the answer

Answer: A. Feature selection

The correct answer is: Feature selection.

Practise all over 3,100 questions

Chapter-wise practice with instant answers, timed tests and (with a free account) your progress saved.

Start practising →