• Home
  • Courses
  • School
  • Programs
  • Problems
  • Contact Us
  • My account
  • Register

Have any question?

(+91) 98222 16647
info@simplycoding.in
RegisterLogin
Simply Coding
  • Home
  • Courses
  • School
  • Programs
  • Problems
  • Contact Us
  • My account
  • Register

Python

CBSE Python Questions on Operators

  • Categories Python, Python Operators, Python

CBSE Python Question Bank on Operators:

1) Identify the Valid and invalid Operators?
  1.    < >
  2.    >= 
  3.     //= 
  4.    &
Ans.
  1.   Invalid
  2.   Valid
  3.    Valid
  4.   Valid  
 
2) Identify the Valid and invalid Operators?
  1.   in not 
  2.   >>  
  3.   is not 
  4.  %+
Ans.
  1.   Invalid
  2.   Valid
  3.   Valid
  4.   invalid  
 
3) If i = 3, j = 2 what is the result of following expressions?
  1.    i + 5 >= j – 6 
  2.   j * 10 < i ** 2 
  3.   i < j + 5 > j ** 4
Ans.
  1. True
  2. False
  3. Flase  
 
4) How are the  following two expressions different?
  1.    ans =  9
  2.   ans == 9
Ans. One is using assignment operator and other is using comparison operator.    
 
5) Given that i = 4, j = 5, k = 4, what will be the result of following expressions?
  1.        i < k 
  2.        i < j 
  3.        i <= k 
  4.        i = = j 
  5.        i = = k 
  6.        j > k 
  7.        j > = i 
  8.        j ! =  i
  9.        j < = k
Ans.
  1.        False
  2.        True
  3.        True
  4.        False
  5.        True
  6.        True
  7.        True
  8.        True
  9.        False    
 
6) Evaluate the following if a = 15 , b = 3
  1.          a / b
  2.        a // b
Ans.
  1.         5.3
  2.        5    
 
7) Identify the type of operators?
  1.         =
  2.        in
  3.         not
  4.        ==
Ans.
  1. Assignment  operator
  2. Membership Operator
  3. Logical operator
  4. Relational operator    
 
8) Identify the type of operators?
  1.         !=
  2.        /=
  3.         and
  4.        ^
Ans.
  1.         Relational Operator
  2.        Assignment Operator
  3.         Logical Operator
  4.        Bitwise XOR  
 
9) Solve the expressions?
  1.         100 // 32
  2.        7 / 3
  3.         6.5 //2
Ans.
  1.              3
  2.           2.3333333333333335
  3.              3

  • Share:
author avatar
Simply Coding

Previous post

CBSE Python Question Bank on if else
April 24, 2020

Next post

Python Problems on Strings
April 24, 2020

You may also like

Data Types
Python Data Types
15 June, 2021
Tokens1
Python Tokens
15 June, 2021
Random Module
Practice short problems on Python Random Module
25 April, 2020

Leave A Reply Cancel reply

You must be logged in to post a comment.

