🎧 New: AI-Generated Podcasts Turn your study notes into engaging audio conversations. Learn more

Untitled
10 Questions
17 Views

Untitled

Created by
@SmoothestChalcedony

Podcast Beta

Play an AI-generated podcast conversation about this lesson

Questions and Answers

what will be the output of the following? print(2%3)

  • 0
  • 1
  • 2 (correct)
  • 3
  • which one of the following is correct way of declaring & initializing a variable x with value 2?

  • x=2 (correct)
  • int x=2
  • int x x=2
  • declare x=2
  • what will be the output of the following? (print(2*1**2)

  • 1
  • 2 (correct)
  • 3
  • 4
  • which of the following do not belong to python numbers?

    <p>decimal</p> Signup and view all the answers

    what will be the value of average for the following python code? a=8 b=7 average=(a+b)/2 print(average)

    <p>7.5</p> Signup and view all the answers

    what will be the output of the following code? x=222 print(x)

    <p>16</p> Signup and view all the answers

    an identifier can begin with an underscore(_).

    <p>True</p> Signup and view all the answers

    an ordered sequence of items is called

    <p>list</p> Signup and view all the answers

    which of the following is a membership operator?

    <p>in</p> Signup and view all the answers

    what will be the output of the following code? a=0b1011 b=0b1101

    <p>0b1001</p> Signup and view all the answers

    More Quizzes Like This

    Python Programming Fundamentals Quiz
    6 questions
    Python Programming Knowledge Quiz
    5 questions
    Python Programming Language Quiz
    5 questions

    Python Programming Language Quiz

    UnfetteredSugilite3483 avatar
    UnfetteredSugilite3483
    Use Quizgecko on...
    Browser
    Browser