stud
bud
Sign up
Log in
Home
Library
Explore
SAT
More
Python - The Beginning Flashcards | StudBud
Explore
/
Python - The Beginning
Python - The Beginning
40 terms
·
StudBud Administration
·
60 plays
Imported from external platform
Flashcards
40 cards
F
Practice quiz
P
Host live
L
Questions
40
Answers
1
What is the purpose of using constants in Python?
To store temporary data that can be modified during program execution.
To define values that should not be changed for clarity and readability
To perform mathematical calculations.
To declare variables with changing values.
2
______ is a logical operators in Python.
>=
and
= =
in
3
Keywords can be used for other purposes.
False
True
4
Constants in Python...
Can technically change but shouldn't.
Can never change and will give the programmer an error if they try.
5
What are named units?
Operator's
Keywords
Naming
Identifires
6
In python what is the default type of input data taken using input() function?
List
Integer
String
Float
7
Python supports both Object-oriented language and Procedural oriented language
False
True
8
What is the Python assignment operators used in this program :
==
=
!=
>=
9
Find the odd one
if, elif
And, Or
True, False
for, while
10
which of the following contributed in the inventing PYTHON PROGRAMING LANGUAGE
Modula-3
ABC language
None of the above
Both a and b
11
Indentation in python is
None of the above
Optional
Extremely important
Not important at all
12
Find the false statement about identifiers
No special charecters are allowed except underscore
It must begin with alphabets or underscores
Keywords must not be used to nane a variable
It can begin with numerics
13
You can save your program in shell mode
True
False
14
What is the purpose of the -Output- function in Python?
To display output on the console.
It assigns a value to a variable.
It sends images to the printer.
It takes user input from the console.
15
The 'and' operator in Python returns true if both operands are true.
True
False
16
>=, <=, and += are logical operators in Python
False
True
17
In Shell mode, only single commands can be executed...
False
True
18
What are logical operators in python?
Logical operators are used to make if statements
Logical operators are used to create compound boolean expressions
19
What are examples of
operands
in Python?
and, or, not
x, y, z, 1, 2, 3
&&, ||, !
==, !=, <, >, <=, >=
20
Operators in Python. Hierarchy
() Parentheses
, comma
? interrogation
! exclamation
21
What is the output function in python?
print
show
ShOw
PRINT
22
Comments in Python
Exclamation mark
Hash sign #
23
The smallest individual unit is?
Character set
Functions
Tokens
Coding
24
The best description of the Python programing language, is
The Adaptable All-Rounder
The Web’s Language
Power and Performance
None of the above
25
Python is platform _____ language
Dependent
Indipendent
26
Fing the invalid identifier.
_@_2_a=25
_A=20
A=20
_2_A=45
27
Which are not operators in Python
*
?
/
+
28
Which of the following operator in python performs exponential power calculation on operands?
//
%
**
//
29
The input() function in Python will
give you feedback based on your response
do nothing
allow you to collect data from the user
display/output text on your screen
30
There are 7 Logical Operators in Python Programming.
True
False
31
Student_name's=input("Enter name:")
True
False
32
Use of operators in Python
To tell the program to stop and wait for the user to key in the data.
Used for developing websites and software, task automation, etc.
Symbols that designate that some sort of computation should be performed.
Are used to represent real numbers and are written with a decimal point.
33
In Python IDLE shell mode how do you run a program?
F5
F4
F9
F6
34
definition of logical operators in python?
is the operator that is used to assign values to variables
compares the values of two operands and returns True or False
statement that can either be true or false
operators that are used to perform mathematical operations like addition
35
If two operands are positive, what is the function of // operator in Python?
Finding remainder of division operation
Finding quotient of division operation
Returns the whole number part of quotient
Finding quotient and rounding it to the next whole number
36
Can we write our programs in the Python 'Shell' mode?
Yes
I love Bananas, they're yellow
Maybe, maybe not!
No
37
Select operators in Python?
Arithmetic (+, -, *, /)
Relational (>,<=,==)
Dictionary, set
Logic (and, or)
38
Python Programing language was devaloped by
Dennis Ritchie
IBM
Sun Mircosystems
Guido Van Rossum
39
All keywords in python are?
none of these
upper case
capatalized
lower case
40
Which one is having a special meaning to the language interpreter
Keywords
Tokens
Operator's
Identifiers