Podcast
Questions and Answers
An ordered set of instruction to be executed by a computer by a computer to carry out a specific task is called ______.
An ordered set of instruction to be executed by a computer by a computer to carry out a specific task is called ______.
Program
Computer understand the language of 0s and 1s which is called
Computer understand the language of 0s and 1s which is called
- Algorithm
- Pseudo code
- Program
- All of the above (correct)
A program written in a high-level language is called ______code.
A program written in a high-level language is called ______code.
Binary language
Language translator convert ______ code to ______ code.
Language translator convert ______ code to ______ code.
Which of the following is not correct about python?
Which of the following is not correct about python?
Python is case sensitive.
Python is case sensitive.
Which keyboard key is used to run python programs?
Which keyboard key is used to run python programs?
All keywords in Python are in lower case.
All keywords in Python are in lower case.
Which of the following is not the feature of python language?
Which of the following is not the feature of python language?
In which of the following mode, the interpreter executes the statement and displays the result as soon as we press 'Enter' key?
In which of the following mode, the interpreter executes the statement and displays the result as soon as we press 'Enter' key?
By default, the Python scripts are saved with ______ extension.
By default, the Python scripts are saved with ______ extension.
By default, the Python scripts are saved in ______.
By default, the Python scripts are saved in ______.
______ are reserved words.
______ are reserved words.
Which of the following is not correct for naming an identifier in Python?
Which of the following is not correct for naming an identifier in Python?
Comments in python program are ______ by interpreter.
Comments in python program are ______ by interpreter.
In Python single line comment starts with ______.
In Python single line comment starts with ______.
In Python multi line comment starts with ______.
In Python multi line comment starts with ______.
Which of the following is a sequence data type?
Which of the following is a sequence data type?
______ is a set of valid characters that a language can recognize.
______ is a set of valid characters that a language can recognize.
The smallest individual unit in a program is known as ______
The smallest individual unit in a program is known as ______
Which of the following is invalid identifier?
Which of the following is invalid identifier?
Which of the following statement is wrong?
Which of the following statement is wrong?
Identifier can start with number.
Identifier can start with number.
Variables of data types like integers, float etc., hold ______
Variables of data types like integers, float etc., hold ______
An ______ is a symbol which is used to perform specific mathematical or logical operation on values.
An ______ is a symbol which is used to perform specific mathematical or logical operation on values.
Operators work on values called ______.
Operators work on values called ______.
Operators working on Operand ______ data value.
Operators working on Operand ______ data value.
Which of the following is number data type in python?
Which of the following is number data type in python?
Binary operators are operators with ______ operands.
Binary operators are operators with ______ operands.
In Python, we have ______ function for taking input from the user.
In Python, we have ______ function for taking input from the user.
The user may enter a number or a string but the input() function treats them as ______.
The user may enter a number or a string but the input() function treats them as ______.
Flashcards
Python Program
Python Program
An ordered set of instructions for a computer to perform a specific task.
Binary Language
Binary Language
A language computers understand, using only 0s and 1s.
Machine Language
Machine Language
A low-level computer language.
Source Code
Source Code
Signup and view all the flashcards
Interpreter
Interpreter
Signup and view all the flashcards
Compiler
Compiler
Signup and view all the flashcards
Language Translators
Language Translators
Signup and view all the flashcards
Python's Case Sensitivity
Python's Case Sensitivity
Signup and view all the flashcards
Python Keywords
Python Keywords
Signup and view all the flashcards
Python Script Extension
Python Script Extension
Signup and view all the flashcards
Identifiers
Identifiers
Signup and view all the flashcards
Comments
Comments
Signup and view all the flashcards
Single-Line Comment
Single-Line Comment
Signup and view all the flashcards
Multiline Comment
Multiline Comment
Signup and view all the flashcards
Sequence Data Types
Sequence Data Types
Signup and view all the flashcards
Integer
Integer
Signup and view all the flashcards
Float
Float
Signup and view all the flashcards
Invalid Identifier Example
Invalid Identifier Example
Signup and view all the flashcards
Token
Token
Signup and view all the flashcards
Literal
Literal
Signup and view all the flashcards
Variable Type
Variable Type
Signup and view all the flashcards
Binary Operators
Binary Operators
Signup and view all the flashcards
User Input
User Input
Signup and view all the flashcards
Numerical User Input
Numerical User Input
Signup and view all the flashcards
Boolean
Boolean
Signup and view all the flashcards
Study Notes
Python Basics
- Python is an ordered set of instructions executed by a computer to perform a task.
- Python uses a high-level language, which is converted to machine code.
- Python uses an interpreter to convert code.
- Python is an open-source language developed by Guido van Rossum.
- Python is case-sensitive.
- Python's keywords are written in lowercase.
- Python programs are run using the
Ctrl + R
key combination.
Data Types and Variables
- Variables can store different types of data.
- Integers, floats, and strings are examples of data types.
- Variables can hold a single value.
- Variables start with a letter or underscore.
Operators
- Operators perform actions on data values.
- Operators can be mathematical, logical, or comparison.
Comments
- Comments are notes in the code that do not affect the program's execution.
- Single-line comments start with
#
. - Multi-line comments use triple quotes (
"""..."""
).
Identifiers
- Identifiers are used to name variables, functions, classes.
- Identifiers cannot start with numbers.
- Reserved words (keywords) cannot be identifiers.
Data Types
- Integer, float, string, boolean, and complex are data types.
Input/Output functions
- input()
- The
input()
function receives input from the user. - The user input can be treated either as a string or a number depending on the program.
Python Statements
- Python uses brackets (
()
), braces ({}
), and parentheses ([]
). - Python executes statements sequentially.
Interactive mode
Interactive mode
is when Python executes statements as soon as they're entered.
Studying That Suits You
Use AI to generate personalized quizzes and flashcards to suit your learning preferences.