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 multiply things
int()
+
*
read
2. Function to empty the contents of a file - no recovery is possible
truncate
=
%
input()
3. Modulus operator. It's the remainder after division
:
%d
del
%
4. rounds a number to the number of decimal points you choose
>=
append()
round()
n
5. A keyword that does nothing but fill space to indicate code which will be written later.
readline
pass
is not
len()
6. An operator to check whether two variables refer to the same object.
int
is
round()
else
7. exponentiation
or
>=
+=
a**b
8. adds an item to a list
append()
raise
return
int()
9. Function to read the contents of a file
readline
argv
readline
read
10. Reads just one line of a text file.
#
abs(a)
*readline
assignment
11. Modulus operator. It's the remainder after division
<<
%s
and
%
12. Less than symbol
readline
*read
^
<
13. single line comment
<=
#
for
raise
14. Function to write something to a file
-
del
==
write
15. Function to write something to a file
#
write
-
~
16. Called Logical AND operator. If both the operands are true then then condition becomes true. (a and b) is true.
insert()
continue
and
>
17. Symbol used to create comments
#
str
print
%s
18. Adds a new line character
str
n
except
math.sqrt(a)
19. floor division AND assignment operator
//=
a//b
input()
/
20. Holds the value of something - e.g. oh_hi = 4 where oh_hi is the variable.
*write(stuff)
if
while
Variables
21. A logical operator which compares two operands and produces True if they are equal and False otherwise
==
a%b
return
//=
22. The keyword beginning a header that will create a new function.
file.readline()
|
def
file.write(stuff)
23. Argument variable
/
>=
argv
file.truncate()
24. A statement that displays a value on the screen.
class
%=
print
print()
25. Less than symbol
+=
<
input()
pass
26. Binary AND Operator copies a bit to the result if it exists in both operands. (a & b) will give 12 which is 0000 1100
read
*readline
&
n
27. Where the parameters go. A necessary punctuation after any function even if it's empty.
()
.py
for
Variables
28. A string that begins with the % symbol and contains a sequence of printable characters and format specifiers that determine how values output should look.
>
argv
format string
elif (Else if)
29. This keyword begins a header for a body that repeats until the condition is no longer true.
^
while
or
append()
30. Symbol to divide by the number to the right of the symbol
if
/
a%b
open()
31. Adds something to a variable
del
.py
()
=
32. This keyword in the body of a conditional - gives an alternative execution.
.py
else
int
%d
33. modulus AND assignment operator
%=
:
write
round()
34. subtract AND assignment operator
n
-=
append()
>
35. 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
#
^
if
readline
36. absolute value
input()
close
abs(a)
print
37. Prints a string to the screen which is a signed decimal.
n
%d
%r
int()
38. 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
=
.py
del
39. writes stuff to the file
//=
<=
file.write(stuff)
%=
40. sets the file's current position
math.sqrt(a)
file.seek()
.py
float
41. Less than or equal to symbol
<=
int
=
file.truncate()
42. 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
is not
:
str()
<<
43. A built-in function that takes any value and converts it to an integer if possible - or complains otherwise.
input()
int
and
+
44. add AND assignment operator
argument variable
+=
del
truncate
45. multiply AND assignment operator
*=
|
len()
argument variable
46. A statement that breaks out of a loop.
input()
break
<=
return
47. inserts an item inside a list at a certain index
insert()
=
+
or
48. square root
if
round()
%
math.sqrt(a)
49. Adds a new line character
and
n
else
Variables
50. Greater than or equal symbol.
for
truncate
>=
()
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