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. Symbol to divide by the number to the right of the symbol
/=
/
**=
*
2. add AND assignment operator
math.sqrt(a)
+=
round()
str()
3. Writes stuff to the file.
=
else
*write(stuff)
a//b
4. Symbol used to create comments
*=
#
truncate
str()
5. assignment operator
abs(a)
=
print()
#
6. The keyword beginning a header that will create a loop.
argument variable
&
insert()
for
7. subtract AND assignment operator
del
%
-=
int()
8. exponentiation
a**b
%s
#
elif (Else if)
9. This keyword begins the simplest form of a conditional statement.
n
:
if
Variables
10. Binary Ones Complement Operator is unary and has the efect of 'flipping' bits. (~a ) will give -60 which is 1100 0011
*=
~
a**b
class
11. A logical operator which negates an expression so that it returns a value of True if the expression is false.
int()
#
>=
not
12. A statement that ends the current iteration of a loop but continues looping.
def
==
and
continue
13. Function to open or read a file
^
print()
argv
open()
14. Symbol to subtract things from each other
try
-
print
append()
15. floor division AND assignment operator
>>
read
//=
return
16. Function to write something to a file
read
>
write
#
17. Called Logical AND operator. If both the operands are true then then condition becomes true. (a and b) is true.
file.truncate()
and
a%b
is
18. This keyword attempts to do something that would cause the program to crash if it were not for this statement.
%=
raise
argv
try
19. The extension for Python scripts
else
%=
#
.py
20. Adds a new line character
n
is not
>
not
21. A boolean operator that takes two strings and returns True if the first appears as a substring in the second.
*truncate
in
%d
del
22. Function to read the contents of a file
read
.py
truncate
write
23. multiply AND assignment operator
*truncate
%
*=
==
24. The keyword beginning a header that will create a loop.
*=
input()
in
for
25. deletes an item from a list
del
def
<=
if
26. A logical operator which compares two operands and produces True if they are equal and False otherwise
write
del
==
or
27. A logical operator which requires two expressions to both be true.
//=
print
del
and
28. Prints a string to the screen which is a signed decimal.
>
*=
%d
*=
29. Symbol to add things together
<<
&
read
+
30. square root
math.sqrt(a)
<
abs(a)
%
31. Symbol to multiply things
print
def
*
truncate
32. Adds a new line character
file.write(stuff)
n
<
try
33. subtract AND assignment operator
%=
-=
*=
insert()
34. square root
math.sqrt(a)
str
float
and
35. modulo
%
=
a%b
str
36. Reads the contents of the file you can assign the result to a variable.
*read
()
print
else
37. This keyword begins a header for a body that repeats until the condition is no longer true.
while
-
=
continue
38. Modulus operator. It's the remainder after division
%
read
del
for
39. Function to open or read a file
len()
|
-=
open()
40. This keyword in the body of a conditional - gives an alternative execution.
input()
*truncate
else
>
41. prints its parameter to the console
print()
=
truncate
argument variable
42. An operator that removes a value from a list.
truncate
%r
format string
del
43. Command to print to the screen
print
a%b
open()
input()
44. modulo
format string
+
a%b
=
45. Symbol used to create comments
#
del
len()
def
46. adds an item to a list
<<
a%b
append()
*
47. Empties the file - watch out if you care about the file.
/=
:
*truncate
%s
48. turns an object into a string
str()
*read
elif (Else if)
>=
49. A keyword that does nothing but fill space to indicate code which will be written later.
pass
round()
def
>=
50. writes stuff to the file
%
*truncate
is not
file.write(stuff)
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