PPS MCQ Unit I
PPS MCQ Unit I
Q1 Which of the following is the program design tool? Unit 1 & Topic
a) Sequential
b) Flowchart
c) Pseudo code
d) Both B & C
Q2 Flowcharts and Algorithms are used for __________ Unit & Topic
a) Better Programming
b) Easy Testing & Debugging
c) Efficient coding
d) All
Q3 An algorithm represented in the form of programming language is ____ Unit 1 & Topic
a) Flowchart
b) Pseudo code
c) Program
d) None
Q8 ______ is a form of structured English that describes algorthms. Unit 1 & Topic
a) Flowchart
b) Pseudo code
c) Algorithm
d) None
Q9 ______ is used to express algorithms and as a mode of human Unit 1 & Topic
communication.
a) Flowchart
b) Pseudo code
c) Algorithm
d) None
Q11 To check whether a given number is even or odd, you will use which Unit 1 & Topic
control structure?
a) Sequence
b) Decision
c) Repetition
d) All of these
Q12 Which of the following is graphical or symbolic representation of a Unit 1 & Topic
process?
a) Algorithm
b) Flowchart
c) Pseudo code
d) Program
Q13 In a flowchart which a activity is represented using rectangle? Unit 1 & Topic
a) Terminal
b) Decision
c) Process
d) Input/Output
Q14 Which of the following details are omitted in pseudo code? Unit 1 & Topic
a) Variable declaration
b) System specific code
c) Memory allocations
d) All of these
Q15 Identify the words which best describe python. Unit 1 & Topic
a) Interpreted
b) Reliable
c) Simple
d) All of these
Q17 Which of these will not be stored as a float? Unit 1 & Topic
a) 23
b) 56/59
c) 1.5
d) ABC
Q18 Which operator gives reminder after division? Unit 1 & Topic
a) /
b) //
c) %
d) *
Q19 Python allows you to specify Unicode text by prefixing the string with Unit 1 & Topic
which character?
a) U
b) R
c) S
d) A
Q20 What is the output of this code? >>>print(“print’’’ hello”” ”) Unit 1 & Topic
a) Print””print hello’’’
b) An error message
3
c) Print print hello’
d) Print “ print print hello”
Q21 Which of the following is a valid string literal? Unit 1 & Topic
a) “Computer”
b) ‘Computer
c) ‘’’Computer’’’
d) All of above
Q28 To specify more than one statements in a single line, use a ____ to separate the Unit# & Topic
statements.
a) ‘
b) ;
c) :
d) /
Q29 The input() function takes user’s input as a Unit# & Topic
a) Integer
b) Float
c) String
d) Character
Q31 Bitwise operator can be applied on which datatype? Unit# & Topic
a) integer
b) float
c) string
d) list
Q32 Which operator treats operands as a sequence of bits? Unit# & Topic
a) Relational
b) Arithmatic
c) Bitwise
d) Logical
5
Q33 Which operator is also known as string repetition operator? Unit# & Topic
a) +
b) *
c) &
d) ^
Q34 If x=5: y=_: and print(x+y) gives 12, then y is Unit# & Topic
a) 7
b) =
c) ‘7’
d) “7”
Q35 What is the output of the following code? Unit# & Topic
X=6
Y=2
print(x**y)
print(x//y)
a) 66
0
b) 36
0
c) 66
3
d) 36
3