100% found this document useful (1 vote)
87 views6 pages

PPS MCQ Unit I

The document contains 35 multiple choice questions from the Department of Computer Engineering at Trinity Academy of Engineering, Pune related to programming and problem solving for the first semester of the freshman year. The questions cover topics like program design tools, flowcharts, pseudocode, algorithms, data types, operators, variables, comments and more. Each question indicates the relevant unit and topic it falls under.

Uploaded by

Advait Keskar
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
100% found this document useful (1 vote)
87 views6 pages

PPS MCQ Unit I

The document contains 35 multiple choice questions from the Department of Computer Engineering at Trinity Academy of Engineering, Pune related to programming and problem solving for the first semester of the freshman year. The questions cover topics like program design tools, flowcharts, pseudocode, algorithms, data types, operators, variables, comments and more. Each question indicates the relevant unit and topic it falls under.

Uploaded by

Advait Keskar
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 6

KJ's Educational Institute

TRINITY ACADEMY OF ENGINEERING, PUNE


(Approved by AICTE, New Delhi, Govt. of Maharashtra & affiliated to SPPU, DTE Code: EN6634)
(Accredited by NAAC with ‘A’ Grade)

Multiple Choice Questions

Department: Computer Engineering Year: F.E. (Semester I)

Subject: Programming & Problem Solving 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

Q4 Which of the following is pictorial representation of algorithm? Unit 1 & Topic


a) Pseudo code
b) Program
c) Flowchart
d) Algorithm

Q5 Pseudo code is also known as _________ Unit 1 & Topic


a) Program Design Language
b) Hardware Language
c) Software Language
d) Algorithm

Q6 What flowchart symbol does parallelogram represent? Unit 1 & Topic


a) Input/Output
b) Start/End
c) Decision
d) Process
Q7 The ______ symbol is always first and last symbol in the flowchart. Unit 1 & Topic
a) Rectangle
b) Parallogram
c) Terminal Symbols
d) Diamond

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

Q10 Algorithm should be Unit 1 & Topic


a) Precise
b) Unambiguous
c) Clear
d) All of these

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

Q16 Select the integer literal. Unit 1 & Topic


a) 10.345
b) 9
c) ‘9’
d) “9”

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

Q22 Which line of code produces an error? Unit 1 & Topic


a) “one”+”2”
b) ‘5’+6
c) 3+4
d) “7”+’eight’

Q23 >>> spam=”eggs” Unit 1 & Topic


>>> print(spam*3)
a) Spamspamspam
b) eggseggseggs
c) “spamspamspam”
d) Spam*3

Q24 What is the output of this code? Unit 1 & Topic


>>int(“30”+”40”)
a) “70”
b) “3040”
c) 3040
d) (“30”+”40”)

Q25 What is the output of this code? Unit 1 & Topic


>>> float(“123”*int(input(“Enter a number”)))
Enter a number:3
a) “123123123”
b) “369.0”
c) 123123123.0 after decimal 0 will be there
d) 369
Q26 Identify correct variable name Unit# & Topic
a) This_is var=7
b) 123abc=10.22
c) ThisBook=”Python”
d) %name=”xyz”

Q27 A variable removed using which keyword. Unit# & Topic


a) remove
b) clear
c) del
d) delete

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

Q30 Comment start with which symbol? Unit# & Topic


a) “
b) //
c) #
d) *

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

You might also like