SlideShare a Scribd company logo
1 of 42
Python Programming
GOVERNMENT ARTS COLLEGE, MELUR
PG. Department of Computer Science
UNIT – I
MCQ & QPS
“Presentation & Delivery”
BAVATHARANI K
I M.Sc. Computer Science
Roll No. P22PCS103
SANTHIYA C
I M.Sc. Computer Science
Roll No. P22PCS108
CHINNASAMY C
I M.Sc. Computer Science
Roll No. P22PCS112
VEERANAN VEERANAN
I M.Sc. Computer Science., Dip.in.Yoga.,
Roll No. P22PCS123
VEERANAN VEERANAN
I M.Sc. Computer Science
Roll No. P22PCS123
Python is a popular programming language. It was created by Guido van Rossum,
and released in 1991.
It is used for:
web development (server-side),
software development,
mathematics,
system scripting.
1 Python Programming: An Introduction
1.1 IDLE an Interpreter for Python
1.2 Python Strings
1.3 Relational Operators
1.4 Logical Operators
1.5 Bitwise Operators
1.6 Variables and Assignment Statements
1.7 Logical Operators
1.8 Bitwise Operators
1.9 Variables and Assignment Statements
1.10 Keywords
1.11 Script Mode
3 Control Structures
3.1 if Conditional Statement
3.2 Iteration (for and while
Statements).
2 Functions
2.1 Built-in Functions
2.2 Function Definition and Call
2.3 Importing User-defined Module
2.4 Assert Statement
2.5 Command Line Arguments
1 Python Programming: An Introduction
1.1 IDLE an Interpreter for Python
1.2 Python Strings
1.3 Relational Operators
1.4 Logical Operators
1.5 Bitwise Operators
1.6 Variables and Assignment Statements
1.7 Logical Operators
1.8 Bitwise Operators
1.9 Variables and Assignment Statements
1.10 Keywords
1.11 Script Mode
VEERANAN VEERANAN
I M.Sc. Computer Science
Roll No. P22PCS123
1 Python Programming: An Introduction
1.1 IDLE an Interpreter for Python
IDLE = Integrated Development and Learning Environment
i. Python Shell
ii. Python Editor
>>> 18 + 5
23
>>> 18 * 5
90
>>> 27 / 5
5.4
>>> 27 // 5
5
>>> 27.0 // 5
5.0
>>> 27 % 5
2
VEERANAN VEERANAN
I M.Sc. Computer Science
Roll No. P22PCS123
1 Python Programming: An Introduction
1.2 Python Strings
>>> ‘Hello World’
‘Hello World’
>>>print(‘Hello World’)
Hello World
>>>”””Hello
What’s
Happening”””
“HellonWhat’snHappening”
>>>print(“””Hello
What’s
Happening”””)
Hello
What’s
happening
VEERANAN VEERANAN
I M.Sc. Computer Science
Roll No. P22PCS123
1 Python Programming: An Introduction
1.3 Relational Operators
== (equal to)
< (less than)
> (greater than)
<= (less than or equal to)
>= (greater than or equal to)
!= (not equal to)
VEERANAN VEERANAN
I M.Sc. Computer Science
Roll No. P22PCS123
1 Python Programming: An Introduction
1.4 Logical Operators
NOT
True False
False True
AND
True False False
False True False
OR
True True True
False True False
VEERANAN VEERANAN
I M.Sc. Computer Science
Roll No. P22PCS123
1 Python Programming: An Introduction
1.10 Keywords
False class try return def or if from else as elif
1.11 Script Mode
number1 = input()
number2 = input()
print(number1, number2)
number1 = input(‘Enter first number:’)
number2 = input(‘Enter Second number:’)
Print(‘Number are:’ number1, number2)
Enter first number: 3
Enter second number: 6
Number are: 3 6
VEERANAN VEERANAN
I M.Sc. Computer Science
Roll No. P22PCS123
2 Functions
2.1 Built-in Functions
2.2 Function Definition and Call
2.3 Importing User -defined Module
2.4 Assert Statement
2.5 Command Line Arguments
VEERANAN VEERANAN
I M.Sc. Computer Science
Roll No. P22PCS123
2 Functions
2.1 Built-in Functions
1. input Function
>>>name = input(‘Enter a name:’)
Enter a name: Navanee
>>>name
‘Navanee’
2. eval function
>>>eval(’15+10’)
25
3. Composition
>>>n1 = eval(input (‘Enter a Number:’))
Enter a Number: 234
>>> n1
234
4. type Function
>>>print(type(12), type(12.5), type(‘Hello’), type(int))
<class ‘int’> <class ‘float’> <class ‘str’> <class ‘type’>
5. round Function
>>>print(round(89.625,2), round(89.635), round(89.635,0)
89.62 90 90.0 VEERANAN VEERANAN
I M.Sc. Computer Science
Roll No. P22PCS123
2 Functions
2.2 Function Definition and Call
Syntax:
def function_name (comma_separated_list_of_parameters):
statements
if __name==‘__main__’:
main()
VEERANAN VEERANAN
I M.Sc. Computer Science
Roll No. P22PCS123
2 Functions
2.4 Assert Statement
def percent (marks, maxMarks):
percentage = (marks / maxMarks) * 100
return percentage
def main():
maxMarks = float(input(“Enter maximum marks:”))
assert maxMarks >=0 and maxMarks <=500
assert marks >=0 and marks <=maxMarks
percentage = percent(marks, maxMarks)
print(‘Percentage is:’, percentage)
if __name__==‘__main__:’
main()
VEERANAN VEERANAN
I M.Sc. Computer Science
Roll No. P22PCS123
3 Control Structures
3.1 if Conditional Statement
3.2 Iteration (for and while Statements).
BAVATHARANI K
I M.Sc. Computer Science
Roll No. P22PCS103
1. Which one of the following is the
correct extension of the Python File?
A. .py
B. .python
C. .p
D.None of these
BAVATHARANI K
I M.Sc. Computer Science
Roll No. P22PCS103
2. Which one of the following has
the highest precedence in the
expression?
A. Division
B. Subtraction
C. Power
D.Parentheses
BAVATHARANI K
I M.Sc. Computer Science
Roll No. P22PCS103
3. What arithmetic operators cannot
be used with string?
A. +
B. *
C. -
D.All of the Mentioned
BAVATHARANI K
I M.Sc. Computer Science
Roll No. P22PCS103
4. What is method inside the class in
python language?
A. Object
B. Function
C. Attribute
D.Argument
BAVATHARANI K
I M.Sc. Computer Science
Roll No. P22PCS103
5. Which character is used in python
to make a single line comment?
A. /
B. //
C. #
D.!
BAVATHARANI K
I M.Sc. Computer Science
Roll No. P22PCS103
6. Which of the following functions
is a build-in-function in python
language?
A. val()
B. print()
C. printf()
D.None of these
SANTHIYA C
I M.Sc. Computer Science
Roll No. P22PCS108
1. What will be the output of the
following Python code?
>>>print (r”nhello”)
A. a new line and hello
B. nhello
C. the letter r and then hello
D.error
SANTHIYA C
I M.Sc. Computer Science
Roll No. P22PCS108
2. What is the answer to this
expression,
22 % 3 is?
A. 7
B. 1
C. 0
D.5
SANTHIYA C
I M.Sc. Computer Science
Roll No. P22PCS108
3. What will be the output of the
following Python Statement?
>>>print(‘new’ ‘line’)
A. Error
B. Output equivalent to print
‘newnline’
C. newline
D.new line
SANTHIYA C
I M.Sc. Computer Science
Roll No. P22PCS108
4. Which is the correct operator for
power(x )?
A. X^y
B. X**y
C. X^^y
D.None of the mentioned
y
SANTHIYA C
I M.Sc. Computer Science
Roll No. P22PCS108
5. Who developed the Python
language?
A. Zim Den
B. Guido van Rossum
C. Niene Stom
D.Wick van Rossum
SANTHIYA C
I M.Sc. Computer Science
Roll No. P22PCS108
6. Which one of the following has
the highest precedence in the
expression?
A. Exponential
B. Addition
C. Mutiplication
D.Parentheses
CHINNASAMY C
I M.Sc. Computer Science
Roll No. P22PCS112
1. What will be the output of the
following Python code?
A. None None
B. None 22
C. 22 None
D.Error is generated
class father:
def __init__(self, param):
self.o1 = param
class child(father):
def __init__(self, param):
self.o2 = param
>>>obj = child(22)
>>>print "%d %d" % (obj.o1, obj.o2)
CHINNASAMY C
I M.Sc. Computer Science
Roll No. P22PCS112
2. What will be the value of x in the
following Python expression, if the
result of that expression is 2?
x>>2
A. 8
B. 4
C. 2
D.1
CHINNASAMY C
I M.Sc. Computer Science
Roll No. P22PCS112
3. Which of the following represents
the bitwise XOR operator?
A. &
B. ^
C. |
D. !
CHINNASAMY C
I M.Sc. Computer Science
Roll No. P22PCS112
4. Which of the following
expressions can be used to multiply
a given number ‘a’ by 4?
A. a<<2
B. a<<4
C. a>>2
D.a>>4
CHINNASAMY C
I M.Sc. Computer Science
Roll No. P22PCS112
5. How many types of severity levels
are there for the ASSERT statement?
A. 1
B. 2
C. 3
D.4
CHINNASAMY C
I M.Sc. Computer Science
Roll No. P22PCS112
6. How many except statements can
a try-except block have?
A. zero
B. one
C. more than one
D.more than zero
VEERANAN VEERANAN
I M.Sc. Computer Science
Roll No. P22PCS123
1. Which of the following
precedence order is correct in
Python?
A. Parentheses, Exponential, Multiplication, Division, Addition, Subtraction
B. Multiplication, Division, Addition, Subtraction, Parentheses, Exponential
C. Division, Multiplication, Addition, Subtraction, Parentheses, Exponential
D. Exponential, Parentheses, Multiplication, Division, Addition, Subtraction
VEERANAN VEERANAN
I M.Sc. Computer Science
Roll No. P22PCS123
2. What do we use to define a block
of code in Python language?
A. Key
B. Brackets
C. Indentation
D. None of these
VEERANAN VEERANAN
I M.Sc. Computer Science
Roll No. P22PCS123
3. Which of the following statements
is correct regarding the object-
oriented programming concept in
Python?
A. Classes are real-world entities while objects are not
real
B. Objects are real-world entities while classes are not
real
C. Both objects and classes are real-world entities
D. All of the above
VEERANAN VEERANAN
I M.Sc. Computer Science
Roll No. P22PCS123
4. What is the method inside the
class in python language?
A. Object
B. Function
C. Attribute
D. Argument
VEERANAN VEERANAN
I M.Sc. Computer Science
Roll No. P22PCS123
5. Study the following function:
round(4.576)
What will be the output of this
function?
A. 4
B. 5
C. 576
D. 5
VEERANAN VEERANAN
I M.Sc. Computer Science
Roll No. P22PCS123
6. Study the following function:
import math
abs(math.sqrt(36))
What will be the output of this
function?
A. Error
B. -6
C. 6
D. 6.0
Python Programming: An Introduction
IDLE an Interpreter for Python
https://www.javatpoint.com/python-mcq
Python Strings
https://www.sanfoundry.com/python-mcqs-strings-1/
https://www.sanfoundry.com/python-mcqs-strings-2/
Python Strings – 1
Python Strings – 2
Python Strings – 3
Python Strings – 4
Python Strings – 5
Python Strings – 6
Python Strings
Python Strings – 7
Python Strings – 8
Python Strings – 9
Python Strings – 10
Python Strings – 11
Python Strings – 12
Python Strings – 13
Reference
VEERANAN VEERANAN
I M.Sc. Computer Science
Roll No. P22PCS123
Relational Operators
https://study.com/academy/practice/quiz-
worksheet-relational-operators-in-
python.html
Logical Operators
https://www.sanfoundry.com/python-mcqs-
basic-operators/
Bitwise Operators
https://www.sanfoundry.com/python-
questions-answers-bitwise-1/
https://www.sanfoundry.com/python-
questions-answers-bitwise-2/
Variables and Assignment Statements
https://pynative.com/python-variables-and-
data-types-quiz/
https://www.sanfoundry.com/python-
questions-answers-variable-names/
Keywords
Script Mode
https://www.sanfoundry.com/python-
written-test-questions-answers/
https://www.sanfoundry.com/python-
scripting-questions-answers/
Reference
VEERANAN VEERANAN
I M.Sc. Computer Science
Roll No. P22PCS123
Reference
Functions
Python Function – 1
Python Function – 2
Python Function – 3
Python Function – 4
Built-in Functions
Python Built-in Functions – 1
Python Built-in Functions – 2
Python Built-in Functions – 3
Function Definition and Call
Importing User-defined Module
https://www.sanfoundry.com/python-
questions-answers-modules/
Assert Statement
https://www.sanfoundry.com/vhdl-
questions-answers-assert-statement/
Command Line Arguments
https://www.sanfoundry.com/interview-
questions-c-command-line-arguments/
Control Structures
if Conditional Statement
https://www.sanfoundry.com/python-
questions-answers-exception-handling/
https://www.sanfoundry.com/python-
questions-answers-exception-handling-2/
Iteration (for and while Statements).
https://www.sanfoundry.com/python-
questions-answers-while-and-for-loops-1/
VEERANAN VEERANAN
I M.Sc. Computer Science
Roll No. P22PCS123
Thank You
&
Your Opportunity
“Presentation & Delivery”
BAVATHARANI K
I M.Sc. Computer Science
Roll No. P22PCS103
SANTHIYA C
I M.Sc. Computer Science
Roll No. P22PCS108
CHINNASAMY C
I M.Sc. Computer Science
Roll No. P22PCS112
VEERANAN VEERANAN
I M.Sc. Computer Science., Dip.in.Yoga.,
Roll No. P22PCS123

More Related Content

Similar to Python Unit I MCQ.ppt

Python for Machine Learning
Python for Machine LearningPython for Machine Learning
Python for Machine LearningStudent
 
MIT6_0001F16_Lec1.pdf
MIT6_0001F16_Lec1.pdfMIT6_0001F16_Lec1.pdf
MIT6_0001F16_Lec1.pdfssuser125b6b
 
18CSS101J PROGRAMMING FOR PROBLEM SOLVING
18CSS101J PROGRAMMING FOR PROBLEM SOLVING18CSS101J PROGRAMMING FOR PROBLEM SOLVING
18CSS101J PROGRAMMING FOR PROBLEM SOLVINGGOWSIKRAJAP
 
Object Oriented Technologies
Object Oriented TechnologiesObject Oriented Technologies
Object Oriented TechnologiesUmesh Nikam
 
Question đúng cnu
Question đúng cnuQuestion đúng cnu
Question đúng cnuPhamHoc
 
Python Programming by Dr. C. Sreedhar.pdf
Python Programming by Dr. C. Sreedhar.pdfPython Programming by Dr. C. Sreedhar.pdf
Python Programming by Dr. C. Sreedhar.pdfSreedhar Chowdam
 
Introduction to python
Introduction to pythonIntroduction to python
Introduction to pythonmckennadglyn
 
[計一] Basic r programming final0918
[計一] Basic r programming   final0918[計一] Basic r programming   final0918
[計一] Basic r programming final0918Yen_CY
 
[計一] Basic r programming final0918
[計一] Basic r programming   final0918[計一] Basic r programming   final0918
[計一] Basic r programming final0918Chia-Yi Yen
 
Reinforcement Learning Tutorial | Edureka
Reinforcement Learning Tutorial | EdurekaReinforcement Learning Tutorial | Edureka
Reinforcement Learning Tutorial | EdurekaEdureka!
 
Python Programming - II. The Basics
Python Programming - II. The BasicsPython Programming - II. The Basics
Python Programming - II. The BasicsRanel Padon
 
Lab manual object oriented technology (it 303 rgpv) (usefulsearch.org) (usef...
Lab manual object oriented technology (it 303 rgpv) (usefulsearch.org)  (usef...Lab manual object oriented technology (it 303 rgpv) (usefulsearch.org)  (usef...
Lab manual object oriented technology (it 303 rgpv) (usefulsearch.org) (usef...Make Mannan
 
DataMind: An e-learning platform for Data Analysis based on R. RBelgium meetu...
DataMind: An e-learning platform for Data Analysis based on R. RBelgium meetu...DataMind: An e-learning platform for Data Analysis based on R. RBelgium meetu...
DataMind: An e-learning platform for Data Analysis based on R. RBelgium meetu...DataMind-slides
 

Similar to Python Unit I MCQ.ppt (20)

Python for Machine Learning
Python for Machine LearningPython for Machine Learning
Python for Machine Learning
 
MIT6_0001F16_Lec1.pdf
MIT6_0001F16_Lec1.pdfMIT6_0001F16_Lec1.pdf
MIT6_0001F16_Lec1.pdf
 
18CSS101J PROGRAMMING FOR PROBLEM SOLVING
18CSS101J PROGRAMMING FOR PROBLEM SOLVING18CSS101J PROGRAMMING FOR PROBLEM SOLVING
18CSS101J PROGRAMMING FOR PROBLEM SOLVING
 
Object Oriented Technologies
Object Oriented TechnologiesObject Oriented Technologies
Object Oriented Technologies
 
Cp manual final
Cp manual finalCp manual final
Cp manual final
 
Python-content-1.pdf
Python-content-1.pdfPython-content-1.pdf
Python-content-1.pdf
 
Question đúng cnu
Question đúng cnuQuestion đúng cnu
Question đúng cnu
 
Python Programming by Dr. C. Sreedhar.pdf
Python Programming by Dr. C. Sreedhar.pdfPython Programming by Dr. C. Sreedhar.pdf
Python Programming by Dr. C. Sreedhar.pdf
 
Introduction to python
Introduction to pythonIntroduction to python
Introduction to python
 
[計一] Basic r programming final0918
[計一] Basic r programming   final0918[計一] Basic r programming   final0918
[計一] Basic r programming final0918
 
[計一] Basic r programming final0918
[計一] Basic r programming   final0918[計一] Basic r programming   final0918
[計一] Basic r programming final0918
 
Welcome to python workshop
Welcome to python workshopWelcome to python workshop
Welcome to python workshop
 
Reinforcement Learning Tutorial | Edureka
Reinforcement Learning Tutorial | EdurekaReinforcement Learning Tutorial | Edureka
Reinforcement Learning Tutorial | Edureka
 
Python Programming - II. The Basics
Python Programming - II. The BasicsPython Programming - II. The Basics
Python Programming - II. The Basics
 
Lab manual object oriented technology (it 303 rgpv) (usefulsearch.org) (usef...
Lab manual object oriented technology (it 303 rgpv) (usefulsearch.org)  (usef...Lab manual object oriented technology (it 303 rgpv) (usefulsearch.org)  (usef...
Lab manual object oriented technology (it 303 rgpv) (usefulsearch.org) (usef...
 
2nd sem
2nd sem2nd sem
2nd sem
 
2nd sem
2nd sem2nd sem
2nd sem
 
DataMind: An e-learning platform for Data Analysis based on R. RBelgium meetu...
DataMind: An e-learning platform for Data Analysis based on R. RBelgium meetu...DataMind: An e-learning platform for Data Analysis based on R. RBelgium meetu...
DataMind: An e-learning platform for Data Analysis based on R. RBelgium meetu...
 
Python avinash
Python avinashPython avinash
Python avinash
 
Python Lecture 2
Python Lecture 2Python Lecture 2
Python Lecture 2
 

More from CUO VEERANAN VEERANAN

Big Data - large Scale data (Amazon, FB)
Big Data - large Scale data (Amazon, FB)Big Data - large Scale data (Amazon, FB)
Big Data - large Scale data (Amazon, FB)CUO VEERANAN VEERANAN
 
Fourier Transforms are indispensable tool
Fourier Transforms are indispensable toolFourier Transforms are indispensable tool
Fourier Transforms are indispensable toolCUO VEERANAN VEERANAN
 
ENHANCING BIOLOGICAL RESEARCH THROUGH DIGITAL TECHNOLOGIES AND COMPUTATIONAL.ppt
ENHANCING BIOLOGICAL RESEARCH THROUGH DIGITAL TECHNOLOGIES AND COMPUTATIONAL.pptENHANCING BIOLOGICAL RESEARCH THROUGH DIGITAL TECHNOLOGIES AND COMPUTATIONAL.ppt
ENHANCING BIOLOGICAL RESEARCH THROUGH DIGITAL TECHNOLOGIES AND COMPUTATIONAL.pptCUO VEERANAN VEERANAN
 
CS 23 Operating System Design Principles_MULTIPROCESSOR AND REAL TIME SCHEDULING
CS 23 Operating System Design Principles_MULTIPROCESSOR AND REAL TIME SCHEDULINGCS 23 Operating System Design Principles_MULTIPROCESSOR AND REAL TIME SCHEDULING
CS 23 Operating System Design Principles_MULTIPROCESSOR AND REAL TIME SCHEDULINGCUO VEERANAN VEERANAN
 
GAC DS Priority Queue Presentation 2022.ppt
GAC DS Priority Queue Presentation 2022.pptGAC DS Priority Queue Presentation 2022.ppt
GAC DS Priority Queue Presentation 2022.pptCUO VEERANAN VEERANAN
 
GAC Java Presentation_Server Side Include_Cookies_Filters 2022.ppt
GAC Java Presentation_Server Side Include_Cookies_Filters 2022.pptGAC Java Presentation_Server Side Include_Cookies_Filters 2022.ppt
GAC Java Presentation_Server Side Include_Cookies_Filters 2022.pptCUO VEERANAN VEERANAN
 
Lab 3 Python Programming Lab 8-15 MKU.pdf
Lab 3 Python Programming Lab 8-15 MKU.pdfLab 3 Python Programming Lab 8-15 MKU.pdf
Lab 3 Python Programming Lab 8-15 MKU.pdfCUO VEERANAN VEERANAN
 
Lab 3 Python Programming Lab 1-8 MKU.pdf
Lab 3 Python Programming Lab 1-8 MKU.pdfLab 3 Python Programming Lab 1-8 MKU.pdf
Lab 3 Python Programming Lab 1-8 MKU.pdfCUO VEERANAN VEERANAN
 
MULTIPROCESSOR AND REAL TIME SCHEDULING.ppt
MULTIPROCESSOR AND REAL TIME SCHEDULING.pptMULTIPROCESSOR AND REAL TIME SCHEDULING.ppt
MULTIPROCESSOR AND REAL TIME SCHEDULING.pptCUO VEERANAN VEERANAN
 
1.1.8 Types of computer & 1.1.8.3 Classification of Computers on the basis of...
1.1.8 Types of computer & 1.1.8.3 Classification of Computers on the basis of...1.1.8 Types of computer & 1.1.8.3 Classification of Computers on the basis of...
1.1.8 Types of computer & 1.1.8.3 Classification of Computers on the basis of...CUO VEERANAN VEERANAN
 
1.1.8 Types of computer & 1.1.8.2 Classification of Computers on the basis of...
1.1.8 Types of computer & 1.1.8.2 Classification of Computers on the basis of...1.1.8 Types of computer & 1.1.8.2 Classification of Computers on the basis of...
1.1.8 Types of computer & 1.1.8.2 Classification of Computers on the basis of...CUO VEERANAN VEERANAN
 
1.1.8 Types of computer & 1.1.8.1 Classification of Computers on the basis of...
1.1.8 Types of computer & 1.1.8.1 Classification of Computers on the basis of...1.1.8 Types of computer & 1.1.8.1 Classification of Computers on the basis of...
1.1.8 Types of computer & 1.1.8.1 Classification of Computers on the basis of...CUO VEERANAN VEERANAN
 
1.1.7 Block diagram and Working Principle of Computer
1.1.7 Block diagram and Working Principle of Computer1.1.7 Block diagram and Working Principle of Computer
1.1.7 Block diagram and Working Principle of ComputerCUO VEERANAN VEERANAN
 
1.1.5 Terms related to Computer & 1.1.5.3 Technical Industry
1.1.5 Terms related to Computer & 1.1.5.3 Technical Industry1.1.5 Terms related to Computer & 1.1.5.3 Technical Industry
1.1.5 Terms related to Computer & 1.1.5.3 Technical IndustryCUO VEERANAN VEERANAN
 
1.1.5 Terms related to Computer & 1.1.5.2 Software.ppt
1.1.5 Terms related to Computer & 1.1.5.2 Software.ppt1.1.5 Terms related to Computer & 1.1.5.2 Software.ppt
1.1.5 Terms related to Computer & 1.1.5.2 Software.pptCUO VEERANAN VEERANAN
 

More from CUO VEERANAN VEERANAN (20)

Big Data - large Scale data (Amazon, FB)
Big Data - large Scale data (Amazon, FB)Big Data - large Scale data (Amazon, FB)
Big Data - large Scale data (Amazon, FB)
 
Fourier Transforms are indispensable tool
Fourier Transforms are indispensable toolFourier Transforms are indispensable tool
Fourier Transforms are indispensable tool
 
ENHANCING BIOLOGICAL RESEARCH THROUGH DIGITAL TECHNOLOGIES AND COMPUTATIONAL.ppt
ENHANCING BIOLOGICAL RESEARCH THROUGH DIGITAL TECHNOLOGIES AND COMPUTATIONAL.pptENHANCING BIOLOGICAL RESEARCH THROUGH DIGITAL TECHNOLOGIES AND COMPUTATIONAL.ppt
ENHANCING BIOLOGICAL RESEARCH THROUGH DIGITAL TECHNOLOGIES AND COMPUTATIONAL.ppt
 
ADS_Unit I_Route Map 2023.pdf
ADS_Unit I_Route Map 2023.pdfADS_Unit I_Route Map 2023.pdf
ADS_Unit I_Route Map 2023.pdf
 
CS 23 Operating System Design Principles_MULTIPROCESSOR AND REAL TIME SCHEDULING
CS 23 Operating System Design Principles_MULTIPROCESSOR AND REAL TIME SCHEDULINGCS 23 Operating System Design Principles_MULTIPROCESSOR AND REAL TIME SCHEDULING
CS 23 Operating System Design Principles_MULTIPROCESSOR AND REAL TIME SCHEDULING
 
GAC DS Priority Queue Presentation 2022.ppt
GAC DS Priority Queue Presentation 2022.pptGAC DS Priority Queue Presentation 2022.ppt
GAC DS Priority Queue Presentation 2022.ppt
 
GAC Java Presentation_Server Side Include_Cookies_Filters 2022.ppt
GAC Java Presentation_Server Side Include_Cookies_Filters 2022.pptGAC Java Presentation_Server Side Include_Cookies_Filters 2022.ppt
GAC Java Presentation_Server Side Include_Cookies_Filters 2022.ppt
 
Lab 3 Python Programming Lab 8-15 MKU.pdf
Lab 3 Python Programming Lab 8-15 MKU.pdfLab 3 Python Programming Lab 8-15 MKU.pdf
Lab 3 Python Programming Lab 8-15 MKU.pdf
 
Lab 3 Python Programming Lab 1-8 MKU.pdf
Lab 3 Python Programming Lab 1-8 MKU.pdfLab 3 Python Programming Lab 1-8 MKU.pdf
Lab 3 Python Programming Lab 1-8 MKU.pdf
 
MULTIPROCESSOR AND REAL TIME SCHEDULING.ppt
MULTIPROCESSOR AND REAL TIME SCHEDULING.pptMULTIPROCESSOR AND REAL TIME SCHEDULING.ppt
MULTIPROCESSOR AND REAL TIME SCHEDULING.ppt
 
Relational Algebra.ppt
Relational Algebra.pptRelational Algebra.ppt
Relational Algebra.ppt
 
DS Unit I to III MKU Questions.pdf
DS Unit I to III MKU Questions.pdfDS Unit I to III MKU Questions.pdf
DS Unit I to III MKU Questions.pdf
 
Acharya Vinoba Bhave.ppt
Acharya Vinoba Bhave.pptAcharya Vinoba Bhave.ppt
Acharya Vinoba Bhave.ppt
 
1.1.8 Types of computer & 1.1.8.3 Classification of Computers on the basis of...
1.1.8 Types of computer & 1.1.8.3 Classification of Computers on the basis of...1.1.8 Types of computer & 1.1.8.3 Classification of Computers on the basis of...
1.1.8 Types of computer & 1.1.8.3 Classification of Computers on the basis of...
 
1.1.8 Types of computer & 1.1.8.2 Classification of Computers on the basis of...
1.1.8 Types of computer & 1.1.8.2 Classification of Computers on the basis of...1.1.8 Types of computer & 1.1.8.2 Classification of Computers on the basis of...
1.1.8 Types of computer & 1.1.8.2 Classification of Computers on the basis of...
 
1.1.8 Types of computer & 1.1.8.1 Classification of Computers on the basis of...
1.1.8 Types of computer & 1.1.8.1 Classification of Computers on the basis of...1.1.8 Types of computer & 1.1.8.1 Classification of Computers on the basis of...
1.1.8 Types of computer & 1.1.8.1 Classification of Computers on the basis of...
 
1.1.7 Block diagram and Working Principle of Computer
1.1.7 Block diagram and Working Principle of Computer1.1.7 Block diagram and Working Principle of Computer
1.1.7 Block diagram and Working Principle of Computer
 
1.1.6 Characteristics of Computer
1.1.6 Characteristics of Computer1.1.6 Characteristics of Computer
1.1.6 Characteristics of Computer
 
1.1.5 Terms related to Computer & 1.1.5.3 Technical Industry
1.1.5 Terms related to Computer & 1.1.5.3 Technical Industry1.1.5 Terms related to Computer & 1.1.5.3 Technical Industry
1.1.5 Terms related to Computer & 1.1.5.3 Technical Industry
 
1.1.5 Terms related to Computer & 1.1.5.2 Software.ppt
1.1.5 Terms related to Computer & 1.1.5.2 Software.ppt1.1.5 Terms related to Computer & 1.1.5.2 Software.ppt
1.1.5 Terms related to Computer & 1.1.5.2 Software.ppt
 

Recently uploaded

How to Send Pro Forma Invoice to Your Customers in Odoo 17
How to Send Pro Forma Invoice to Your Customers in Odoo 17How to Send Pro Forma Invoice to Your Customers in Odoo 17
How to Send Pro Forma Invoice to Your Customers in Odoo 17Celine George
 
Spellings Wk 4 and Wk 5 for Grade 4 at CAPS
Spellings Wk 4 and Wk 5 for Grade 4 at CAPSSpellings Wk 4 and Wk 5 for Grade 4 at CAPS
Spellings Wk 4 and Wk 5 for Grade 4 at CAPSAnaAcapella
 
What is 3 Way Matching Process in Odoo 17.pptx
What is 3 Way Matching Process in Odoo 17.pptxWhat is 3 Way Matching Process in Odoo 17.pptx
What is 3 Way Matching Process in Odoo 17.pptxCeline George
 
Personalisation of Education by AI and Big Data - Lourdes Guàrdia
Personalisation of Education by AI and Big Data - Lourdes GuàrdiaPersonalisation of Education by AI and Big Data - Lourdes Guàrdia
Personalisation of Education by AI and Big Data - Lourdes GuàrdiaEADTU
 
21st_Century_Skills_Framework_Final_Presentation_2.pptx
21st_Century_Skills_Framework_Final_Presentation_2.pptx21st_Century_Skills_Framework_Final_Presentation_2.pptx
21st_Century_Skills_Framework_Final_Presentation_2.pptxJoelynRubio1
 
MuleSoft Integration with AWS Textract | Calling AWS Textract API |AWS - Clou...
MuleSoft Integration with AWS Textract | Calling AWS Textract API |AWS - Clou...MuleSoft Integration with AWS Textract | Calling AWS Textract API |AWS - Clou...
MuleSoft Integration with AWS Textract | Calling AWS Textract API |AWS - Clou...MysoreMuleSoftMeetup
 
Play hard learn harder: The Serious Business of Play
Play hard learn harder:  The Serious Business of PlayPlay hard learn harder:  The Serious Business of Play
Play hard learn harder: The Serious Business of PlayPooky Knightsmith
 
Model Attribute _rec_name in the Odoo 17
Model Attribute _rec_name in the Odoo 17Model Attribute _rec_name in the Odoo 17
Model Attribute _rec_name in the Odoo 17Celine George
 
How to Manage Call for Tendor in Odoo 17
How to Manage Call for Tendor in Odoo 17How to Manage Call for Tendor in Odoo 17
How to Manage Call for Tendor in Odoo 17Celine George
 
When Quality Assurance Meets Innovation in Higher Education - Report launch w...
When Quality Assurance Meets Innovation in Higher Education - Report launch w...When Quality Assurance Meets Innovation in Higher Education - Report launch w...
When Quality Assurance Meets Innovation in Higher Education - Report launch w...Gary Wood
 
8 Tips for Effective Working Capital Management
8 Tips for Effective Working Capital Management8 Tips for Effective Working Capital Management
8 Tips for Effective Working Capital ManagementMBA Assignment Experts
 
Graduate Outcomes Presentation Slides - English (v3).pptx
Graduate Outcomes Presentation Slides - English (v3).pptxGraduate Outcomes Presentation Slides - English (v3).pptx
Graduate Outcomes Presentation Slides - English (v3).pptxneillewis46
 
Diuretic, Hypoglycemic and Limit test of Heavy metals and Arsenic.-1.pdf
Diuretic, Hypoglycemic and Limit test of Heavy metals and Arsenic.-1.pdfDiuretic, Hypoglycemic and Limit test of Heavy metals and Arsenic.-1.pdf
Diuretic, Hypoglycemic and Limit test of Heavy metals and Arsenic.-1.pdfKartik Tiwari
 
Pharmaceutical Biotechnology VI semester.pdf
Pharmaceutical Biotechnology VI semester.pdfPharmaceutical Biotechnology VI semester.pdf
Pharmaceutical Biotechnology VI semester.pdfBALASUNDARESAN M
 
TỔNG HỢP HƠN 100 ĐỀ THI THỬ TỐT NGHIỆP THPT TOÁN 2024 - TỪ CÁC TRƯỜNG, TRƯỜNG...
TỔNG HỢP HƠN 100 ĐỀ THI THỬ TỐT NGHIỆP THPT TOÁN 2024 - TỪ CÁC TRƯỜNG, TRƯỜNG...TỔNG HỢP HƠN 100 ĐỀ THI THỬ TỐT NGHIỆP THPT TOÁN 2024 - TỪ CÁC TRƯỜNG, TRƯỜNG...
TỔNG HỢP HƠN 100 ĐỀ THI THỬ TỐT NGHIỆP THPT TOÁN 2024 - TỪ CÁC TRƯỜNG, TRƯỜNG...Nguyen Thanh Tu Collection
 
Orientation Canvas Course Presentation.pdf
Orientation Canvas Course Presentation.pdfOrientation Canvas Course Presentation.pdf
Orientation Canvas Course Presentation.pdfElizabeth Walsh
 
Contoh Aksi Nyata Refleksi Diri ( NUR ).pdf
Contoh Aksi Nyata Refleksi Diri ( NUR ).pdfContoh Aksi Nyata Refleksi Diri ( NUR ).pdf
Contoh Aksi Nyata Refleksi Diri ( NUR ).pdfcupulin
 
How to Manage Website in Odoo 17 Studio App.pptx
How to Manage Website in Odoo 17 Studio App.pptxHow to Manage Website in Odoo 17 Studio App.pptx
How to Manage Website in Odoo 17 Studio App.pptxCeline George
 
diagnosting testing bsc 2nd sem.pptx....
diagnosting testing bsc 2nd sem.pptx....diagnosting testing bsc 2nd sem.pptx....
diagnosting testing bsc 2nd sem.pptx....Ritu480198
 

Recently uploaded (20)

How to Send Pro Forma Invoice to Your Customers in Odoo 17
How to Send Pro Forma Invoice to Your Customers in Odoo 17How to Send Pro Forma Invoice to Your Customers in Odoo 17
How to Send Pro Forma Invoice to Your Customers in Odoo 17
 
Spellings Wk 4 and Wk 5 for Grade 4 at CAPS
Spellings Wk 4 and Wk 5 for Grade 4 at CAPSSpellings Wk 4 and Wk 5 for Grade 4 at CAPS
Spellings Wk 4 and Wk 5 for Grade 4 at CAPS
 
What is 3 Way Matching Process in Odoo 17.pptx
What is 3 Way Matching Process in Odoo 17.pptxWhat is 3 Way Matching Process in Odoo 17.pptx
What is 3 Way Matching Process in Odoo 17.pptx
 
Personalisation of Education by AI and Big Data - Lourdes Guàrdia
Personalisation of Education by AI and Big Data - Lourdes GuàrdiaPersonalisation of Education by AI and Big Data - Lourdes Guàrdia
Personalisation of Education by AI and Big Data - Lourdes Guàrdia
 
21st_Century_Skills_Framework_Final_Presentation_2.pptx
21st_Century_Skills_Framework_Final_Presentation_2.pptx21st_Century_Skills_Framework_Final_Presentation_2.pptx
21st_Century_Skills_Framework_Final_Presentation_2.pptx
 
MuleSoft Integration with AWS Textract | Calling AWS Textract API |AWS - Clou...
MuleSoft Integration with AWS Textract | Calling AWS Textract API |AWS - Clou...MuleSoft Integration with AWS Textract | Calling AWS Textract API |AWS - Clou...
MuleSoft Integration with AWS Textract | Calling AWS Textract API |AWS - Clou...
 
Play hard learn harder: The Serious Business of Play
Play hard learn harder:  The Serious Business of PlayPlay hard learn harder:  The Serious Business of Play
Play hard learn harder: The Serious Business of Play
 
Model Attribute _rec_name in the Odoo 17
Model Attribute _rec_name in the Odoo 17Model Attribute _rec_name in the Odoo 17
Model Attribute _rec_name in the Odoo 17
 
How to Manage Call for Tendor in Odoo 17
How to Manage Call for Tendor in Odoo 17How to Manage Call for Tendor in Odoo 17
How to Manage Call for Tendor in Odoo 17
 
When Quality Assurance Meets Innovation in Higher Education - Report launch w...
When Quality Assurance Meets Innovation in Higher Education - Report launch w...When Quality Assurance Meets Innovation in Higher Education - Report launch w...
When Quality Assurance Meets Innovation in Higher Education - Report launch w...
 
Including Mental Health Support in Project Delivery, 14 May.pdf
Including Mental Health Support in Project Delivery, 14 May.pdfIncluding Mental Health Support in Project Delivery, 14 May.pdf
Including Mental Health Support in Project Delivery, 14 May.pdf
 
8 Tips for Effective Working Capital Management
8 Tips for Effective Working Capital Management8 Tips for Effective Working Capital Management
8 Tips for Effective Working Capital Management
 
Graduate Outcomes Presentation Slides - English (v3).pptx
Graduate Outcomes Presentation Slides - English (v3).pptxGraduate Outcomes Presentation Slides - English (v3).pptx
Graduate Outcomes Presentation Slides - English (v3).pptx
 
Diuretic, Hypoglycemic and Limit test of Heavy metals and Arsenic.-1.pdf
Diuretic, Hypoglycemic and Limit test of Heavy metals and Arsenic.-1.pdfDiuretic, Hypoglycemic and Limit test of Heavy metals and Arsenic.-1.pdf
Diuretic, Hypoglycemic and Limit test of Heavy metals and Arsenic.-1.pdf
 
Pharmaceutical Biotechnology VI semester.pdf
Pharmaceutical Biotechnology VI semester.pdfPharmaceutical Biotechnology VI semester.pdf
Pharmaceutical Biotechnology VI semester.pdf
 
TỔNG HỢP HƠN 100 ĐỀ THI THỬ TỐT NGHIỆP THPT TOÁN 2024 - TỪ CÁC TRƯỜNG, TRƯỜNG...
TỔNG HỢP HƠN 100 ĐỀ THI THỬ TỐT NGHIỆP THPT TOÁN 2024 - TỪ CÁC TRƯỜNG, TRƯỜNG...TỔNG HỢP HƠN 100 ĐỀ THI THỬ TỐT NGHIỆP THPT TOÁN 2024 - TỪ CÁC TRƯỜNG, TRƯỜNG...
TỔNG HỢP HƠN 100 ĐỀ THI THỬ TỐT NGHIỆP THPT TOÁN 2024 - TỪ CÁC TRƯỜNG, TRƯỜNG...
 
Orientation Canvas Course Presentation.pdf
Orientation Canvas Course Presentation.pdfOrientation Canvas Course Presentation.pdf
Orientation Canvas Course Presentation.pdf
 
Contoh Aksi Nyata Refleksi Diri ( NUR ).pdf
Contoh Aksi Nyata Refleksi Diri ( NUR ).pdfContoh Aksi Nyata Refleksi Diri ( NUR ).pdf
Contoh Aksi Nyata Refleksi Diri ( NUR ).pdf
 
How to Manage Website in Odoo 17 Studio App.pptx
How to Manage Website in Odoo 17 Studio App.pptxHow to Manage Website in Odoo 17 Studio App.pptx
How to Manage Website in Odoo 17 Studio App.pptx
 
diagnosting testing bsc 2nd sem.pptx....
diagnosting testing bsc 2nd sem.pptx....diagnosting testing bsc 2nd sem.pptx....
diagnosting testing bsc 2nd sem.pptx....
 

Python Unit I MCQ.ppt

  • 1. Python Programming GOVERNMENT ARTS COLLEGE, MELUR PG. Department of Computer Science UNIT – I MCQ & QPS “Presentation & Delivery” BAVATHARANI K I M.Sc. Computer Science Roll No. P22PCS103 SANTHIYA C I M.Sc. Computer Science Roll No. P22PCS108 CHINNASAMY C I M.Sc. Computer Science Roll No. P22PCS112 VEERANAN VEERANAN I M.Sc. Computer Science., Dip.in.Yoga., Roll No. P22PCS123
  • 2. VEERANAN VEERANAN I M.Sc. Computer Science Roll No. P22PCS123 Python is a popular programming language. It was created by Guido van Rossum, and released in 1991. It is used for: web development (server-side), software development, mathematics, system scripting.
  • 3. 1 Python Programming: An Introduction 1.1 IDLE an Interpreter for Python 1.2 Python Strings 1.3 Relational Operators 1.4 Logical Operators 1.5 Bitwise Operators 1.6 Variables and Assignment Statements 1.7 Logical Operators 1.8 Bitwise Operators 1.9 Variables and Assignment Statements 1.10 Keywords 1.11 Script Mode 3 Control Structures 3.1 if Conditional Statement 3.2 Iteration (for and while Statements). 2 Functions 2.1 Built-in Functions 2.2 Function Definition and Call 2.3 Importing User-defined Module 2.4 Assert Statement 2.5 Command Line Arguments
  • 4. 1 Python Programming: An Introduction 1.1 IDLE an Interpreter for Python 1.2 Python Strings 1.3 Relational Operators 1.4 Logical Operators 1.5 Bitwise Operators 1.6 Variables and Assignment Statements 1.7 Logical Operators 1.8 Bitwise Operators 1.9 Variables and Assignment Statements 1.10 Keywords 1.11 Script Mode VEERANAN VEERANAN I M.Sc. Computer Science Roll No. P22PCS123
  • 5. 1 Python Programming: An Introduction 1.1 IDLE an Interpreter for Python IDLE = Integrated Development and Learning Environment i. Python Shell ii. Python Editor >>> 18 + 5 23 >>> 18 * 5 90 >>> 27 / 5 5.4 >>> 27 // 5 5 >>> 27.0 // 5 5.0 >>> 27 % 5 2 VEERANAN VEERANAN I M.Sc. Computer Science Roll No. P22PCS123
  • 6. 1 Python Programming: An Introduction 1.2 Python Strings >>> ‘Hello World’ ‘Hello World’ >>>print(‘Hello World’) Hello World >>>”””Hello What’s Happening””” “HellonWhat’snHappening” >>>print(“””Hello What’s Happening”””) Hello What’s happening VEERANAN VEERANAN I M.Sc. Computer Science Roll No. P22PCS123
  • 7. 1 Python Programming: An Introduction 1.3 Relational Operators == (equal to) < (less than) > (greater than) <= (less than or equal to) >= (greater than or equal to) != (not equal to) VEERANAN VEERANAN I M.Sc. Computer Science Roll No. P22PCS123
  • 8. 1 Python Programming: An Introduction 1.4 Logical Operators NOT True False False True AND True False False False True False OR True True True False True False VEERANAN VEERANAN I M.Sc. Computer Science Roll No. P22PCS123
  • 9. 1 Python Programming: An Introduction 1.10 Keywords False class try return def or if from else as elif 1.11 Script Mode number1 = input() number2 = input() print(number1, number2) number1 = input(‘Enter first number:’) number2 = input(‘Enter Second number:’) Print(‘Number are:’ number1, number2) Enter first number: 3 Enter second number: 6 Number are: 3 6 VEERANAN VEERANAN I M.Sc. Computer Science Roll No. P22PCS123
  • 10. 2 Functions 2.1 Built-in Functions 2.2 Function Definition and Call 2.3 Importing User -defined Module 2.4 Assert Statement 2.5 Command Line Arguments VEERANAN VEERANAN I M.Sc. Computer Science Roll No. P22PCS123
  • 11. 2 Functions 2.1 Built-in Functions 1. input Function >>>name = input(‘Enter a name:’) Enter a name: Navanee >>>name ‘Navanee’ 2. eval function >>>eval(’15+10’) 25 3. Composition >>>n1 = eval(input (‘Enter a Number:’)) Enter a Number: 234 >>> n1 234 4. type Function >>>print(type(12), type(12.5), type(‘Hello’), type(int)) <class ‘int’> <class ‘float’> <class ‘str’> <class ‘type’> 5. round Function >>>print(round(89.625,2), round(89.635), round(89.635,0) 89.62 90 90.0 VEERANAN VEERANAN I M.Sc. Computer Science Roll No. P22PCS123
  • 12. 2 Functions 2.2 Function Definition and Call Syntax: def function_name (comma_separated_list_of_parameters): statements if __name==‘__main__’: main() VEERANAN VEERANAN I M.Sc. Computer Science Roll No. P22PCS123
  • 13. 2 Functions 2.4 Assert Statement def percent (marks, maxMarks): percentage = (marks / maxMarks) * 100 return percentage def main(): maxMarks = float(input(“Enter maximum marks:”)) assert maxMarks >=0 and maxMarks <=500 assert marks >=0 and marks <=maxMarks percentage = percent(marks, maxMarks) print(‘Percentage is:’, percentage) if __name__==‘__main__:’ main() VEERANAN VEERANAN I M.Sc. Computer Science Roll No. P22PCS123
  • 14. 3 Control Structures 3.1 if Conditional Statement 3.2 Iteration (for and while Statements).
  • 15. BAVATHARANI K I M.Sc. Computer Science Roll No. P22PCS103 1. Which one of the following is the correct extension of the Python File? A. .py B. .python C. .p D.None of these
  • 16. BAVATHARANI K I M.Sc. Computer Science Roll No. P22PCS103 2. Which one of the following has the highest precedence in the expression? A. Division B. Subtraction C. Power D.Parentheses
  • 17. BAVATHARANI K I M.Sc. Computer Science Roll No. P22PCS103 3. What arithmetic operators cannot be used with string? A. + B. * C. - D.All of the Mentioned
  • 18. BAVATHARANI K I M.Sc. Computer Science Roll No. P22PCS103 4. What is method inside the class in python language? A. Object B. Function C. Attribute D.Argument
  • 19. BAVATHARANI K I M.Sc. Computer Science Roll No. P22PCS103 5. Which character is used in python to make a single line comment? A. / B. // C. # D.!
  • 20. BAVATHARANI K I M.Sc. Computer Science Roll No. P22PCS103 6. Which of the following functions is a build-in-function in python language? A. val() B. print() C. printf() D.None of these
  • 21. SANTHIYA C I M.Sc. Computer Science Roll No. P22PCS108 1. What will be the output of the following Python code? >>>print (r”nhello”) A. a new line and hello B. nhello C. the letter r and then hello D.error
  • 22. SANTHIYA C I M.Sc. Computer Science Roll No. P22PCS108 2. What is the answer to this expression, 22 % 3 is? A. 7 B. 1 C. 0 D.5
  • 23. SANTHIYA C I M.Sc. Computer Science Roll No. P22PCS108 3. What will be the output of the following Python Statement? >>>print(‘new’ ‘line’) A. Error B. Output equivalent to print ‘newnline’ C. newline D.new line
  • 24. SANTHIYA C I M.Sc. Computer Science Roll No. P22PCS108 4. Which is the correct operator for power(x )? A. X^y B. X**y C. X^^y D.None of the mentioned y
  • 25. SANTHIYA C I M.Sc. Computer Science Roll No. P22PCS108 5. Who developed the Python language? A. Zim Den B. Guido van Rossum C. Niene Stom D.Wick van Rossum
  • 26. SANTHIYA C I M.Sc. Computer Science Roll No. P22PCS108 6. Which one of the following has the highest precedence in the expression? A. Exponential B. Addition C. Mutiplication D.Parentheses
  • 27. CHINNASAMY C I M.Sc. Computer Science Roll No. P22PCS112 1. What will be the output of the following Python code? A. None None B. None 22 C. 22 None D.Error is generated class father: def __init__(self, param): self.o1 = param class child(father): def __init__(self, param): self.o2 = param >>>obj = child(22) >>>print "%d %d" % (obj.o1, obj.o2)
  • 28. CHINNASAMY C I M.Sc. Computer Science Roll No. P22PCS112 2. What will be the value of x in the following Python expression, if the result of that expression is 2? x>>2 A. 8 B. 4 C. 2 D.1
  • 29. CHINNASAMY C I M.Sc. Computer Science Roll No. P22PCS112 3. Which of the following represents the bitwise XOR operator? A. & B. ^ C. | D. !
  • 30. CHINNASAMY C I M.Sc. Computer Science Roll No. P22PCS112 4. Which of the following expressions can be used to multiply a given number ‘a’ by 4? A. a<<2 B. a<<4 C. a>>2 D.a>>4
  • 31. CHINNASAMY C I M.Sc. Computer Science Roll No. P22PCS112 5. How many types of severity levels are there for the ASSERT statement? A. 1 B. 2 C. 3 D.4
  • 32. CHINNASAMY C I M.Sc. Computer Science Roll No. P22PCS112 6. How many except statements can a try-except block have? A. zero B. one C. more than one D.more than zero
  • 33. VEERANAN VEERANAN I M.Sc. Computer Science Roll No. P22PCS123 1. Which of the following precedence order is correct in Python? A. Parentheses, Exponential, Multiplication, Division, Addition, Subtraction B. Multiplication, Division, Addition, Subtraction, Parentheses, Exponential C. Division, Multiplication, Addition, Subtraction, Parentheses, Exponential D. Exponential, Parentheses, Multiplication, Division, Addition, Subtraction
  • 34. VEERANAN VEERANAN I M.Sc. Computer Science Roll No. P22PCS123 2. What do we use to define a block of code in Python language? A. Key B. Brackets C. Indentation D. None of these
  • 35. VEERANAN VEERANAN I M.Sc. Computer Science Roll No. P22PCS123 3. Which of the following statements is correct regarding the object- oriented programming concept in Python? A. Classes are real-world entities while objects are not real B. Objects are real-world entities while classes are not real C. Both objects and classes are real-world entities D. All of the above
  • 36. VEERANAN VEERANAN I M.Sc. Computer Science Roll No. P22PCS123 4. What is the method inside the class in python language? A. Object B. Function C. Attribute D. Argument
  • 37. VEERANAN VEERANAN I M.Sc. Computer Science Roll No. P22PCS123 5. Study the following function: round(4.576) What will be the output of this function? A. 4 B. 5 C. 576 D. 5
  • 38. VEERANAN VEERANAN I M.Sc. Computer Science Roll No. P22PCS123 6. Study the following function: import math abs(math.sqrt(36)) What will be the output of this function? A. Error B. -6 C. 6 D. 6.0
  • 39. Python Programming: An Introduction IDLE an Interpreter for Python https://www.javatpoint.com/python-mcq Python Strings https://www.sanfoundry.com/python-mcqs-strings-1/ https://www.sanfoundry.com/python-mcqs-strings-2/ Python Strings – 1 Python Strings – 2 Python Strings – 3 Python Strings – 4 Python Strings – 5 Python Strings – 6 Python Strings Python Strings – 7 Python Strings – 8 Python Strings – 9 Python Strings – 10 Python Strings – 11 Python Strings – 12 Python Strings – 13 Reference VEERANAN VEERANAN I M.Sc. Computer Science Roll No. P22PCS123
  • 40. Relational Operators https://study.com/academy/practice/quiz- worksheet-relational-operators-in- python.html Logical Operators https://www.sanfoundry.com/python-mcqs- basic-operators/ Bitwise Operators https://www.sanfoundry.com/python- questions-answers-bitwise-1/ https://www.sanfoundry.com/python- questions-answers-bitwise-2/ Variables and Assignment Statements https://pynative.com/python-variables-and- data-types-quiz/ https://www.sanfoundry.com/python- questions-answers-variable-names/ Keywords Script Mode https://www.sanfoundry.com/python- written-test-questions-answers/ https://www.sanfoundry.com/python- scripting-questions-answers/ Reference VEERANAN VEERANAN I M.Sc. Computer Science Roll No. P22PCS123
  • 41. Reference Functions Python Function – 1 Python Function – 2 Python Function – 3 Python Function – 4 Built-in Functions Python Built-in Functions – 1 Python Built-in Functions – 2 Python Built-in Functions – 3 Function Definition and Call Importing User-defined Module https://www.sanfoundry.com/python- questions-answers-modules/ Assert Statement https://www.sanfoundry.com/vhdl- questions-answers-assert-statement/ Command Line Arguments https://www.sanfoundry.com/interview- questions-c-command-line-arguments/ Control Structures if Conditional Statement https://www.sanfoundry.com/python- questions-answers-exception-handling/ https://www.sanfoundry.com/python- questions-answers-exception-handling-2/ Iteration (for and while Statements). https://www.sanfoundry.com/python- questions-answers-while-and-for-loops-1/ VEERANAN VEERANAN I M.Sc. Computer Science Roll No. P22PCS123
  • 42. Thank You & Your Opportunity “Presentation & Delivery” BAVATHARANI K I M.Sc. Computer Science Roll No. P22PCS103 SANTHIYA C I M.Sc. Computer Science Roll No. P22PCS108 CHINNASAMY C I M.Sc. Computer Science Roll No. P22PCS112 VEERANAN VEERANAN I M.Sc. Computer Science., Dip.in.Yoga., Roll No. P22PCS123