SCHEME OF EVALUATION-p-a
SCHEME OF EVALUATION-p-a
6. Write an algorithm to accept two numbers compute the sum and print the result.
Step 1: start the program
Step 2: Read a and b value
Step 3: sum=a + b
Step 4: print sum
Step 5: stop the program.
7. What is keyword in python?
The interpreter uses keywords to recognize the structure of the program, and they cannot
be used as variable names.
8. What do you mean by script mode in python?
Run Python in interactive mode, which means that you interact directly with the
interpreter.
The alternative is to save code in a file called a script and then run the interpreter in script
mode to execute the script.
9. What are the various types of errors in python?
Syntax errors, semantic errors, runtime errors.
10. Name the four types of scalar objects python has?
Int, float, complex, bool