stud
bud
Sign up
Log in
Home
Library
Explore
SAT
More
MCQ- Programming Concepts Flashcards | StudBud
Explore
/
MCQ- Programming Concepts
MCQ- Programming Concepts
10 terms
·
StudBud Administration
·
1 play
A level MCQ programming concepts
Flashcards
10 cards
F
Practice quiz
P
Host live
L
Questions
10
Answers
1
5. What is the result of 5 + 3 * 2 in Python?
16
10
13
11
2
7. How do you take user input in Python?
input()
user_input()
read_input()
get_input()
3
8. What data structure follows the Last-In-First-Out (LIFO) principle?
Stack
Tree
Queue
Linked List
4
9. How do you comment a single line of code in Python?
# Comment
' Comment
/* Comment */
// Comment
5
1. Which of the following is not a data type in Python?
Integer
Array
None of the above
String
6
10. What is the correct way to declare a variable in Python?
x = variable
variable x
x = 5
var x
7
3. Which of the following is a function in Python?
if 10 > 5:
"Hello, world!"
10 + 5
def factorial(n):
8
2. Which of the following is a control flow statement in Python?
For loop
If statement
While loop
All of the above
9
4. Which of the following is a valid variable name in Python?
10_students
my student name
my_student_name
All of the above
10
6. What is the purpose of a class?
All of the above
To organize code into modules
To encapsulate data and behavior
To create reusable code