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. Called Logical AND operator. If both the operands are true then then condition becomes true. (a and b) is true.
#
and
=
<<
2. 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.
in
round()
not in
round()
3. Modulus operator. It's the remainder after division
%
int()
a//b
>
4. modulo
a%b
write
Variables
raise
5. Binary Ones Complement Operator is unary and has the efect of 'flipping' bits. (~a ) will give -60 which is 1100 0011
math.sqrt(a)
file.write(stuff)
#
~
6. End header line.
elif (Else if)
:
a**b
a**b
7. Evaluates to false if the variables on either side of the operator point to the same object and true otherwise. x is not y - here is not results in 1 if id(x) is not equal to id(y).
&
is not
a**b
else
8. 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
==
else
print
^
9. Argument variable
n
and
raise
argv
10. Prints a string to the screen which will be Unicode.
a**b
:
Variables
%s
11. A string that begins with the % symbol and contains a sequence of printable characters and format specifiers that determine how values output should look.
-
>=
%
format string
12. turns an object into an integer
&
int()
<
+
13. prints its parameter to the console
*read
print()
%r
=
14. Prints a string to the screen which is a signed decimal.
and
%d
if
%s
15. This statement causes an exception.
%r
*readline
raise
str()
16. exponent AND assignment operator
|
**=
break
17. deletes an item from a list
=
del
.py
//=
18. divide AND assignment operator
()
-
/=
if
19. 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
<<
and
file.truncate()
^
20. subtract AND assignment operator
for
^
*=
-=
21. Symbol to subtract things from each other
argv
-
elif (Else if)
pass
22. Function to empty the contents of a file - no recovery is possible
<
argv
truncate
in
23. End header line.
>
>>
=
:
24. Symbol to multiply things
%d
*
-
a//b
25. Symbol to add things together
-=
not in
+
file.write(stuff)
26. Symbol to divide by the number to the right of the symbol
/
>
%r
-
27. adds an item to a list
append()
%
format string
a//b
28. 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
>
print
29. Function to read the contents of a file
a%b
%s
file.truncate()
read
30. square root
math.sqrt(a)
def
del
<=
31. Holds the value of something - e.g. oh_hi = 4 where oh_hi is the variable.
print
in
Variables
32. Turns a line into a comment instead of executable code.
=
>=
%d
#
33. Function to read the contents of a file
read
//=
in
else
34. modulo
+=
truncate
a%b
*
35. Argument variable
#
file.readline()
try
argv
36. assignment operator
argv
=
%s
<=
37. A statement that assigns a value to a variable.
assignment
<<
<=
a//b
38. Empties the file - watch out if you care about the file.
read
*truncate
and
%
39. Prints a string to the screen which is converted using repr()
-=
Variables
~
%r
40. Symbol to subtract things from each other
^
-
argv
*readline
41. A keyword that does nothing but fill space to indicate code which will be written later.
len()
#
pass
argument variable
42. add AND assignment operator
elif (Else if)
%r
a**b
+=
43. multiply AND assignment operator
class
round()
def
*=
44. unction to read one line of a file
abs(a)
abs(a)
readline
file.write(stuff)
45. Writes stuff to the file.
>>
abs(a)
*write(stuff)
file.readline()
46. A statement that breaks out of a loop.
break
open()
a**b
#
47. modulus AND assignment operator
//=
<
format string
%=
48. inserts an item inside a list at a certain index
insert()
>=
^
write
49. empties the file
file.truncate()
math.sqrt(a)
except
else
50. Prints a string to the screen which will be Unicode.
+=
class
%s
input()
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