Page 106 - 2403_Trackpad_V5.1_C6_Fb
P. 106
c. What are the data types?
___________________________________________________________________
d. What are operators in Python?
___________________________________________________________________
e. What will be the output of the following Python statement?
print(12 // 2 + 7 - 8)
___________________________________________________________________
f. Write the output of the following statement:
print("Hello!", "How", "are you?")
___________________________________________________________________
g. What is a variable? How do you declare a variable in Python?
___________________________________________________________________
___________________________________________________________________
___________________________________________________________________
h. Write steps to run a Python program.
___________________________________________________________________
___________________________________________________________________
4. Differentiate between the following:
a. Interactive Mode Script Mode
__________________________________ __________________________________
__________________________________ __________________________________
b. input() function print() function
__________________________________ __________________________________
__________________________________ __________________________________
5. Competency-based/Application-based questions. Experiential Learning
a. Aarav has been writing codes at the command prompt. He wants to save and reuse
his programs. Where should he write his codes instead so that he can easily open,
run and save them for later use?
___________________________________________________________________
b. Ayushi finished writing a program in Python and has saved it successfully but now she has forgotten
the option to execute a program. Tell her which option she should use.
___________________________________________________________________
c. Sunny is writing a Python program to create a basic calculator. He wants his program to appear
interactive, and he wants each statement to be defined within the program itself. How can she add
a phrase about the statement in the Python program?
___________________________________________________________________
104 Premium Edition-VI

