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. assignment operator
truncate
class
=
not in
2. absolute value
round()
abs(a)
<<
==
3. Adds a new line character
print
close
n
#
4. Symbol to add things together
^
+
file.write(stuff)
^
5. This keyword begins the simplest form of a conditional statement.
if
truncate
<<
*
6. rounds a number to the number of decimal points you choose
math.sqrt(a)
break
round()
:
7. square root
-=
abs(a)
print
math.sqrt(a)
8. Binary Ones Complement Operator is unary and has the efect of 'flipping' bits. (~a ) will give -60 which is 1100 0011
=
&
for
~
9. returns the length of a string (number of characters)
len()
if
math.sqrt(a)
format string
10. A statement that assigns a value to a variable.
*truncate
assignment
else
/
11. Symbol used to create comments
*truncate
#
|
if
12. The keyword beginning a header that will create a new function.
^
def
int()
%d
13. Adds a new line character
n
**=
|
a%b
14. End header line.
%r
math.sqrt(a)
str
:
15. multiply AND assignment operator
not
%r
for
*=
16. divide AND assignment operator
else
a%b
/=
else
17. exponentiation
//=
return
a**b
#
18. Argument variable
argv
|
^
round()
19. floor division
a//b
*
print
:
20. sets the file's current position
write
print()
file.seek()
int()
21. A boolean operator that takes two strings and returns True if the first appears as a substring in the second.
round()
=
in
a//b
22. A statement that displays a value on the screen.
<
print
/=
str
23. Symbol to subtract things from each other
argument variable
%d
print()
-
24. subtract AND assignment operator
%s
()
-=
int
25. subtract AND assignment operator
-=
%=
>
#
26. exponentiation
insert()
a**b
print
Variables
27. deletes an item from a list
del
=
+=
input()
28. Greater than or equal symbol.
write
^
>=
file.write(stuff)
29. Binary OR Operator copies a bit if it exists in eather operand. (a | b) will give 61 which is 0011 1101
-
math.sqrt(a)
open()
|
30. Less than symbol
del
<
+
=
31. This keyword in the body of a conditional - gives an alternative execution.
argv
*read
else
=
32. Modulus operator. It's the remainder after division
%
file.readline()
argv
round()
33. Function to write something to a file
int
write
argv
del
34. Holds the value of something - e.g. oh_hi = 4 where oh_hi is the variable.
%s
==
Variables
%r
35. A statement that ends the current iteration of a loop but continues looping.
<<
break
continue
#
36. reads just one line of a text file & keeps track of where in the file you're at
Variables
file.readline()
insert()
/=
37. Less than or equal to symbol
<=
a//b
*truncate
-=
38. prints its parameter to the console
print()
a//b
else
float
39. single line comment
#
<
/=
*read
40. A logical operator which requires two expressions to both be true.
*truncate
and
>>
=
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
elif (Else if)
continue
^
a//b
42. inserts an item inside a list at a certain index
a**b
and
is
insert()
43. Argument variable
write
argv
Variables
while
44. unction to read one line of a file
class
insert()
readline
<
45. Holds the value of something - e.g. oh_hi = 4 where oh_hi is the variable.
>=
.py
pass
Variables
46. Binary Right Shift Operator. The left operands value is moved right by the number of bits specified by the right operand. a >> 2 will give 15 which is 0000 1111
/=
%d
append()
>>
47. This keyword in the body of a conditional allows chained conditionals.
raise
elif (Else if)
>>
<
48. Function to open or read a file
%r
open()
.py
input()
49. floor division AND assignment operator
//=
/
=
and
50. The keyword beginning a header that will create a loop.
()
=
%s
for
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