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. modulo
a%b
argv
in
==
2. A string that begins with the % symbol and contains a sequence of printable characters and format specifiers that determine how values output should look.
format string
%d
==
round()
3. subtract AND assignment operator
readline
-=
#
*truncate
4. Function to open or read a file
%r
%
Variables
open()
5. inserts an item inside a list at a certain index
str
*readline
insert()
==
6. square root
math.sqrt(a)
<=
is
if
7. asks the user for a response and returns that response
%s
input()
format string
%
8. A built-in function that converts integers and strings to floating-point numbers.
print
%d
float
-
9. multiply AND assignment operator
del
*=
close
=
10. Greater than or equal symbol.
del
/
continue
>=
11. Function to read the contents of a file
int
write
()
read
12. This keyword in the body of a conditional - gives an alternative execution.
elif (Else if)
def
else
del
13. floor division
*=
while
%=
a//b
14. Symbol to add things together
del
<<
+=
+
15. A logical operator which negates an expression so that it returns a value of True if the expression is false.
-=
%
not
elif (Else if)
16. Function to read the contents of a file
if
read
*read
*
17. turns an object into an integer
int()
not in
in
print()
18. Reads just one line of a text file.
*readline
>
math.sqrt(a)
float
19. floor division AND assignment operator
//=
len()
*=
or
20. rounds a number to the number of decimal points you choose
+
round()
floating point number
float
21. A statement that assigns a value to a variable.
|
def
in
assignment
22. square root
pass
**=
>>
math.sqrt(a)
23. deletes an item from a list
*read
n
%r
del
24. 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
/
write
-=
<<
25. divide AND assignment operator
>
print
/=
str()
26. This keyword creates a new class object which is a user-defined type - like a factory for creating objects.
class
=
file.write(stuff)
input()
27. absolute value
abs(a)
%d
is
|
28. The keyword beginning a header that will create a loop.
*truncate
not in
input()
for
29. Symbol to subtract things from each other
-
*truncate
Variables
math.sqrt(a)
30. Prints a string to the screen which is a signed decimal.
%d
assignment
*write(stuff)
del
31. Create a variable.
close
read
=
32. Command to print to the screen
print
int()
==
n
33. Symbol used to create comments
print
#
-
*write(stuff)
34. modulo
a%b
float
*=
argv
35. A data type for representing numbers with fractional values.
math.sqrt(a)
floating point number
-=
~
36. floor division AND assignment operator
math.sqrt(a)
is
for
//=
37. inserts an item inside a list at a certain index
return
*write(stuff)
insert()
%r
38. This keyword in the body of a conditional allows chained conditionals.
>>
else
open()
elif (Else if)
39. absolute value
==
abs(a)
open()
*write(stuff)
40. End header line.
%
else
:
<
41. Adds a new line character
print
n
a%b
a%b
42. Modulus operator. It's the remainder after division
float
&
%
file.seek()
43. single line comment
try
or
#
elif (Else if)
44. Binary AND Operator copies a bit to the result if it exists in both operands. (a & b) will give 12 which is 0000 1100
&
-
=
close
45. Where the parameters go. A necessary punctuation after any function even if it's empty.
~
%=
()
len()
46. Less than symbol
<
Variables
argument variable
**=
47. A boolean operator that takes two strings and returns True if the first appears as a substring in the second.
&
in
*=
else
48. An operator to check whether two variables refer to the same object.
//=
is
#
#
49. This keyword attempts to do something that would cause the program to crash if it were not for this statement.
del
n
==
try
50. 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
append()
//=
insert()
^