Untitled
10 Questions
17 Views

Choose a study mode

Play Quiz
Study Flashcards
Spaced Repetition
Chat to Lesson

Podcast

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 (D)</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 (B)</p> Signup and view all the answers

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

<p>16 (B)</p> Signup and view all the answers

an identifier can begin with an underscore(_).

<p>True (A)</p> Signup and view all the answers

an ordered sequence of items is called

<p>list (D)</p> Signup and view all the answers

which of the following is a membership operator?

<p>in (A)</p> Signup and view all the answers

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

<p>0b1001 (A)</p> Signup and view all the answers
Use Quizgecko on...
Browser
Browser