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. deletes an item from a list
del
#
()
>>
2. rounds a number to the number of decimal points you choose
close
round()
continue
=
3. prints its parameter to the console
Variables
%d
int
print()
4. The extension for Python scripts
.py
int()
readline
|
5. Function to read the contents of a file
<<
|
file.truncate()
read
6. 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.
.py
=
+=
in
7. adds an item to a list
int
>
is
append()
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
def
del
%
^
9. adds an item to a list
*read
append()
>=
%
10. A logical operator which negates an expression so that it returns a value of True if the expression is false.
insert()
if
not
format string
11. Function to open or read a file
/
open()
/
if
12. divide AND assignment operator
~
/=
else
str()
13. add AND assignment operator
+=
if
file.seek()
<<
14. Greater than or equal symbol.
>=
else
del
-
15. A boolean operator that takes two strings and returns True if the first appears as a substring in the second.
input()
^
argv
in
16. subtract AND assignment operator
not in
%d
+
-=
17. Greater than symbol
>>
>
print()
Variables
18. assignment operator
%s
append()
**=
=
19. Binary OR Operator copies a bit if it exists in eather operand. (a | b) will give 61 which is 0011 1101
*truncate
.py
**=
|
20. Argument variable
truncate
+=
#
argv
21. absolute value
|
is
abs(a)
file.write(stuff)
22. Holds the value of something - e.g. oh_hi = 4 where oh_hi is the variable.
//=
round()
Variables
*=
23. Create a variable.
*=
<
=
close
24. Modulus operator. It's the remainder after division
floating point number
=
%
/
25. asks the user for a response and returns that response
/
:
^
input()
26. add AND assignment operator
*truncate
break
insert()
+=
27. Where the parameters go. A necessary punctuation after any function even if it's empty.
or
in
()
<
28. Less than or equal to symbol
<=
return
and
abs(a)
29. turns an object into a string
a**b
/
str()
<<
30. Prints a string to the screen which is a signed decimal.
%d
print
=
%s
31. multiply AND assignment operator
raise
input()
+=
*=
32. Writes stuff to the file.
/
()
*write(stuff)
a%b
33. Less than symbol
=
<
str()
Variables
34. This statement causes an exception.
#
raise
print()
*
35. Command to print to the screen
print
str
len()
str()
36. This keyword creates a new class object which is a user-defined type - like a factory for creating objects.
readline
len()
len()
class
37. square root
math.sqrt(a)
^
>>
38. exponent AND assignment operator
and
int()
*truncate
**=
39. 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
class
math.sqrt(a)
40. A string that begins with the % symbol and contains a sequence of printable characters and format specifiers that determine how values output should look.
a**b
#
format string
readline
41. A built-in function that takes any value and converts it to an integer if possible - or complains otherwise.
|
in
~
int
42. turns an object into a string
argument variable
math.sqrt(a)
return
str()
43. modulo
if
print
a%b
=
44. inserts an item inside a list at a certain index
insert()
*write(stuff)
a**b
|
45. Prints a string to the screen which will be Unicode.
%s
%
/
=
46. Symbol used to create comments
#
>>
else
floating point number
47. Adds a new line character
<
n
not
return
48. A built-in function that converts its argument to a string.
==
str
close
>>
49. 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).
raise
#
is not
write
50. Function to write something to a file
%d
floating point number
write
>>
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