You are on page 1of 2

Python Questions and

Answers – Basic
Operators
« Prev Next »

This set of Python Multiple Choice Questions &


Answers (MCQs) focuses on “Basic Operators”.

1. Which is the correct operator for power(xy)?


a) X^y
b) X**y
c) X^^y
d) None of the mentioned

View Answer

2. Which one of these is oor division?


a) /
b) //
c) %
d) None of the mentioned

View Answer

3. What is the order of precedence in python?


i) Parentheses
ii) Exponential
iii) Multiplication
iv) Division
v) Addition
vi) Subtraction
a) i,ii,iii,iv,v,vi
b) ii,i,iii,iv,v,vi
c) ii,i,iv,iii,v,vi
d) i,ii,iii,iv,vi,v

View Answer

Subscribe Now: Python Newsletter |


Important Subjects Newsletters

advertisement

4. What is the answer to this expression, 22 % 3


is?
a) 7
b) 1
c) 0
d) 5

View Answer

5. Mathematical operations can be performed on


a string.
a) True
b) False

View Answer

Become Top Ranker in Python


Programming Now!

6. Operators with the same precedence are


evaluated in which manner?
a) Left to Right
b) Right to Left
c) Can’t say
d) None of the mentioned

View Answer

7. What is the output of this expression, 3*1**3?


a) 27
b) 9
c) 3
d) 1

View Answer

advertisement

8. Which one of the following has the same


precedence level?
a) Addition and Subtraction
b) Multiplication, Division and Addition
c) Multiplication, Division, Addition and
Subtraction
d) Addition and Multiplication

View Answer

9. The expression Int(x) implies that the variable


x is converted to integer.
a) True
b) False

View Answer

advertisement

Welcome to Sanfoundry
10. Which one of the following has the highest
precedence in the expression?
SANFOUNDRY asks for your
a) Exponential consent to:
b) Addition
c) Multiplication
Personalised ads and content, ad and
 content measurement, audience
d) Parentheses
insights and product development
View Answer
Store and/or access information on a
 device
Sanfoundry Global Education & Learning
Series– Python.
Learn more

Your personal data will be processed and


To practice all areas
information of Python,
from your here is
device (cookies, complete
unique
set ofidenti
1000+ers,Multiple
and other Choice Questions
device data) and
may be stored
by, accessed by and shared with third party
Answers.
vendors, or used speci cally by this site or app.

Some vendors may process your personal data


« Prev - Python » Next - Python
on the basis of legitimate interest, which you can
Questions
object toand
by managing yourQuestions andLook
options below. Answers
for a link
Answers at the bottom of–this
– Variable Corepage or intypes
Data our
privacy policy where you can withdraw consent.
Names

Next Steps: Consent

Get Free Certi cate of


Manage Merit in Python
options
Programming

Participate in Python Programming


Certi cation Contest

Become a Top Ranker in Python


Programming

Take Python Programming Tests

Chapterwise Practice Tests: Chapter 1, 2, 3,


4, 5, 6, 7, 8, 9, 10

Chapterwise Mock Tests: Chapter 1, 2, 3, 4,


5, 6, 7, 8, 9, 10

Related Posts:

Practice Programming MCQs

Apply for Python Internship

Buy Information Technology Books

Buy Python Books

Apply for Programming Internship

Python MCQ

advertisement

Recommended Articles:
1. Arithmetic Operators in C

2. Python Questions and Answers –


Precedence and Associativity – 1

3. Python Questions and Answers –


Precedence and Associativity – 2

4. Visual Basic Questions and Answers –


Writing Arithmetic Expressions

5. Python Programming Internship

6. Python Questions and Answers –


Decorators

7. Python Questions and Answers – Math – 1

8. Python Program to Create a Class which


Performs Basic Calculator Operations

9. VHDL Questions and Answers – Operators –


1

10. Java Questions & Answers – Assignment


Operators and Operator Precedence

advertisement

Additional Resources:

Searching and Sorting in Python

Python Programs on Trees

Python MCQ Questions

Linked List Programs in Python

Python Programs on Graphs

Popular Pages:

Python Programming Examples

Visual Basic MCQ Questions

Bitwise Operations in C

Basic Civil Engineering MCQ Questions

Searching and Sorting Algorithms in C

Subscribe: Python Newsletter

Name

Email

Subscribe

Subscribe to our Newsletters (Subject-wise).


Participate in the Sanfoundry Certi cation
contest to get free Certi cate of Merit. Join our
social networks below and stay updated with
latest contests, videos, internships and jobs!

Youtube | Telegram | LinkedIn | Instagram |


Facebook | Twitter | Pinterest

Manish Bhojasia, a
technology veteran with
20+ years @ Cisco &
Wipro, is Founder and
CTO at Sanfoundry. He
lives in Bangalore, and
focuses on development
of Linux Kernel, SAN Technologies, Advanced C,
Data Structures & Alogrithms. Stay connected
with him at LinkedIn.

Subscribe to his free Masterclasses at Youtube &


discussions at Telegram SanfoundryClasses.

About | Certi cations | Internships | Jobs |


Privacy Policy | Terms | Copyright | Contact

     

© 2011-2023 Sanfoundry. All Rights Reserved.

You might also like