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. divide AND assignment operator
in
/=
:
+=
2. Where the parameters go. A necessary punctuation after any function even if it's empty.
round()
#
()
continue
3. Argument variable
argv
%=
%=
math.sqrt(a)
4. This keyword attempts to do something that would cause the program to crash if it were not for this statement.
>>
assignment
try
not in
5. Less than symbol
%r
str()
<
write
6. floor division
print
a//b
*read
file.truncate()
7. Turns a line into a comment instead of executable code.
#
==
return
.py
8. prints its parameter to the console
>
print()
argument variable
=
9. Prints a string to the screen which is converted using repr()
str()
break
-
%r
10. A logical operator which negates an expression so that it returns a value of True if the expression is false.
int()
not
Variables
>=
11. Command to print to the screen
&
#
print
if
12. Binary Left Shift Operator. The left operands value is moved left by the number of bits specified by the right operand. a << 2 will give 240 which is 1111 0000
assignment
write
<<
a//b
13. The keyword beginning a header that will create a loop.
>
*
readline
for
14. Less than or equal to symbol
for
<=
#
%s
15. Argument variable
/
class
except
argv
16. floor division AND assignment operator
>>
/=
%r
//=
17. exponentiation
<
is not
a**b
#
18. add AND assignment operator
if
read
is
+=
19. The keyword beginning a header that will create a loop.
a**b
=
argv
for
20. Function to write something to a file
readline
return
write
class
21. Prints a string to the screen which is converted using repr()
n
print()
%r
&
22. Called Logical AND operator. If both the operands are true then then condition becomes true. (a and b) is true.
append()
and
%
close
23. Symbol to subtract things from each other
.py
/=
class
-
24. turns an object into a string
input()
round()
str()
-=
25. ,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.
<
=
a**b
26. modulus AND assignment operator
%=
|
+=
&
27. A statement that displays a value on the screen.
%d
print
floating point number
-=
28. The extension for Python scripts
.py
close
int()
n
29. subtract AND assignment operator
%=
>>
return
-=
30. Adds a new line character
n
-=
|
a**b
31. Reads just one line of a text file.
*readline
del
/
is
32. A built-in function that takes any value and converts it to an integer if possible - or complains otherwise.
int
not in
close
-
33. inserts an item inside a list at a certain index
^
insert()
*readline
len()
34. A logical operator which compares two operands and produces True if they are equal and False otherwise
readline
==
>>
read
35. The extension for Python scripts
|
write
str()
.py
36. turns an object into a string
-=
str()
break
readline
37. A logical operator which compares two operands and produces True if they are equal and False otherwise
file.truncate()
Variables
file.write(stuff)
==
38. modulus AND assignment operator
int
*
write
%=
39. Function to write something to a file
def
write
-=
floating point number
40. absolute value
abs(a)
*=
Variables
=
41. Writes stuff to the file.
print
*read
abs(a)
*write(stuff)
42. Prints a string to the screen which will be Unicode.
%s
//=
a//b
int()
43. Greater than or equal symbol.
>=
-
.py
and
44. asks the user for a response and returns that response
input()
*truncate
file.write(stuff)
assignment
45. add AND assignment operator
round()
elif (Else if)
+=
abs(a)
46. A logical operator which requires two expressions to both be true.
and
=
~
assignment
47. A statement that breaks out of a loop.
int
>=
and
break
48. Prints a string to the screen which will be Unicode.
round()
.py
.py
%s
49. Symbol to multiply things
-
*
close
=
50. Binary AND Operator copies a bit to the result if it exists in both operands. (a & b) will give 12 which is 0000 1100
<
if
&
^