0% found this document useful (0 votes)
2 views

Programming

The document contains a series of fill-in-the-blank questions and answers related to programming concepts, particularly in Python. It covers topics such as the development of Python, Integrated Development Environments (IDEs), variable naming conventions, data types, and basic operations. The document serves as a study guide for understanding fundamental programming principles and syntax.

Uploaded by

nkwameernest
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
2 views

Programming

The document contains a series of fill-in-the-blank questions and answers related to programming concepts, particularly in Python. It covers topics such as the development of Python, Integrated Development Environments (IDEs), variable naming conventions, data types, and basic operations. The document serves as a study guide for understanding fundamental programming principles and syntax.

Uploaded by

nkwameernest
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 3

PROGRAMMING FILL-IN QUESTIONS AND ANSWERS

1. Python was developed _______________in the late eighties at the ‘National Research Institute
for Mathematics and Computer Science’ at Netherlands.

Ans: Guido van Rossum


2. A software program can be written using a terminal, a command prompt (cmd), a text editor or
through an ______________________.

Ans: Integrated Development Environment (IDE)


3. In coding environment, the program needs to be saved in a file with an appropriate __________.
Eg. (py for python).

Ans: extension
4. _________________ is a software product solely developed to support software development in
various or specific programming language(s).

Ans: Integrated Development Environment (IDE)


5. Web application that allows creation and manipulation of documents called ___________.

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: =

MANUEL FOR SRC


RAY 4 SRC FINANCIAL
What naming conventions are shown below,
12. AgeEmp = 45___________

Ans: Pascal

13. age-emp= 45 _____________

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 _______________.

Ans: Verify if an object is of a certain data type


18. The syntax: type(object) is used for _________________.

Ans: Identifying object data type


19. Coercing an object to new data type means ____________.

Ans: Convert the data type of an object to another

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.

20. In [1]: type(Salary_tier)

Out [1] =_______________

Ans: str

21. In [2]: salary_tier = __________________

Ans: complex(Salary_tier)

MANUEL FOR SRC


RAY 4 SRC FINANCIAL
22. In [3]: type(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: Arithmetic operators


25. __________ is the arithmetic operator symbol used to represent remainder.

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: Logical operators


28. To create an array where all elements are 1, we use the __________function.

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()

MANUEL FOR SRC

RAY 4 SRC FINANCIAL

You might also like

pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy