stud
bud
Sign up
Log in
Home
Library
Explore
SAT
More
Programming Logic Concepts Flashcards | StudBud
Explore
/
Programming Logic Concepts
Programming Logic Concepts
20 terms
·
StudBud Administration
·
68 plays
Imported from external platform
Flashcards
20 cards
F
Practice quiz
P
Host live
L
Questions
20
Answers
1
6.
Which of the following programming languages is categorized as an interpreted language?
c) C++
a) C
d) Rust
b) Python
2
15.
Which of the following describes the function of a ‘while’ loop?
b) It repeats a task while a condition is true
c) It performs mathematical operations
d) It makes decisions based on conditions
a) It repeats a task a fixed number of times
3
14.
In which of the following scenarios are flowcharts most useful?
a) Writing code
b) Visualizing program logic and debugging
d) Compiling code
c) Storing data
4
13.
Which of the following is true about documentation in programming?
b)provides detailed explanations about the code's purpose and functionality
c) It is not important for developers
d) It is only used to debug code
a) It is written directly in the code
5
7.
What is the purpose of comments in code?
a) To optimize the code
d) To store data values
c) To execute operations
b) To explain and clarify sections of code
6
22.
Which of the following is true about using arrays in programming?
a) Arrays can only store one value at a time
d) Arrays are only used for storing text data
c) Arrays automatically resize when new elements are added
b) Arrays are useful for managing large sets of data efficiently
7
16.
What is the primary goal of using object-oriented programming (OOP)?
a) To reduce the use of loops
d) To automate tasks
c) To visualize code flow
b) To create reusable, maintainable, and flexible code
8
19.
What is a branch in programming?
a) A loop that repeats tasks
b)decision point where different actions can be taken based on conditions
d) A predefined function
c) A way to store values
9
11.
What does pseudocode help programmers to do?
d) Execute the code line by line
a) Write code in a specific programming language
c) Debug the code
b) Design and plan the program structure before actual coding
10
3.
What do decision points in a flowchart usually represent?
d) Start/End
c) Conditions or branching logic
b) Actions
a) Input/Output
11
5.
Which of the following best describes a constant in programming?
b) A value that is fixed and cannot be changed
c) A function that performs calculations
d) A placeholder for data input
a) A variable whose value can change
12
10.
Which statement is true about loops in programming?
b) They repeat a task a fixed number of times or while a condition is true
a) They execute code only once
c) They store multiple values
d) They help in decision-making
13
9.
What is the purpose of using arrays or vectors in programming?
a) To store a single data element
b) To store and manage multiple values efficiently
d) To visualize program flow
c) To perform mathematical operations
14
17.
Which of the following is an example of an interpreted programming language?
c) JavaScript
b) Java
a) Rust
d) C
15
18.
Which of the following is NOT a feature of pseudocode?
b) It focuses on the logic of the program
c) It follows strict syntax rules of programming languages
a) It uses simple, human-readable language
d) It helps in debugging and planning
16
2.
Which symbol in a flowchart typically represents the start or end of a process?
d) Parallelogram
b) Diamond
c) Oval
a) Rectangle
17
8.
Which of the following is an example of a compiled programming language?
b) Python
c) C++
a) JavaScript
d) HTML
18
1.
What is the purpose of a flowchart in software development?
c) To debug programs
b) To visualize the logic of a program
a) To execute code line by line
d) To create graphical user interfaces
19
20.
What is the main purpose of using flowcharts and sequences in coding practices?
c) To store and manipulate data
a) To ensure code runs faster
d) To execute the program
b) To simplify debugging and enhance readability
20
12.
Which programming language is an example of a query language?
a) Python
b) SQL
c) JavaScript
d) C++