stud
bud
Sign up
Log in
Home
Library
Explore
SAT
More
11 CSC 2025 Flashcards | StudBud
Explore
/
11 CSC 2025
11 CSC 2025
25 terms
·
StudBud Administration
·
26 plays
Imported from external platform
Flashcards
25 cards
F
Practice quiz
P
Host live
L
Questions
25
Answers
1
What will be the output of the following Python code?
Abc. def
ABC. DEF
abc. def
Abc. Def
2
Which keyword is used for function in Python language?
Fun
Function
def
Define
3
What does the print() function do in Python?
It performs mathematical operations
It reads data from a file
It takes user input
It prints output to the console
4
Which of the following Python statements will result in the output: 6?
A[1][2]
A[2][3]
A[2][1]
A[3][2]
5
Which of the following is used to define a block of code in Python language?
All of the mentioned
Key
Indentation
Brackets
6
What will be the output of the following Python program?
none of the mentioned
error
0 1 2
0 1 2 0
7
Python will run this program without errors: print("hello")
True
False
8
Which of the following statements is used to create an empty set in Python?
[ ]
( )
{ }
set()
9
Who developed Python Programming Language?
Rasmus Lerdorf
Niene Stom
Wick van Rossum
Guido van Rossum
10
What will be the output of the following Python code?
none of the mentioned
1 2
error
1 2 3
11
What arithmetic operators cannot be used with strings in Python?
+
–
All of the mentioned
*
12
What does the += operator do in Python?
Subtracts a value from a variable
Divides a value by a variable
Multiplies a variable by a value
Adds a value to a variable
13
Is Python case sensitive when dealing with identifiers?
no
yes
none of the mentioned
machine dependent
14
Which type of Programming does Python support?
all of the above
structured programming
functional programming
object-oriented programming
15
Which of the following is the correct extension of the Python file?
.python
.p
.py
.pl
16
Which function is used to take user input in Python?
input()
read_input()
user_input()
get_input()
17
What will be the output of the following Python code?
error
a b c d
1 2 3 4
0 1 2 3
18
Which of the following functions is a built-in function in python?
factorial()
sqrt()
print()
seed()
19
What will be the value of the following Python expression?
4
7
1
2
20
What will be the output of the following Python statement?
bc
a
abc
bca
21
Which of the following statements correctly defines an if/else statement in Python?
if condition { code block }
if condition [ code block ]
if condition: code block
if condition: code block else: code block
22
What is the maximum possible length of an identifier in Python?
none of the mentioned
31 characters
63 characters
79 characters
23
What is the order of precedence in python?
Exponential, Parentheses, Division, Multiplication, Addition, Subtraction
Exponential, Parentheses, Multiplication, Division, Addition, Subtraction
Parentheses, Exponential, Multiplication, Addition, Division, Subtraction
Parentheses, Exponential, Multiplication, Division, Addition, Subtraction
24
What will be the output of the following Python code snippet?
1 2 3 4
error
none of the mentioned
4 3 2 1
25
Which of the following character is used to give single-line comments in Python?
//
/*
#
!