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. Prints a string to the screen which is a signed decimal.
input()
<<
%d
for
2. Empties the file - watch out if you care about the file.
*write(stuff)
and
%s
*truncate
3. The keyword beginning a header that will create a loop.
.py
>
for
while
4. floor division
~
input()
a//b
*write(stuff)
5. Symbol to divide by the number to the right of the symbol
/
*=
assignment
=
6. A keyword that does nothing but fill space to indicate code which will be written later.
/=
pass
def
%d
7. Greater than or equal symbol.
>=
raise
argument variable
close
8. A string that begins with the % symbol and contains a sequence of printable characters and format specifiers that determine how values output should look.
def
else
truncate
format string
9. A built-in function that converts integers and strings to floating-point numbers.
#
float
append()
==
10. modulo
assignment
a%b
%d
#
11. exponent AND assignment operator
**=
+
%=
append()
12. subtract AND assignment operator
-=
try
=
assignment
13. The extension for Python scripts
a//b
.py
*=
or
14. Symbol to divide by the number to the right of the symbol
=
*
except
/
15. Prints a string to the screen which is converted using repr()
file.write(stuff)
=
<
%r
16. A logical operator which compares two operands and produces True if they are equal and False otherwise
else
==
class
del
17. 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.
>=
insert()
not in
/=
18. add AND assignment operator
open()
()
/=
+=
19. Function to close a file - it will not be able to be used again unless the file is opened.
close
abs(a)
%r
del
20. End header line.
int
:
.py
read
21. Symbol to multiply things
in
a**b
*
>=
22. square root
math.sqrt(a)
=
int
>
23. A statement that ends the current iteration of a loop but continues looping.
continue
-
~
else
24. Less than symbol
<
and
close
-
25. assignment operator
#
+
=
a%b
26. 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
if
argument variable
del
^
27. A statement that displays a value on the screen.
<=
except
len()
print
28. Where the parameters go. A necessary punctuation after any function even if it's empty.
()
*write(stuff)
truncate
.py
29. adds an item to a list
append()
*
class
int()
30. Command to print to the screen
*write(stuff)
=
print
<<
31. 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
>>
=
float
32. Greater than symbol
<<
readline
%r
>
33. turns an object into a string
math.sqrt(a)
*truncate
str()
abs(a)
34. adds an item to a list
append()
float
round()
argv
35. prints its parameter to the console
float
print()
|
~
36. subtract AND assignment operator
>>
=
-=
%
37. 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
a//b
*
and
38. Function to read the contents of a file
argument variable
raise
#
read
39. Function to write something to a file
write
==
|
open()
40. Adds a new line character
n
is not
int
assignment
41. Symbol to add things together
&
class
+
print
42. Function to close a file - it will not be able to be used again unless the file is opened.
close
and
except
-
43. divide AND assignment operator
/=
raise
except
pass
44. turns an object into an integer
//=
int()
&
=
45. add AND assignment operator
len()
>>
%=
+=
46. Argument variable
floating point number
pass
argv
**=
47. The keyword beginning a header that will create a new function.
read
del
>>
def
48. 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
49. Function to empty the contents of a file - no recovery is possible
truncate
str()
while
%=
50. Adds something to a variable
**=
=
*truncate
|
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