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. inserts an item inside a list at a certain index
write
*write(stuff)
=
insert()
2. Binary Ones Complement Operator is unary and has the efect of 'flipping' bits. (~a ) will give -60 which is 1100 0011
~
not in
class
^
3. Adds a new line character
is not
n
argv
<
4. Function to read the contents of a file
print
read
del
=
5. Greater than symbol
>
-
//=
for
6. absolute value
abs(a)
*truncate
write
argument variable
7. turns an object into an integer
int()
len()
+
readline
8. Prints a string to the screen which will be Unicode.
not in
a%b
del
%s
9. 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.
|
not in
argument variable
a%b
10. rounds a number to the number of decimal points you choose
round()
str()
read
file.truncate()
11. A logical operator which returns a value of True if either of the conditions is true.
or
str
str()
-
12. Prints a string to the screen which is converted using repr()
~
str
append()
%r
13. This keyword begins a header for a body that repeats until the condition is no longer true.
-
abs(a)
while
%r
14. Binary Ones Complement Operator is unary and has the efect of 'flipping' bits. (~a ) will give -60 which is 1100 0011
int()
~
*
in
15. Where the parameters go. A necessary punctuation after any function even if it's empty.
()
=
del
floating point number
16. Writes stuff to the file.
a%b
*write(stuff)
Variables
return
17. Prints a string to the screen which is converted using repr()
**=
Variables
%r
argv
18. add AND assignment operator
%
+=
&
*=
19. The keyword beginning a header that will create a new function.
&
%
%s
def
20. writes stuff to the file
round()
*=
open()
file.write(stuff)
21. modulus AND assignment operator
=
%=
append()
raise
22. modulo
a%b
not
&
*
23. This keyword in the body of a conditional - gives an alternative execution.
readline
else
for
^
24. Create a variable.
>
=
>>
close
25. assignment operator
=
*=
input()
/=
26. Command to print to the screen
open()
file.seek()
print
for
27. Adds something to a variable
+=
*truncate
-=
=
28. single line comment
==
readline
insert()
#
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).
is not
*truncate
**=
**=
30. Function to open or read a file
open()
-=
int()
in
31. A statement that displays a value on the screen.
print
not in
int
/=
32. subtract AND assignment operator
file.write(stuff)
Variables
print()
-=
33. This keyword in the body of a conditional allows chained conditionals.
elif (Else if)
*read
%r
format string
34. A built-in function that converts integers and strings to floating-point numbers.
float
Variables
#
math.sqrt(a)
35. End header line.
()
a%b
:
>>
36. Modulus operator. It's the remainder after division
%d
+
%
math.sqrt(a)
37. This statement exits a function. The remaining lines of the function are not executed.
print
:
=
return
38. Create a variable.
*=
#
and
=
39. Symbol to multiply things
==
open()
+
*
40. A statement that assigns a value to a variable.
assignment
*
str()
open()
41. floor division AND assignment operator
.py
truncate
//=
Variables
42. End header line.
#
print()
//=
:
43. turns an object into a string
str()
>
.py
~
44. Symbol to multiply things
read
*
while
<
45. exponent AND assignment operator
assignment
-=
a%b
**=
46. A string that begins with the % symbol and contains a sequence of printable characters and format specifiers that determine how values output should look.
len()
round()
**=
format string
47. Called Logical AND operator. If both the operands are true then then condition becomes true. (a and b) is true.
+
def
and
~
48. Prints a string to the screen which will be Unicode.
+=
int()
insert()
%s
49. Prints a string to the screen which is a signed decimal.
math.sqrt(a)
%d
-=
+=
50. Less than symbol
readline
<
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