CSE 3142 Programming In Python Assignment
- Subject Code :
CSE-3142
- Country :
Australia
- Evaluate the following expressions:
- x =0, y=6, z=10
- x=1, y=1, z=1
- Evaluate the following expressions involving arithmetic operators:
- -7*20+8/16*2+54
- 7**2//9%3
- (7-4*2)*10-25*8//5
- 5+10-25*8//5
- hello*2-5
- Evaluate the following expressions involving relational and logical operators:
- hi > hello and bye < Bye
- hi > hello or bye < Bye
- 7 > 8 or 5 < 6> I am not fine
- 10 !=9 and 29 >= 29
- 10 !=9 and 29 >= 29 and hi > hello or bye < Bye and 7 <= 2.5
- 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:
- 15 & 22
- 15 | 22
- -15 & 22
- -15 | 22
- ? 15
- ? 22
- ? ?20
- 15?22
- 8 << 3>
- 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:
- >>> a = 6
>>> a == 6
>>> a < 5> >>> a > 5.9 - >>> b = 7
>>> b / 6
>>> b // 6
>>> b / 4
>>> b % 4
>>> b % 7
>>> b * 2
>>> b ** 2
- >>> a = 6
- Construct logical expressions for representing the following conditions:
- marks scored should be greater than 300 and less than 400.
- Whether the value of grade is an uppercase letter.
- The post is engineer and experience is more than four years.
- Write Python statements for the following equations:
- 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