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. End header line.
/
print
except
:
2. sets the file's current position
str
>>
file.seek()
=
3. prints its parameter to the console
=
if
print()
4. modulus AND assignment operator
input()
abs(a)
%=
round()
5. A logical operator which compares two operands and produces True if they are equal and False otherwise
==
=
readline
#
6. Greater than symbol
&
*write(stuff)
>
append()
7. Symbol to multiply things
del
assignment
*
<<
8. Reads the contents of the file you can assign the result to a variable.
*read
argv
=
if
9. A boolean operator that takes two strings and returns True if the first appears as a substring in the second.
len()
-=
in
print
10. This keyword begins the simplest form of a conditional statement.
if
str()
print()
~
11. The keyword beginning a header that will create a new function.
def
print
%=
~
12. absolute value
abs(a)
def
#
>>
13. Symbol to divide by the number to the right of the symbol
in
+
if
/
14. Symbol to multiply things
write
floating point number
*
~
15. add AND assignment operator
abs(a)
*
*
+=
16. adds an item to a list
*=
%s
append()
<
17. Command to print to the screen
argv
|
print
+
18. inserts an item inside a list at a certain index
continue
try
*readline
insert()
19. Function to open or read a file
%d
open()
and
~
20. Modulus operator. It's the remainder after division
.py
%
<
+=
21. single line comment
<<
and
==
#
22. unction to read one line of a file
n
else
truncate
readline
23. Evaluates to true if it does not finds a variable in the specified sequence and false otherwise. x not in y - here not in results in a 1 if x is a member of sequence y.
argv
int
#
not in
24. subtract AND assignment operator
if
del
-=
for
25. A built-in function that converts integers and strings to floating-point numbers.
break
float
*readline
=
26. A keyword that does nothing but fill space to indicate code which will be written later.
if
pass
*write(stuff)
>=
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
/=
^
else
*read
28. The keyword beginning a header that will create a loop.
%r
read
a%b
for
29. Where the parameters go. A necessary punctuation after any function even if it's empty.
.py
read
/=
()
30. This keyword in the body of a conditional - gives an alternative execution.
&
open()
*truncate
else
31. A logical operator which returns a value of True if either of the conditions is true.
or
format string
open()
truncate
32. This keyword begins a header for a body that repeats until the condition is no longer true.
while
read
len()
class
33. Binary Ones Complement Operator is unary and has the efect of 'flipping' bits. (~a ) will give -60 which is 1100 0011
a//b
-
>
~
34. This statement exits a function. The remaining lines of the function are not executed.
return
<<
file.write(stuff)
is
35. Greater than or equal symbol.
&
close
>=
len()
36. A statement that ends the current iteration of a loop but continues looping.
+
a%b
read
continue
37. Symbol to add things together
=
:
and
+
38. unction to read one line of a file
readline
math.sqrt(a)
>=
==
39. modulo
a%b
input()
close
for
40. A statement that displays a value on the screen.
print
not
==
a**b
41. Symbol to add things together
file.truncate()
+
while
%s
42. Empties the file - watch out if you care about the file.
print()
*truncate
return
#
43. multiply AND assignment operator
/
*=
str
*truncate
44. subtract AND assignment operator
file.write(stuff)
file.truncate()
floating point number
-=
45. adds an item to a list
format string
()
append()
close
46. Adds something to a variable
while
=
a**b
readline
47. Prints a string to the screen which is a signed decimal.
==
%d
Variables
/=
48. floor division
a//b
not in
write
continue
49. exponent AND assignment operator
**=
~
=
else
50. 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).
*read
is not
>=
<
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