King Flashcards

Ffffffff (25 cards)

1
Q

What is a variable in programming?

A

A variable is a storage location identified by a memory address and an associated symbolic name (an identifier), which contains a value.

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: In programming, ________ is the process of finding and fixing errors in the code.

A

debugging

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

What is the purpose of a loop in programming?

A

A loop is used 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
5
Q

What does ‘syntax’ refer to in programming languages?

A

Syntax refers to 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
6
Q

Multiple choice: Which of the following is a type of loop? A) If statement B) For loop C) Variable D) Function

A

B) For loop

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

What is an array?

A

An array is a data structure that can hold a fixed number of values of a single type.

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

True or False: Object-oriented programming is a programming paradigm based on the concept of ‘objects’.

A

True

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

What is an algorithm?

A

An algorithm is a step-by-step procedure or formula for solving a problem.

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

Fill in the blank: A ________ is a construct that allows for conditional execution of code.

A

conditional statement

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

What does ‘API’ stand for?

A

API stands for Application Programming Interface.

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

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

A

B) HTML

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

What is the purpose of comments in code?

A

Comments are used to explain and annotate code, making it easier to understand for humans.

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

True or False: A class is a blueprint for creating objects in object-oriented programming.

A

True

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

What is the difference between compiled and interpreted languages?

A

Compiled languages are translated into machine code before execution, while interpreted languages are executed line by line at runtime.

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

Fill in the blank: The ________ is a collection of data and functions that operate on that data.

17
Q

What is recursion in programming?

A

Recursion is a technique where a function calls itself in order to solve a problem.

18
Q

Multiple choice: Which of the following is a common control structure? A) Variable B) Loop C) Comment D) Function

19
Q

What is a syntax error?

A

A syntax error is a mistake in the code that violates the rules of the programming language, preventing it from being compiled or executed.

20
Q

True or False: A data type defines the kind of data that can be stored in a variable.

21
Q

What is a database?

A

A database is an organized collection of structured information or data, typically stored electronically in a computer system.

22
Q

Fill in the blank: ________ is the process of translating high-level code into machine code.

23
Q

What is the purpose of version control systems?

A

Version control systems are used to track changes to code, allowing multiple developers to collaborate and manage different versions of a project.

24
Q

Multiple choice: Which of the following is a common programming paradigm? A) Procedural B) Functional C) Object-oriented D) All of the above

A

D) All of the above

25
What is a framework in programming?
A framework is a platform for developing software applications, providing a foundation and set of tools for building and deploying projects.