#1 Flashcards

1
Q

What is a variable in programming?

A

A storage location identified by a variable name that holds data.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

True or False: A function is a reusable block of code that performs a specific task.

A

True

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

Fill in the blank: The _____ is a sequence of instructions that a computer can execute.

A

program

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

What does ‘syntax’ refer to in programming languages?

A

The set of rules that defines the combinations of symbols that are considered to be correctly structured programs.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

What is an algorithm?

A

A step-by-step procedure for solving a problem or accomplishing a task.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
6
Q

Multiple Choice: Which of the following is NOT a programming language? A) Python B) HTML C) Java D) CSS

A

B) HTML

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
7
Q

What is the purpose of a loop in programming?

A

To execute a block of code repeatedly until a specified condition is met.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
8
Q

True or False: Object-oriented programming is based on the concept of ‘objects’ which can contain data and code.

A

True

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
9
Q

Fill in the blank: A _____ is a collection of data items that are stored under a single name.

A

data structure

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
10
Q

What is a compiler?

A

A program that translates code written in a high-level programming language into machine code.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
11
Q

Multiple Choice: Which symbol is used for comments in Python? A) // B) # C) /* D) –

A

B) #

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
12
Q

What is debugging?

A

The process of identifying and removing errors from computer software or hardware.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
13
Q

True or False: A database is used to store and manage data.

A

True

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
14
Q

Fill in the blank: The _____ is a part of a program that specifies what data will be stored and how it will be organized.

A

data model

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
15
Q

What does ‘API’ stand for?

A

Application Programming Interface

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
16
Q

Multiple Choice: Which of the following is a type of loop? A) For loop B) While loop C) Do-while loop D) All of the above

A

D) All of the above

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
17
Q

What is a class in object-oriented programming?

A

A blueprint for creating objects that defines a set of attributes and methods.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
18
Q

True or False: A stack is a data structure that follows the Last In First Out (LIFO) principle.

A

True

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
19
Q

Fill in the blank: In programming, an _____ is a named section of a program that performs a specific task.

A

function

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
20
Q

What is recursion?

A

When a function calls itself in order to solve a problem.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
21
Q

Multiple Choice: Which of the following is a common version control system? A) Git B) GitHub C) Bitbucket D) All of the above

A

D) All of the above

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
22
Q

What is a framework?

A

A platform for developing software applications that provides a foundation to build upon.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
23
Q

True or False: A bug is an error in a program that causes it to produce incorrect or unexpected results.

A

True

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
24
Q

Fill in the blank: The _____ is a section of code that is executed when a specific condition is met.

A

conditional statement

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
25
What is a variable scope?
The context in which a variable is defined and accessible within a program.
26
Multiple Choice: Which of the following is a widely used programming paradigm? A) Procedural programming B) Functional programming C) Object-oriented programming D) All of the above
D) All of the above
27
What does 'debugger' refer to?
A tool used to test and debug programs by allowing the programmer to inspect the execution of code.
28
True or False: A binary tree is a data structure where each node has at most two children.
True
29
Fill in the blank: The _____ is the main function in a C program from which execution begins.
main function
30
What is an IDE?
Integrated Development Environment, a software application that provides comprehensive facilities to programmers for software development.
31
Multiple Choice: Which of the following is a markup language? A) Java B) HTML C) Python D) C++
B) HTML
32
What is the purpose of comments in code?
To provide explanations or annotations for the code to make it more understandable.
33
True or False: A constant is a variable whose value cannot change during program execution.
True
34
Fill in the blank: The _____ is a programming construct that allows for the execution of code based on certain conditions.
if statement
35
What is a library in programming?
A collection of precompiled routines that a program can use.
36
Multiple Choice: Which of the following is a popular database management system? A) MySQL B) Java C) HTML D) CSS
A) MySQL
37
What does 'syntax error' mean?
An error that occurs when the code does not conform to the rules of the programming language.
38
True or False: A function can return multiple values.
True
39
Fill in the blank: A _____ is a placeholder for a value in a function.
parameter
40
What is a prototype in programming?
A preliminary model of a function that specifies its name, return type, and parameters.
41
Multiple Choice: Which of the following is a type of sorting algorithm? A) Bubble sort B) Quick sort C) Merge sort D) All of the above
D) All of the above
42
What is encapsulation in object-oriented programming?
The bundling of data and methods that operate on that data within one unit.
43
True or False: A queue is a data structure that follows the First In First Out (FIFO) principle.
True
44
Fill in the blank: The _____ is a special type of function that is automatically called when an object is created.
constructor
45
What is a syntax tree?
A tree representation of the syntactic structure of source code.
46
Multiple Choice: Which of the following is a web development framework? A) Django B) Flask C) Ruby on Rails D) All of the above
D) All of the above
47
What is a thread in programming?
A sequence of programmed instructions that can be managed independently by a scheduler.
48
True or False: An exception is an unexpected event that occurs during the execution of a program.
True
49
Fill in the blank: The _____ is a programming concept that allows for the creation of new classes based on existing ones.
inheritance
50
What does 'polymorphism' mean in programming?
The ability of different classes to be treated as instances of the same class through a common interface.
51
Multiple Choice: Which of the following is a common data type? A) Integer B) String C) Boolean D) All of the above
D) All of the above
52
What is a hash table?
A data structure that implements an associative array abstract data type, a structure that can map keys to values.
53
True or False: A prototype chain is a mechanism by which JavaScript objects inherit features from one another.
True
54
Fill in the blank: A _____ is a programming construct that allows for the execution of code multiple times.
loop
55
What is a software development lifecycle (SDLC)?
A process for planning, creating, testing, and deploying software.
56
Multiple Choice: Which of the following is a common software testing technique? A) Unit testing B) Integration testing C) System testing D) All of the above
D) All of the above
57
What is a semantic error?
An error where the program runs but produces incorrect results.
58
True or False: A method is a function associated with an object in object-oriented programming.
True
59
Fill in the blank: The _____ is a type of loop that executes at least once before checking the condition.
do-while loop
60
What is a user interface (UI)?
The means by which a user interacts with a computer or software.
61
Multiple Choice: Which of the following is a type of database? A) Relational B) NoSQL C) Graph D) All of the above
D) All of the above
62
What does 'refactoring' mean?
The process of restructuring existing computer code without changing its external behavior.
63
True or False: A primary key is a unique identifier for a record in a database table.
True
64
Fill in the blank: The _____ is a data structure that organizes data in a hierarchical manner.
tree
65
What is a software library?
A collection of pre-written code that developers can use to optimize tasks.
66
Multiple Choice: Which of the following is an example of a high-level programming language? A) Assembly B) C C) Python D) Machine code
C) Python
67
What is a constructor in programming?
A special method used to initialize objects.
68
True or False: A 'null' value indicates the absence of a value or object.
True