Class
– VI
Subject :
Computer Science
L-8
Introduction to Python
Paste and Label components of Python Window
A) Fill in the blanks:
1)
Guido Van Rossum invented
python at CWI, Netherland.
2)
The full form of CWI is Centrum Wiskunde &
Informatica .
3)
There are two modes in python
language.
4)
IDLE is an acronym of Integrated Development and Learning Environment.
B) Short answer type questions:
1)
What is difference between compiler
& Interpreter.
Ans: A compiler translates the entire source code into
machine code before execution, producing a standalone executable file. An
interpreter, on the other hand, translates and executes the source code line by
line without producing a separate executable.
2)
What is difference between
Interactive & Script mode.
Ans: Interactive mode allows users to enter commands
directly into the Python shell, and the results are immediately displayed.
Script mode involves saving a sequence of Python commands in a script file and
executing the entire script at once.
3)
What is the use of print statement?
Ans: The print statement is used to display output in
Python. It allows you to print text, variables, or expressions to the console,
making it a useful tool for debugging and providing information to the user.
4)
What is python?
Ans: Python is a high-level, interpreted programming
language known for its readability and simplicity. It supports multiple
programming paradigms and is widely used in various domains, including web
development, data science, artificial intelligence, and more.
5)
Write down any two features of Python
language.
Ans: Two features of Python language are:
Readability: Python code is easy to read and understand, promoting a
clean and concise coding style.
Extensive Libraries: Python has a rich standard library and numerous
third-party libraries, providing pre-built modules for various tasks.
C) State ‘T’ for True or ‘F’ for False:
1)
Python is a platform Independent
language. TRUE
2)
Python is an example of compiled
language. FALSE
3)
Script mode is the command line shell
mode. FALSE
4)
Multiline comment is also known as
block comment. TRUE
No comments:
Post a Comment