Categories

  • Uncategorized
  • Programs
    • Python
    • Java
  • Problems
    • Python
    • Java
    • Web Development
      • Internet
    • Emerging Technologies
  • Notes
    • General
    • QBasic
    • MS Access
    • Web Development
      • XML
      • HTML
      • JavaScript
      • Internet
    • Database
    • Logo Programming
    • Scratch
    • Emerging Trends
      • Artificial Intelligence
      • Internet of Things
      • Cloud Computing
      • Machine Learning
    • Computer Fundamentals
      • Computer Networks
      • E-Services
      • Computer Hardware
    • Python
    • Java
  • School
    • ICSE
      • Computers Class 9
        • Java Introduction
        • Tokens & Data Types
        • Java Operators
        • Math Library
        • if & switch
        • For & While
        • Nested loops
      • Computer Class 10
        • Sample Papers
        • OOPS concepts
        • Functions in Java
        • Constructors
        • Arrays in Java
        • Strings in Java
    • SSC
      • IT Class 11
        • IT Basics
        • DBMS
        • Web Designing
        • Cyber Laws
      • IT Class 12
        • Web Designing
        • SEO
        • Advanced JavaScript
        • Emerging Tech
        • Server Side Scripting
        • E-Com & E-Gov
      • Computer Science 11
      • Computer Science 12
    • CBSE
      • Computer 9
        • Basics of IT
        • Cyber Safety
        • Scratch
        • Python
      • Computer 10
        • Sample Papers
        • Networking
        • HTML
        • Cyber Ethics
        • Scratch
        • Python
      • Computer Science 11
        • Computer Systems
        • Python 11
          • Python Basics
          • Python Tokens
          • Python Operators
          • Python if-else
          • Python loops
          • Python Strings
          • Python List
          • Python Tuple
          • Python Dictionary
          • Python Modules
        • Data Management
      • Computer Science 12
        • Sample Papers
        • Python 12
          • Python Functions
          • Python File Handling
          • Python Libraries
          • Python Recursion
          • Data Structures
        • Computer Networks
        • Data Management
    • ISC
      • Computer Science 11
        • Introduction to Java
        • Values & Data Types
        • Operators
        • if & switch
        • Iterative Statements
        • Functions
        • Arrays
        • String
        • Data Structures
        • Cyber Ethics
      • Computer Science 12
        • Sample Papers
        • Boolean Algebra
        • OOPS
        • Wrapper Classes
        • Functions
        • Arrays
        • String

Categories

  • Uncategorized
  • Programs
    • Python
    • Java
  • Problems
    • Python
    • Java
    • Web Development
      • Internet
    • Emerging Technologies
  • Notes
    • General
    • QBasic
    • MS Access
    • Web Development
      • XML
      • HTML
      • JavaScript
      • Internet
    • Database
    • Logo Programming
    • Scratch
    • Emerging Trends
      • Artificial Intelligence
      • Internet of Things
      • Cloud Computing
      • Machine Learning
    • Computer Fundamentals
      • Computer Networks
      • E-Services
      • Computer Hardware
    • Python
    • Java
  • School
    • ICSE
      • Computers Class 9
        • Java Introduction
        • Tokens & Data Types
        • Java Operators
        • Math Library
        • if & switch
        • For & While
        • Nested loops
      • Computer Class 10
        • Sample Papers
        • OOPS concepts
        • Functions in Java
        • Constructors
        • Arrays in Java
        • Strings in Java
    • SSC
      • IT Class 11
        • IT Basics
        • DBMS
        • Web Designing
        • Cyber Laws
      • IT Class 12
        • Web Designing
        • SEO
        • Advanced JavaScript
        • Emerging Tech
        • Server Side Scripting
        • E-Com & E-Gov
      • Computer Science 11
      • Computer Science 12
    • CBSE
      • Computer 9
        • Basics of IT
        • Cyber Safety
        • Scratch
        • Python
      • Computer 10
        • Sample Papers
        • Networking
        • HTML
        • Cyber Ethics
        • Scratch
        • Python
      • Computer Science 11
        • Computer Systems
        • Python 11
          • Python Basics
          • Python Tokens
          • Python Operators
          • Python if-else
          • Python loops
          • Python Strings
          • Python List
          • Python Tuple
          • Python Dictionary
          • Python Modules
        • Data Management
      • Computer Science 12
        • Sample Papers
        • Python 12
          • Python Functions
          • Python File Handling
          • Python Libraries
          • Python Recursion
          • Data Structures
        • Computer Networks
        • Data Management
    • ISC
      • Computer Science 11
        • Introduction to Java
        • Values & Data Types
        • Operators
        • if & switch
        • Iterative Statements
        • Functions
        • Arrays
        • String
        • Data Structures
        • Cyber Ethics
      • Computer Science 12
        • Sample Papers
        • Boolean Algebra
        • OOPS
        • Wrapper Classes
        • Functions
        • Arrays
        • String
Simply Coding Computer Courses for School                Privacy Policy     Terms of Use     Contact Us

© 2021 Simply Coding

Login with your site account

Lost your password?

Not a member yet? Register now

Register a new account

Are you a member? Login now