0% found this document useful (0 votes)
15 views4 pages

8 TH

The document provides an overview of basic programming concepts, specifically focusing on Python, including definitions of programs, tokens, variables, and functions. It explains various Python functions and statements, such as input(), print(), and conditional statements, along with the distinction between built-in and user-defined functions. Additionally, it covers data types, keywords, loops, and introduces concepts like AI and sentiment analysis.
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
15 views4 pages

8 TH

The document provides an overview of basic programming concepts, specifically focusing on Python, including definitions of programs, tokens, variables, and functions. It explains various Python functions and statements, such as input(), print(), and conditional statements, along with the distinction between built-in and user-defined functions. Additionally, it covers data types, keywords, loops, and introduces concepts like AI and sentiment analysis.
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 4

Masoom School

Computer Stencil

Address: Jyotinagar main Road , Near SNK School , Rajkot


1. An ordered set of instructions or commands to be executed by a computer is called a
Program.
2. The term program is commonly used in the field of computer science and is
synonymous with terms like software or code.
3. A script is a sequence of definitions and commands.
4. The smallest individual unit in a program is known as a token.
5. Tokens are the building blocks of a program and can include keywords, identifiers,
literals, operators, and punctuation symbols.
6. IDLE stands for Integrated Development and Learning Environment.
7. IDLE is designed to facilitate learning and experimentation with Python
programming.
8. The term "Learning Environment" in the acronym suggests that IDLE.
9. Keywords are reserved words.
10. A variable is an identifier whose value can be changed.
11. Variables whose values can be changed after they are created and assigned are
called mutable.
12. Python has input( ) function for taking user input.
13. Python has print function to output data to a standard output device.
14. The if statement is used for decision making in programming.
15. Looping allows sections of code to be executed repeatedly under some condition.
16. The for statement can be used to iterate over a range of values or a sequence.
17. Errors that are difficult to find out are referred to as logical errors.
18. Python has a set of predefined functions that are already built into the language,
known as built-in functions.
19. def keyword is used to define a user-defined function.
20. .py is the extension for PYTHON.
21. script and interactive are the two modes of PYTHON.
23. F5 is the shortcut key to run a PYTHON program.
24. PYTHON is a case sensitive , object oriented , open source language and
platform independent .
25. File  Save are the steps to save a file.
26. A variable is a named memory location that stores data and whose value may
change during program execution.
27. A datatype determines the type of data stored in a variable.
28. Logical operators are And , Or , Not.

2|Page
29. Variable created outside a function are called global variable.
30. Variable created inside a function are called Local Variable.
31. sentiment analysis known as opinion mining.

Q.2 Answer the following questions :


1. Write code to display “This is my first program in python”.
ANS. print(“This is my first program”)
2. input( ) - This function is used to acept the value of a variable from the user.
3. float( ) - This represents numbers with fractional parts in python.
4. print( ) - This function displays the specified content on the screen.
5. int( ) – this represents a number without a fractional part.
6. What is Python?
Ans : It is one of the most popular and easy – to – learn programming language for
creating programs , games and applications.
7. What is variable?
Ans: A variable is small space in the computer’s memory where we can store data and
information. There are two types of variable local and global.
8. What are Data types?
Ans: It is classification of various data items which indicate operations to be performed
on data items.
9. What are keywords?
Ans: Keywords are the reserved words for python and cannot be used as name of
variable or function.
10. What is function?

Ans : A function is an organized block of reusable code used to carry out a specific task.
There are two types of functions 1) Built – in functions 2) User defined functions

11. What are Built in functions and User defined functions.

Ans : Built in functions : These are predefined function which can be used anytime.
For example : input( ) , print ( ) etc.

User Define Functions : These functions are manually created by user to perform
specific task.

12. What are conditional statements ?

3|Page
Ans : It is used to make decisions and they determine whether a specific condition is
true or false.

13. What is random library?

Ans : It is used for generating random numbers, sequence and selections.

14. What are loops?

Ans : Loops are used to perform reparative task and loop will get terminated when the
specific condition get occurred.

15. What is range ( ) ?

Ans: This function is used to create sequence of numbers.

16. What is AI ?

Ans : It enables computer and machines to perform task that typically require human
intelligence.

17. What is sentiment analysis ?

Ans : It is known as opinion mining , is a natural language processing technique that


identifies the emotional content behind a body of text.

18. Define algorithm ?

Ans : It tells computer what are the steps to be taken to solve the problem or to
complete task.

19. Define split( )?

Ans : It helps in diving a sentence into a list where each word becomes a single item in
the list.

20. Define the following full forms :

a. ML : Machine Learning

b. AI : Artificial Intelligence

c. SA : Sentiment Analysis

d. NLP : Natural Language Processing

e. IDLE : Integrated Development and Learning Environment.

4|Page

You might also like