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. Symbol to divide by the number to the right of the symbol
round()
^
-=
/
2. Function to empty the contents of a file - no recovery is possible
<
input()
&
truncate
3. Reads the contents of the file you can assign the result to a variable.
file.readline()
~
input()
*read
4. modulo
print()
a%b
a//b
**=
5. A statement that assigns a value to a variable.
file.truncate()
-
#
assignment
6. ,multi-line comment hard-code,Fix (data or parameters) in a program in such a way that they cannot easily be altered by the user.
/=
or
del
7. Greater than or equal symbol.
<
<=
file.truncate()
>=
8. 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
n
>>
*write(stuff)
a**b
9. Function to close a file - it will not be able to be used again unless the file is opened.
abs(a)
close
+=
raise
10. sets the file's current position
format string
str()
file.seek()
math.sqrt(a)
11. 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.
not
//=
:
in
12. Empties the file - watch out if you care about the file.
argv
*truncate
Variables
elif (Else if)
13. Prints a string to the screen which will be Unicode.
return
%s
for
class
14. adds an item to a list
//=
append()
is not
~
15. absolute value
and
float
read
abs(a)
16. 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
str()
read
>>
and
17. A statement that breaks out of a loop.
~
break
a//b
#
18. Symbol used to create comments
is not
#
file.readline()
insert()
19. exponent AND assignment operator
:
**=
*write(stuff)
else
20. A keyword that does nothing but fill space to indicate code which will be written later.
readline
pass
-=
/
21. turns an object into a string
//=
str()
del
-
22. This keyword begins the simplest form of a conditional statement.
if
+
=
>=
23. adds an item to a list
<
if
append()
not
24. A statement that displays a value on the screen.
/
readline
a//b
print
25. Binary AND Operator copies a bit to the result if it exists in both operands. (a & b) will give 12 which is 0000 1100
=
else
&
|
26. rounds a number to the number of decimal points you choose
%
^
round()
%=
27. An operator to check whether two variables refer to the same object.
is
:
#
print()
28. inserts an item inside a list at a certain index
~
insert()
int()
*readline
29. Symbol to subtract things from each other
+=
not
Variables
-
30. Reads just one line of a text file.
>>
class
*readline
readline
31. unction to read one line of a file
*write(stuff)
Variables
math.sqrt(a)
readline
32. prints its parameter to the console
not in
-
print()
>>
33. inserts an item inside a list at a certain index
insert()
&
()
file.readline()
34. Adds something to a variable
input()
=
**=
round()
35. The extension for Python scripts
argument variable
n
def
.py
36. floor division
readline
in
a//b
|
37. multiply AND assignment operator
|
-
+=
*=
38. asks the user for a response and returns that response
#
==
input()
abs(a)
39. Symbol to divide by the number to the right of the symbol
int
~
len()
/
40. 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
print
argv
<<
*truncate
41. floor division AND assignment operator
print
*truncate
//=
len()
42. Less than symbol
a%b
^
<
pass
43. exponent AND assignment operator
**=
math.sqrt(a)
int
+
44. End header line.
//=
:
math.sqrt(a)
def
45. A built-in function that converts integers and strings to floating-point numbers.
>
write
#
float
46. Binary Ones Complement Operator is unary and has the efect of 'flipping' bits. (~a ) will give -60 which is 1100 0011
#
elif (Else if)
~
%
47. The keyword beginning a header that will create a new function.
def
open()
.py
*=
48. A data type for representing numbers with fractional values.
#
a**b
except
floating point number
49. A logical operator which negates an expression so that it returns a value of True if the expression is false.
not
+
*truncate
else
50. A logical operator which requires two expressions to both be true.
print
^
and
>>
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