Coding computer science Flashcards

(26 cards)

1
Q

What is the primary purpose of coding in computer science?

A

To create instructions that a computer can execute to perform specific tasks.

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

True or False: Coding is only necessary for software development.

A

False

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

Fill in the blank: The process of finding and fixing errors in code is known as _______.

A

debugging

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

What does ‘syntax’ refer to in programming?

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

Which of the following is a high-level programming language? A) Assembly B) Python C) Machine Code

A

B) Python

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

What is an algorithm?

A

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

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

True or False: A compiler translates high-level code into machine code.

A

True

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

What is the difference between ‘compile-time’ and ‘run-time’ errors?

A

‘Compile-time’ errors occur during the compilation of the code, while ‘run-time’ errors occur during the execution of the program.

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

Fill in the blank: A _______ is a reusable block of code that performs a specific task.

A

function

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

What is ‘object-oriented programming’?

A

A programming paradigm based on the concept of ‘objects’, which can contain data and code.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
11
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
12
Q

Which of the following is NOT a programming paradigm? A) Functional B) Procedural C) Artistic

A

C) Artistic

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

What is ‘version control’?

A

A system that records changes to files or sets of files over time so that specific versions can be recalled later.

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

True or False: Python uses indentation to define code blocks.

A

True

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

What is a ‘loop’ in programming?

A

A control structure that repeats a block of code as long as a specified condition is true.

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 instructions that a computer follows to perform a task.

17
Q

What is ‘software engineering’?

A

The application of engineering principles to software development in a methodical way.

18
Q

What does ‘SQL’ stand for?

A

Structured Query Language

19
Q

Which of the following is a common data structure? A) Array B) String C) Both A and B

A

C) Both A and B

20
Q

What is ‘recursion’?

A

A programming technique where a function calls itself in order to solve a problem.

21
Q

True or False: Comments in code are ignored by the compiler.

22
Q

What is ‘Big O notation’ used for?

A

To describe the performance or complexity of an algorithm.

23
Q

Fill in the blank: A _______ is a variable that can hold multiple values in a single data structure.

24
Q

What is the difference between ‘front-end’ and ‘back-end’ development?

A

Front-end development focuses on the user interface and experience, while back-end development deals with server-side logic and database interactions.

25
What is 'machine learning'?
A subset of artificial intelligence that enables systems to learn from data and improve from experience without being explicitly programmed.
26
True or False: HTML is a programming language.
False