Programming
Programming
1. Python was developed _______________in the late eighties at the ‘National Research Institute
for Mathematics and Computer Science’ at Netherlands.
Ans: extension
4. _________________ is a software product solely developed to support software development in
various or specific programming language(s).
Ans: notebook
6. There are __________ways to set a working directory spyder.
Ans: three
7. In python_________ an identifier containing a known information.
Ans: Variable
8. When clearing an overpopulated console, type %clear in console Place cursor on console and
press ________.
Ans: Ctrl + L
9. ____________ is used to add description, render lines of code inert during testing in python.
Ans: commenting
10. When commenting multiple lines in python. Select lines that have to be commented and then
press “___________”. Select “Edit” in menu and select “Comment/Uncomment”
Ans: Ctrl + 1
11. When naming variables, what assignment operator is used to assign values to variable?
_______________
Ans: =
Ans: Pascal
Ans: Snake
14. ageEmp = 45 ______________
Ans: Camel
15. ______________ represents two values of logic and associated with conditional statements
Ans: Boolean
16. In python, __________ data type is represented in the form (a+ib).
Ans: complex
17. The syntax: type(object) is datatype is used to _______________.
Consider the variable ‘Salary_tier’ which is of complex data type. ‘Salary_tier’ contains a real number
and an imaginary part enclosed in a enclosed between single quotes. {Salary_tier = ‘(3 + ib)’}. Coerce
the variable by filling in the empty spaces of the codes written below.
Ans: str
Ans: complex(Salary_tier)
Out [3]=____________
Ans: complex
23. Value that the operator operates on is called ______________?
Ans: operand
24. ____________ is used to perform mathematical operations between two operands.
Ans: %
26. ndarray is the main object of numpy, which is homogeneous. This means ndarray
contain____________.
Ans: only one data type for all its member elements
27. ____________is used when operands are conditional statements and returns boolean value.
Ans: ones()
29. ___________ function takes the second argument as the index of the diagonal.
Ans: eye()
30. The __________ function generates a two-dimensional identity array with 1 as diagonal
values.
Ans: identity()