Escrito por estudiantes que aprobaron Inmediatamente disponible después del pago Leer en línea o como PDF ¿Documento equivocado? Cámbialo gratis 4,6 TrustPilot
logo-home
Examen

PYTHON QUESTION BANK WITH ANSWERS

Puntuación
-
Vendido
-
Páginas
27
Grado
A+
Subido en
26-09-2024
Escrito en
2023/2024

PYTHON QUESTION BANK WITH WELL EXPLAINED ANSWERS.

Institución
Grado

Vista previa del contenido

[Type text]




GE8151- PROBLEM SOLVING AND PYTHON PROGRAMMING – Question Bank

UNIT I
PART-A
PROBLEM SOLVING AND PYTHON PROGRAMMING
1. Define Algorithm
Algorithm : It is a sequence of instructions designed in such a way that if the
instructions are executed in the specified sequence, the desired results will be obtained.
The instructions in an algorithm should not be repeated infinitely. The algorithm should
be written in sequence.

2. What are the properties of algorithm?
 It is written in simple English.
 Each step of an algorithm is unique and should be self
 explanatory. An algorithm must have at least one input.
 An algorithm must have at least one
 output. An algorithm has finite number of steps.

3. What are the building block of algorithm?
The three building block of algorithm are :
 Sequence
 Selection
 Iteration

4. What is meant by selection, iteration and sequence controlstructures?
Sequence:
A sequence is one of the basic logic structures in computer programming.
In a sequence structure, an action, or event, leads to the next ordered action in a
predetermined order.
Selection:
A selection (also called a decision) is also one of the basic logic structures
in computer programming. In a selection structure, a question is asked, and
depending on the answer, the program takes one of two courses of action, after
which the program moves on to the next event.
Selection: A selection (also called a decision) is also one of the basic logic
structures in computer programming. In a selection structure, a question is asked,
and depending on the answer, the program takes one of two courses of action,
after which the program moves on to the next event.

5. Define Flowchart
It is a pictorial representation of an algorithm. The flowchart uses different shape
symbols to denote the different appropriate instructions and these instructions can be
written within the boxes using clear statements.

,[Type text]




6. Write the Characteristics of Pseudo code.
Named variables represent data and identifiers denote higher level
functions.
Composed of a sequence of statements or steps.
 Statements are often numbered sequentially.
 Operational (Imperative) statements include assignment, input, and outpu
Control structures provide iterative and conditional execution.
Indentations used for grouping b

8. What is need for flowchart symbol?
The need for flowchart symbols because each symbols of different shapes
denotes different types of instructions. The program logic through flowcharts is
made easier through the use of symbol that has standardized planning.

9. Write some rules for drawing a flowchart.

10. What are the advantages of using a flowchart
 Communication
 Effective
 Proper
 Documentation
 Efficient Coding
 Proper
 Debugging
 Efficient Program Maintenance

11. Write any two disadvantages of
flowchart ?
 It is not visual
 We do not get a picture of the design.

12. What is Pseudo code?
―Pseudo‖ means imitation of false and ―code‖ refers to the instruction written in a
programming language. Pseudo code is programming analysis tool that is used for
planning program logic.

13. Write the Characteristics of Pseudocode.
 Named variables represent data and identifiers denote higher level
 functions.
 Composed of a sequence of statements or steps.
 Statements are often numbered sequentially.
 Operational (Imperative) statements include assignment, input, and
 output.
 Control structures provide iterative and conditional
execution.

, [Type text]




 Indentations used for grouping blocks of statement

14. What are the rules for writing pseudo
code?
 Write one statement
 per line. Capitalize
 initial keywords.
 Indent to show hierarchy.
 End multiline structure.
 Keep statements language independent.

15. Write any two advantages of pseudo code.
It can be done easily in any word
processor.
 It can be written easily.
 It can be easily modified as compared to flowchart.

16. Write any two disadvantages of
flowchart?
 It is not visual
 We do not get a picture of the design.

17. Differentiate Algorithm and Pseudo code

S.No Algorithm Pseudo code
1. It is a well-defined procedure that It is a simple way of writing programming code
allows a computer to solve a problem. in English.
2. Algorithms can be described in Pseudo code describes how you would
various ways, from pure mathematical implement an algorithm without getting into
formulas to complex graphs syntactical details.

18. What is the difference between algorithm and flowchart

S.No Algorithm Flow Chart
1. Step by Step formation Box by box formation
Mostly run to complete or manage a Can be used in general terms to solve any
2.
program implementation. problem related to an individual or a group.
More detailed but difficult to Lessdetailed but easyto understand
3.
understand by everyone.

Escuela, estudio y materia

Grado

Información del documento

Subido en
26 de septiembre de 2024
Número de páginas
27
Escrito en
2023/2024
Tipo
Examen
Contiene
Preguntas y respuestas

Temas

$9.89
Accede al documento completo:

¿Documento equivocado? Cámbialo gratis Dentro de los 14 días posteriores a la compra y antes de descargarlo, puedes elegir otro documento. Puedes gastar el importe de nuevo.
Escrito por estudiantes que aprobaron
Inmediatamente disponible después del pago
Leer en línea o como PDF

Conoce al vendedor
Seller avatar
MedTechPrep

Documento también disponible en un lote

Conoce al vendedor

Seller avatar
MedTechPrep Self
Seguir Necesitas iniciar sesión para seguir a otros usuarios o asignaturas
Vendido
-
Miembro desde
1 año
Número de seguidores
0
Documentos
48
Última venta
-
MedTechPrep

Welcome to MedTechPrep, your ultimate destination for high-quality, comprehensive study resources. Whether you are looking for meticulously organized lecture notes, extensive test banks, in-depth case studies, or quick reference guides, you will find everything you need to excel in your coursework. This shop features a wide variety of document types designed to streamline your studying, clarify complex concepts, and help you ace your next exam.

Lee mas Leer menos
0.0

0 reseñas

5
0
4
0
3
0
2
0
1
0

Documentos populares

Recientemente visto por ti

Por qué los estudiantes eligen Stuvia

Creado por compañeros estudiantes, verificado por reseñas

Calidad en la que puedes confiar: escrito por estudiantes que aprobaron y evaluado por otros que han usado estos resúmenes.

¿No estás satisfecho? Elige otro documento

¡No te preocupes! Puedes elegir directamente otro documento que se ajuste mejor a lo que buscas.

Paga como quieras, empieza a estudiar al instante

Sin suscripción, sin compromisos. Paga como estés acostumbrado con tarjeta de crédito y descarga tu documento PDF inmediatamente.

Student with book image

“Comprado, descargado y aprobado. Así de fácil puede ser.”

Alisha Student

Preguntas frecuentes