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
/
^
math.sqrt(a)
a%b
2. This statement exits a function. The remaining lines of the function are not executed.
round()
*
return
>=
3. Create a variable.
print
|
class
=
4. Symbol to add things together
+
append()
insert()
del
5. Symbol to subtract things from each other
else
%d
-
while
6. Function to read the contents of a file
<
read
:
-
7. A keyword that does nothing but fill space to indicate code which will be written later.
if
pass
format string
>=
8. Symbol to divide by the number to the right of the symbol
/
insert()
^
readline
9. Function to open or read a file
print
open()
^
Variables
10. prints its parameter to the console
%r
==
print()
=
11. exponent AND assignment operator
**=
#
*=
*readline
12. Symbol to divide by the number to the right of the symbol
/
%
>
argv
13. 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
is
read
math.sqrt(a)
14. 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
^
#
.py
>>
15. Symbol used to create comments
+
%r
file.readline()
#
16. Command to print to the screen
print
continue
not
int()
17. An operator that removes a value from a list.
and
del
a**b
>>
18. Argument variable
%
*
a//b
argv
19. This keyword in the body of a conditional - gives an alternative execution.
print()
print()
else
<=
20. modulo
a%b
*readline
file.truncate()
<<
21. Reads just one line of a text file.
|
*readline
&
*
22. Adds a new line character
open()
~
del
n
23. A built-in function that takes any value and converts it to an integer if possible - or complains otherwise.
int
elif (Else if)
*
insert()
24. Adds something to a variable
*truncate
readline
=
a//b
25. Greater than symbol
&
/
%
>
26. Symbol to multiply things
*
int
()
*readline
27. floor division
assignment
<
a//b
a%b
28. Symbol used to create comments
.py
#
|
close
29. subtract AND assignment operator
&
def
floating point number
-=
30. A string that begins with the % symbol and contains a sequence of printable characters and format specifiers that determine how values output should look.
argument variable
=
format string
-=
31. Argument variable
<=
argv
a%b
%r
32. Holds the value of something - e.g. oh_hi = 4 where oh_hi is the variable.
-
argument variable
Variables
int()
33. modulo
a%b
str
continue
print
34. turns an object into an integer
*=
#
elif (Else if)
int()
35. Function to write something to a file
len()
write
=
and
36. Prints a string to the screen which is converted using repr()
>=
~
-=
%r
37. multiply AND assignment operator
*=
return
a%b
in
38. Binary OR Operator copies a bit if it exists in eather operand. (a | b) will give 61 which is 0011 1101
len()
%=
|
Variables
39. 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
^
not
int
#
40. Binary Right Shift Operator. The left operands value is moved right by the number of bits specified by the right operand. a >> 2 will give 15 which is 0000 1111
truncate
and
%s
>>
41. exponent AND assignment operator
%d
del
=
**=
42. Function to close a file - it will not be able to be used again unless the file is opened.
close
and
+=
input()
43. Turns a line into a comment instead of executable code.
=
write
#
/
44. A statement that displays a value on the screen.
print
a**b
if
not in
45. divide AND assignment operator
/=
a%b
**=
abs(a)
46. Modulus operator. It's the remainder after division
input()
a//b
file.readline()
%
47. floor division AND assignment operator
//=
*=
not in
/
48. Less than or equal to symbol
print
%
<=
%d
49. empties the file
<
truncate
file.truncate()
*=
50. This keyword in the body of a conditional - gives an alternative execution.
&
float
else
readline
Sorry!:) No result found.
Can you answer 50 questions in 15 minutes?
Let me suggest you:
Browse all subjects
Browse all tests
Most popular tests
Major Subjects
Tests & Exams
AP
CLEP
DSST
GRE
SAT
GMAT
Certifications
CISSP go to https://www.isc2.org/
PMP
ITIL
RHCE
MCTS
More...
IT Skills
Android Programming
Data Modeling
Objective C Programming
Basic Python Programming
Adobe Illustrator
More...
Business Skills
Advertising Techniques
Business Accounting Basics
Business Strategy
Human Resource Management
Marketing Basics
More...
Soft Skills
Body Language
People Skills
Public Speaking
Persuasion
Job Hunting And Resumes
More...
Vocabulary
GRE Vocab
SAT Vocab
TOEFL Essential Vocab
Basic English Words For All
Global Words You Should Know
Business English
More...
Languages
AP German Vocab
AP Latin Vocab
SAT Subject Test: French
Italian Survival
Norwegian Survival
More...
Engineering
Audio Engineering
Computer Science Engineering
Aerospace Engineering
Chemical Engineering
Structural Engineering
More...
Health Sciences
Basic Nursing Skills
Health Science Language Fundamentals
Veterinary Technology Medical Language
Cardiology
Clinical Surgery
More...
English
Grammar Fundamentals
Literary And Rhetorical Vocab
Elements Of Style Vocab
Introduction To English Major
Complete Advanced Sentences
Literature
Homonyms
More...
Math
Algebra Formulas
Basic Arithmetic: Measurements
Metric Conversions
Geometric Properties
Important Math Facts
Number Sense Vocab
Business Math
More...
Other Major Subjects
Science
Economics
History
Law
Performing-arts
Cooking
Logic & Reasoning
Trivia
Browse all subjects
Browse all tests
Most popular tests