with Answers (50 Questions)
Introduction
Multiple-choice questions are widely used to test understanding of
programming and database concepts. They help students review theoretical
knowledge and prepare for exams or interviews.
This document contains 50 MCQs covering Python programming, SQL
databases, and fundamental data structures. Each question is designed to test
basic understanding of key concepts used in computer science and software
development.
An answer key is provided at the end for quick verification.
Python Programming MCQs
1. What is Python?
A) A hardware device
B) A programming language
C) A database system
D) A web browser
2. Which symbol is used to start a comment in Python?
A) //
B) #
C) /*
D) --
, 3. Which data type is used to store text in Python?
A) int
B) float
C) str
D) bool
4. Which function prints output in Python?
A) display()
B) show()
C) print()
D) output()
5. Which keyword is used for decision making in Python?
A) if
B) switch
C) case
D) choose
6. Which loop repeats code while a condition is true?
A) for
B) while
C) do
D) repeat
7. Which of the following is a Python list?
A) (1,2,3)
B) {1,2,3}
C) [1,2,3]
D) <1,2,3>