WorksheetsPython-basics
Total questions: 14
Worksheet time: 8mins
what function do we use to output something in python ?
output()
print()
cout()
println()
How many types of variables in python ?
3
4
6
5
("Hello this is my name" ) what type best describes this variable ?
char
int
String
float
(44.5 ) what is this variable type?
int
char
String
float
(1234567) what is this variable type ?
string
bool
int
char
(yes or no) , (true or false) what are these called ?
int
chat
bool
string
('m') what is this variable type ?
string
int
bool
char
How to make a comment in python?
//
/*
*/
#
my-car="red" Will this work or will give an error?
will work
give an error
will output blue
none of the above
1234=20 Will this work or give an error?
will work
will give an error
none of the above
123=10 Will python accept this or it will output an error?
python will accept it
python will output an error
M7="hi" Will python accept this or it will output an error?
python will accept this
python will output an error
print("my name is "+ "ahmed") will python accept this or it will result an error?
python will accept it
python will result an error
print("the sum of the equation is " + 7) Will python accept this or it will result an error?
python will accept it
python will result an error
