Robotics & Artificial Intelligence
Evaluate the following expressions:
Given: a=5; b=4
- 12*(a+b)-10
- 12*a+b-10
- 12+a*b-10
- 12-10+a*b
Related Questions
Which is the default Python command prompt?
- <<<
- <<
- >>>>
- >>>
Fill in the blanks:
- Python language is …………… oriented programming language.
- An …………… may be a function name, a class name or a variable name.
- …………… is a 3D game engine which enables the users to develop interactive games.
- Python is a …………… generation programming language.
- Escape sequences are some …………… characters which are used as commands in programs.
- Python has come from BBC's popular TV show Monty Python's ……………
Write down the escape sequences for the following:
Description Escape Sequences Horizontal tab Backslash Single quote Double quote Backspace New line feed Assertion (A): Python works in two different modes. These modes are used as per the need of the user while performing the tasks.
Reason (R): Interactive mode refers to the mode where the user is able to see the instant output for the given input. Whereas, the script mode is used only when the user needs to make a program file.
Based on the above discussion, choose an appropriate statement from the options given below:
- Both A and R are true and R is the correct explanation of A.
- Both A and R are true and R is not the correct explanation of A.
- A is true but R is false.
- A is false but R is true.
- Both A and R are false.