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. Function to write something to a file
n
/
~
write
2. subtract AND assignment operator
()
^
-=
in
3. turns an object into a string
is
str()
append()
4. Binary AND Operator copies a bit to the result if it exists in both operands. (a & b) will give 12 which is 0000 1100
%=
format string
:
&
5. Less than or equal to symbol
%d
<=
try
a%b
6. Binary Ones Complement Operator is unary and has the efect of 'flipping' bits. (~a ) will give -60 which is 1100 0011
insert()
del
==
~
7. inserts an item inside a list at a certain index
insert()
a//b
str()
()
8. Symbol used to create comments
#
open()
read
=
9. A logical operator which negates an expression so that it returns a value of True if the expression is false.
is
=
not
append()
10. 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
>=
**=
*readline
^
11. Function to read the contents of a file
%s
()
%d
read
12. Reads the contents of the file you can assign the result to a variable.
>=
<
input()
*read
13. 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
read
^
if
14. square root
<<
or
for
math.sqrt(a)
15. Argument variable
argv
n
close
%
16. assignment operator
=
*
argv
^
17. 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.
except
insert()
in
+
18. exponent AND assignment operator
close
del
#
**=
19. Symbol to divide by the number to the right of the symbol
in
/
class
^
20. unction to read one line of a file
&
+=
len()
readline
21. Holds the value of something - e.g. oh_hi = 4 where oh_hi is the variable.
def
*=
Variables
%s
22. Adds a new line character
raise
for
n
<
23. Binary OR Operator copies a bit if it exists in eather operand. (a | b) will give 61 which is 0011 1101
|
~
if
continue
24. inserts an item inside a list at a certain index
<<
insert()
while
=
25. Symbol to add things together
abs(a)
else
+
argument variable
26. Symbol to subtract things from each other
=
class
*
-
27. This keyword attempts to do something that would cause the program to crash if it were not for this statement.
len()
%d
argument variable
try
28. Symbol to multiply things
*
argument variable
def
>>
29. 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).
/
%=
def
is not
30. 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
()
del
<<
file.readline()
31. add AND assignment operator
=
+=
-=
and
32. The extension for Python scripts
insert()
>=
close
.py
33. Less than symbol
def
+
is not
<
34. This keyword begins a header for a body that repeats until the condition is no longer true.
%
while
#
<
35. This statement exits a function. The remaining lines of the function are not executed.
return
-
read
len()
36. Binary AND Operator copies a bit to the result if it exists in both operands. (a & b) will give 12 which is 0000 1100
%d
.py
math.sqrt(a)
&
37. A logical operator which compares two operands and produces True if they are equal and False otherwise
==
&
<
print
38. A logical operator which requires two expressions to both be true.
while
and
truncate
()
39. empties the file
Variables
file.truncate()
while
=
40. unction to read one line of a file
//=
file.truncate()
open()
readline
41. reads just one line of a text file & keeps track of where in the file you're at
*read
insert()
file.readline()
round()
42. Create a variable.
*
=
<
not in
43. Prints a string to the screen which is converted using repr()
%r
*=
while
()
44. floor division
not in
read
del
a//b
45. rounds a number to the number of decimal points you choose
*readline
round()
a**b
%=
46. exponentiation
read
file.truncate()
argument variable
a**b
47. floor division
:
close
a//b
insert()
48. Adds a new line character
round()
*write(stuff)
n
<
49. Where the parameters go. A necessary punctuation after any function even if it's empty.
()
file.write(stuff)
not
=
50. Symbol to divide by the number to the right of the symbol
print()
/
%d
print
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