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. A logical operator which returns a value of True if either of the conditions is true.
>
/=
%=
or
2. Symbol to subtract things from each other
-
.py
print
>=
3. deletes an item from a list
if
/=
del
file.truncate()
4. square root
math.sqrt(a)
def
&
-
5. Less than or equal to symbol
str
Variables
is not
<=
6. adds an item to a list
append()
and
%r
argv
7. Adds something to a variable
=
in
while
#
8. unction to read one line of a file
**=
>
in
readline
9. empties the file
|
=
file.truncate()
append()
10. absolute value
abs(a)
.py
.py
print()
11. turns an object into a string
:
str()
except
&
12. Prints a string to the screen which is a signed decimal.
float
%d
Variables
truncate
13. Prints a string to the screen which will be Unicode.
%s
a**b
is
+=
14. Evaluates to true if it finds a variable in the specified sequence and false otherwise. x in y - here in results in a 1 if x is a member of sequence y.
in
append()
and
or
15. floor division AND assignment operator
<=
<=
//=
a**b
16. writes stuff to the file
/
file.write(stuff)
insert()
class
17. Binary OR Operator copies a bit if it exists in eather operand. (a | b) will give 61 which is 0011 1101
-=
%r
|
abs(a)
18. asks the user for a response and returns that response
^
-=
input()
Variables
19. Where the parameters go. A necessary punctuation after any function even if it's empty.
in
()
>=
and
20. modulo
a%b
:
insert()
=
21. Adds a new line character
<=
a**b
**=
n
22. Function to close a file - it will not be able to be used again unless the file is opened.
%=
close
*
try
23. Writes stuff to the file.
-=
pass
readline
*write(stuff)
24. Greater than or equal symbol.
readline
print()
read
>=
25. divide AND assignment operator
%r
.py
def
/=
26. Symbol used to create comments
while
n
open()
#
27. This variable holds the arguments you pass to your Python script when you run it. Then you unpack it in your script so you have variables you can work with.
%d
def
argument variable
except
28. Modulus operator. It's the remainder after division
if
%
#
<=
29. Argument variable
abs(a)
not in
argv
del
30. Less than symbol
#
if
<
31. subtract AND assignment operator
not
-=
a//b
print
32. Create a variable.
str
a**b
close
=
33. absolute value
abs(a)
format string
and
print
34. returns the length of a string (number of characters)
>>
in
len()
truncate
35. subtract AND assignment operator
<=
class
-=
<=
36. turns an object into an integer
Variables
%s
int()
floating point number
37. A built-in function that converts its argument to a string.
in
str
read
=
38. A statement that assigns a value to a variable.
and
*=
assignment
>>
39. Create a variable.
append()
round()
^
=
40. Greater than symbol
file.truncate()
int()
close
>
41. A boolean operator that takes two strings and returns True if the first appears as a substring in the second.
=
file.write(stuff)
not
in
42. This keyword in the body of a conditional - gives an alternative execution.
else
open()
del
<<
43. exponent AND assignment operator
**=
break
#
~
44. unction to read one line of a file
del
>
readline
*
45. Turns a line into a comment instead of executable code.
math.sqrt(a)
write
a**b
#
46. assignment operator
>=
=
file.truncate()
()
47. Where the parameters go. A necessary punctuation after any function even if it's empty.
()
while
<<
is not
48. The extension for Python scripts
%
.py
/=
print
49. This keyword begins the simplest form of a conditional statement.
for
if
open()
len()
50. This keyword attempts to do something that would cause the program to crash if it were not for this statement.
pass
int
*=
try
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