SUBJECTS
|
BROWSE
|
CAREER CENTER
|
POPULAR
|
JOIN
|
LOGIN
Business Skills
|
Soft Skills
|
Basic Literacy
|
Certifications
About
|
Help
|
Privacy
|
Terms
|
Email
Search
Test your basic knowledge |
Basic Python Programming
Start Test
Study First
Subject
:
it-skills
Instructions:
Answer 50 questions in 15 minutes.
If you are not ready to take this test, you can
study here
.
Match each statement with the correct term.
Don't refresh. All questions and answers are randomly picked and ordered every time you load a test.
This is a study tool. The 3 wrong answers for each question are randomly chosen from answers to other questions. So, you might find at times the answers obvious, but you will see it re-enforces your understanding as you take the test each time.
1. square root
in
del
math.sqrt(a)
#
2. Adds a new line character
write
>
class
n
3. A logical operator which negates an expression so that it returns a value of True if the expression is false.
n
floating point number
-=
not
4. Function to write something to a file
write
math.sqrt(a)
a**b
%=
5. square root
>
*write(stuff)
math.sqrt(a)
Variables
6. A statement that ends the current iteration of a loop but continues looping.
continue
:
len()
*write(stuff)
7. Adds something to a variable
str()
len()
insert()
=
8. floor division AND assignment operator
except
=
//=
-=
9. A built-in function that converts its argument to a string.
elif (Else if)
str
a//b
10. Prints a string to the screen which is a signed decimal.
&
%d
*write(stuff)
while
11. sets the file's current position
>>
file.seek()
write
%=
12. A statement that breaks out of a loop.
%
del
break
()
13. assignment operator
try
def
=
float
14. single line comment
/
#
()
file.truncate()
15. Evaluates to false if the variables on either side of the operator point to the same object and true otherwise. x is not y - here is not results in 1 if id(x) is not equal to id(y).
is not
round()
//=
16. exponentiation
a**b
**=
round()
return
17. Less than symbol
close
<
format string
-=
18. inserts an item inside a list at a certain index
insert()
#
append()
pass
19. Create a variable.
%d
=
elif (Else if)
>>
20. unction to read one line of a file
print()
=
readline
write
21. The extension for Python scripts
write
.py
or
*readline
22. A built-in function that takes any value and converts it to an integer if possible - or complains otherwise.
&
~
int
~
23. Writes stuff to the file.
if
<<
*write(stuff)
close
24. ,multi-line comment hard-code,Fix (data or parameters) in a program in such a way that they cannot easily be altered by the user.
#
int()
return
25. deletes an item from a list
int()
del
*truncate
a**b
26. Argument variable
and
argv
input()
*readline
27. Binary XOR Operator copies the bit if it is set in one operand but not both. (a ^ b) will give 49 which is 0011 0001
print()
int
>>
^
28. Function to read the contents of a file
read
or
/=
Variables
29. This keyword in the body of a conditional - gives an alternative execution.
else
in
//=
>
30. The keyword beginning a header that will create a new function.
<
()
def
math.sqrt(a)
31. Binary OR Operator copies a bit if it exists in eather operand. (a | b) will give 61 which is 0011 1101
%s
for
argument variable
|
32. Function to empty the contents of a file - no recovery is possible
truncate
==
is
file.seek()
33. Symbol used to create comments
is
/=
#
^
34. turns an object into a string
=
str()
#
*
35. Less than or equal to symbol
return
=
<=
continue
36. divide AND assignment operator
/=
abs(a)
%=
print
37. assignment operator
math.sqrt(a)
=
<<
file.seek()
38. adds an item to a list
*write(stuff)
~
append()
-
39. add AND assignment operator
%d
#
#
+=
40. inserts an item inside a list at a certain index
int()
print
insert()
a%b
41. Symbol to subtract things from each other
*
len()
-
%=
42. Prints a string to the screen which will be Unicode.
%s
math.sqrt(a)
file.truncate()
*readline
43. asks the user for a response and returns that response
file.write(stuff)
floating point number
input()
write
44. Symbol to divide by the number to the right of the symbol
round()
/
print()
readline
45. modulus AND assignment operator
%=
&
raise
int()
46. The extension for Python scripts
<=
str()
.py
or
47. Create a variable.
~
=
int()
:
48. Prints a string to the screen which will be Unicode.
<=
<=
n
%s
49. modulus AND assignment operator
|
=
/=
%=
50. This keyword begins the simplest form of a conditional statement.
a**b
if
append()
*truncate