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. This keyword in the body of a conditional - gives an alternative execution.
def
else
or
a**b
2. Less than or equal to symbol
round()
<<
<=
.py
3. 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
%s
round()
open()
^
4. modulo
open()
*=
a%b
readline
5. multiply AND assignment operator
*=
break
for
6. Where the parameters go. A necessary punctuation after any function even if it's empty.
readline
append()
()
:
7. This keyword in the body of a conditional - gives an alternative execution.
Variables
else
/
close
8. Greater than or equal symbol.
>=
raise
is not
==
9. An operator that removes a value from a list.
a//b
del
=
%d
10. Holds the value of something - e.g. oh_hi = 4 where oh_hi is the variable.
=
&
Variables
file.truncate()
11. This keyword begins the simplest form of a conditional statement.
-=
and
#
if
12. assignment operator
#
elif (Else if)
=
write
13. Symbol used to create comments
=
#
continue
str
14. inserts an item inside a list at a certain index
if
insert()
%
math.sqrt(a)
15. Symbol used to create comments
<=
close
open()
#
16. subtract AND assignment operator
abs(a)
-=
continue
%s
17. unction to read one line of a file
//=
float
readline
+
18. Symbol to subtract things from each other
//=
-
^
pass
19. Less than symbol
file.truncate()
<
^
del
20. Prints a string to the screen which is a signed decimal.
%d
abs(a)
a//b
is
21. floor division AND assignment operator
==
//=
else
abs(a)
22. Argument variable
/=
read
append()
argv
23. turns an object into an integer
+=
*write(stuff)
int()
//=
24. Symbol to add things together
%
if
+
continue
25. Symbol to divide by the number to the right of the symbol
round()
/
file.seek()
:
26. Function to empty the contents of a file - no recovery is possible
del
in
truncate
+=
27. turns an object into a string
except
str()
del
while
28. This keyword begins a header for a body that repeats until the condition is no longer true.
>>
len()
*write(stuff)
while
29. A logical operator which compares two operands and produces True if they are equal and False otherwise
==
int
truncate
%=
30. Argument variable
argv
**=
#
/=
31. Create a variable.
*
=
truncate
assignment
32. returns the length of a string (number of characters)
break
~
len()
+=
33. Function to read the contents of a file
raise
#
read
%r
34. single line comment
*
()
-=
#
35. inserts an item inside a list at a certain index
-=
file.readline()
insert()
append()
36. A built-in function that converts its argument to a string.
str
file.seek()
or
str()
37. A statement that ends the current iteration of a loop but continues looping.
continue
Variables
not in
%r
38. 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.
int()
==
not in
n
39. Empties the file - watch out if you care about the file.
*truncate
class
<<
file.write(stuff)
40. Symbol to add things together
+=
+
else
len()
41. 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
<
=
while
^
42. square root
floating point number
math.sqrt(a)
raise
%=
43. turns an object into an integer
#
int()
%d
%
44. Symbol to multiply things
int
write
*
argument variable
45. Reads just one line of a text file.
len()
/
=
*readline
46. rounds a number to the number of decimal points you choose
round()
insert()
argument variable
%d
47. floor division
def
not in
open()
a//b
48. Called Logical AND operator. If both the operands are true then then condition becomes true. (a and b) is true.
/
**=
and
int()
49. Adds something to a variable
>
assignment
=
#
50. exponent AND assignment operator
**=
print
print()
close
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