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. Argument variable
insert()
%r
format string
argv
2. Symbol to multiply things
>
=
%=
*
3. 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
^
+
truncate
abs(a)
4. Prints a string to the screen which will be Unicode.
%s
a//b
^
del
5. turns an object into an integer
del
int()
**=
is not
6. rounds a number to the number of decimal points you choose
round()
write
n
/=
7. Symbol to add things together
a%b
a%b
//=
+
8. subtract AND assignment operator
write
-=
*
==
9. multiply AND assignment operator
truncate
/=
*=
<=
10. Called Logical AND operator. If both the operands are true then then condition becomes true. (a and b) is true.
%s
and
file.write(stuff)
|
11. inserts an item inside a list at a certain index
insert()
math.sqrt(a)
not in
except
12. This keyword creates a new class object which is a user-defined type - like a factory for creating objects.
except
int()
class
//=
13. End header line.
def
:
in
*read
14. modulo
*write(stuff)
insert()
a%b
-
15. Command to print to the screen
del
print
|
open()
16. Prints a string to the screen which is a signed decimal.
%d
argument variable
-
raise
17. turns an object into a string
readline
#
str()
floating point number
18. A statement that assigns a value to a variable.
len()
assignment
str()
%
19. 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.
del
//=
-
not in
20. Binary AND Operator copies a bit to the result if it exists in both operands. (a & b) will give 12 which is 0000 1100
&
%
print
pass
21. deletes an item from a list
n
is
~
del
22. Function to close a file - it will not be able to be used again unless the file is opened.
close
//=
*
23. This keyword attempts to do something that would cause the program to crash if it were not for this statement.
try
if
read
close
24. 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
*readline
25. The keyword beginning a header that will create a loop.
while
readline
assignment
for
26. A logical operator which compares two operands and produces True if they are equal and False otherwise
+=
/=
>>
==
27. exponentiation
while
:
~
a**b
28. This keyword in the body of a conditional allows chained conditionals.
elif (Else if)
=
del
*=
29. This keyword begins the simplest form of a conditional statement.
read
if
#
argument variable
30. Turns a line into a comment instead of executable code.
*=
#
~
input()
31. A logical operator which negates an expression so that it returns a value of True if the expression is false.
-
-=
not
raise
32. A built-in function that converts integers and strings to floating-point numbers.
elif (Else if)
str()
float
>=
33. Symbol used to create comments
+=
#
read
*
34. floor division
not in
math.sqrt(a)
^
a//b
35. The extension for Python scripts
argv
.py
a%b
for
36. turns an object into a string
read
+=
str()
-
37. An operator to check whether two variables refer to the same object.
.py
floating point number
*read
is
38. ,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.
round()
~
len()
39. floor division AND assignment operator
//=
read
a%b
math.sqrt(a)
40. prints its parameter to the console
==
append()
#
print()
41. A built-in function that converts its argument to a string.
str
argument variable
continue
and
42. Where the parameters go. A necessary punctuation after any function even if it's empty.
()
not
%=
readline
43. Prints a string to the screen which is converted using repr()
-
>=
+=
%r
44. divide AND assignment operator
print
str()
*truncate
/=
45. Greater than symbol
int
>
assignment
else
46. sets the file's current position
write
try
+
file.seek()
47. Symbol to multiply things
write
*
<
%=
48. End header line.
=
|
*=
:
49. Symbol to add things together
insert()
+
+=
#
50. Holds the value of something - e.g. oh_hi = 4 where oh_hi is the variable.
Variables
%
*write(stuff)
%=
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