返回卡包市场

Procedural programming paradigm(1.2.4 b)

暂无描述。系统推荐的高质量记忆内容,适合每天坚持背诵学习。

卡片总数: 10内容版本: v4公开卡包更新时间: 8/1/2026

卡片预览 (10 张)

#1
正面 (问题)

What is the procedural programming paradigm?

背面 (解答)

where code is made up of seperate blocks of code that do a specific task called procedures

#2
正面 (问题)

What is structured programming?

背面 (解答)

using the fundamental programming constructs sequencing selection and iteration

#3
正面 (问题)

What does the term spaghetti code mean?

背面 (解答)

the goto command used to be used to manually direct the flow of the program and the code was so interconnected it was really hard to follow

#4
正面 (问题)

What is procedural programming?

背面 (解答)

built on the idea that all code can be broken down into the three programming constructs, procedural takes this idea a step further by reducing long programs into a series of subroutines

#5
正面 (问题)

Procedural programs

背面 (解答)

should have single point of entry encourages programmer to think about what a program does

#6
正面 (问题)

Procedural programs subroutine form

背面 (解答)

many languages use in form of subroutine called main which is automatically called when program is run main subroutine then calls other subroutines to execute the programs main tasks

#7
正面 (问题)

What happens if the subroutine has meaningful identifiers?

背面 (解答)

the main function is self-documenting

#8
正面 (问题)

Why is procedural programs sometimes called top down problem solving?

背面 (解答)

as we start with a large problem and break it down into smaller discrete subproblems which can be solved independently key part of modular design

#9
正面 (问题)

Benefits of procedural programming

背面 (解答)

easier to test and debug as fewer lines of code to trace through subroutines can be called many times reducing amount of repeating code subroutines can manipulate shared data (global variables) code is reusable as subroutines can be saved in libraries and imported into programs when needed very large programs can be worked on by a whole team of programmers who can develop subroutines concurrently so that a project can be completed faster

#10
正面 (问题)

Drawbacks of procedural programming

背面 (解答)

focuses on what needs to be done rather than on the integrity of the data that it manipulates global variables often can cause issues with data integrity nothing in the procedural paradigm that truly protects data data is passed into subroutines used and sometimes modified and the programmer must be fully aware of what they should and shouldn’t do and abide by the rules of good practice to ensure data integrity