diff_months: 26

CSE 3142 Programming In Python Assignment

Download Solution Now
Added on: 2023-07-10 13:02:43
Order Code: clt317563
Question Task Id: 0
  • Subject Code :

    CSE-3142

  • Country :

    Australia

  1. Evaluate the following expressions:
    1. x =0, y=6, z=10
    2. x=1, y=1, z=1
  2. Evaluate the following expressions involving arithmetic operators:
    1. -7*20+8/16*2+54
    2. 7**2//9%3
    3. (7-4*2)*10-25*8//5
    4. 5+10-25*8//5
    5. hello*2-5
  3. Evaluate the following expressions involving relational and logical operators:
    1. hi > hello and bye < Bye
    2. hi > hello or bye < Bye
    3. 7 > 8 or 5 < 6> I am not fine
    4. 10 !=9 and 29 >= 29
    5. 10 !=9 and 29 >= 29 and hi > hello or bye < Bye and 7 <= 2.5
  4. Evaluate the following expressions involving arithmetic, relational and logical operators:
  • 5 + 10 < 50>= 29
  • 7 ** 2 <= 5 // 9 % 3 or bye < Bye
  • 5 < 8> 1 * 8 // 5
  • 7 ** 2 // 4 + 5 > 8 or 5 != 6
  • 7/4 < 6> I am not fine
  • 10 + 6 * 2 ** 2 != 9//4-3 and 29 >= 29/9
  • hello * 5 > hello or bye < Bye
  • Evaluate the following expressions involving bit wise operators:
    1. 15 & 22
    2. 15 | 22
    3. -15 & 22
    4. -15 | 22
    5. ? 15
    6. ? 22
    7. ? ?20
    8. 15?22
    9. 8 << 3>
    10. 40 >> 3
  • Differentiate between the following operators with the help of examples:
  • = and ==
  • / and %
  • / and //
  • * and
  • What output will be displayed when the following commands are executed in Python shell in sequence:
    1. >>> a = 6
      >>> a == 6
      >>> a < 5> >>> a > 5.9
    2. >>> b = 7
      >>> b / 6
      >>> b // 6
      >>> b / 4
      >>> b % 4
      >>> b % 7
      >>> b * 2
      >>> b ** 2
  • Construct logical expressions for representing the following conditions: result-1688991140.jpg
    1. marks scored should be greater than 300 and less than 400.
    2. Whether the value of grade is an uppercase letter.
    3. The post is engineer and experience is more than four years.
    4. Write Python statements for the following equations:
    5. How does the effect of the following two statements differ?
  • x += x + 10
  • x = x+ 10

Are you struggling to keep up with the demands of your academic journey? Don't worry, we've got your back! Exam Question Bank is your trusted partner in achieving academic excellence for all kind of technical and non-technical subjects.

Our comprehensive range of academic services is designed to cater to students at every level. Whether you're a high school student, a college undergraduate, or pursuing advanced studies, we have the expertise and resources to support you.

To connect with expert and ask your query click here Exam Question Bank

  • Uploaded By : Katthy Wills
  • Posted on : July 10th, 2023
  • Downloads : 0
  • Views : 313

Download Solution Now

Can't find what you're looking for?

Whatsapp Tap to ChatGet instant assistance

Choose a Plan

Premium

80 USD
  • All in Gold, plus:
  • 30-minute live one-to-one session with an expert
    • Understanding Marking Rubric
    • Understanding task requirements
    • Structuring & Formatting
    • Referencing & Citing
Most
Popular

Gold

30 50 USD
  • Get the Full Used Solution
    (Solution is already submitted and 100% plagiarised.
    Can only be used for reference purposes)
Save 33%

Silver

20 USD
  • Journals
  • Peer-Reviewed Articles
  • Books
  • Various other Data Sources – ProQuest, Informit, Scopus, Academic Search Complete, EBSCO, Exerpta Medica Database, and more