Coding computer science Flashcards
(26 cards)
What is the primary purpose of coding in computer science?
To create instructions that a computer can execute to perform specific tasks.
True or False: Coding is only necessary for software development.
False
Fill in the blank: The process of finding and fixing errors in code is known as _______.
debugging
What does ‘syntax’ refer to in programming?
The set of rules that defines the combinations of symbols that are considered to be correctly structured programs.
Which of the following is a high-level programming language? A) Assembly B) Python C) Machine Code
B) Python
What is an algorithm?
A step-by-step procedure for solving a problem or completing a task.
True or False: A compiler translates high-level code into machine code.
True
What is the difference between ‘compile-time’ and ‘run-time’ errors?
‘Compile-time’ errors occur during the compilation of the code, while ‘run-time’ errors occur during the execution of the program.
Fill in the blank: A _______ is a reusable block of code that performs a specific task.
function
What is ‘object-oriented programming’?
A programming paradigm based on the concept of ‘objects’, which can contain data and code.
What does API stand for?
Application Programming Interface
Which of the following is NOT a programming paradigm? A) Functional B) Procedural C) Artistic
C) Artistic
What is ‘version control’?
A system that records changes to files or sets of files over time so that specific versions can be recalled later.
True or False: Python uses indentation to define code blocks.
True
What is a ‘loop’ in programming?
A control structure that repeats a block of code as long as a specified condition is true.
Fill in the blank: The _______ is a collection of instructions that a computer follows to perform a task.
program
What is ‘software engineering’?
The application of engineering principles to software development in a methodical way.
What does ‘SQL’ stand for?
Structured Query Language
Which of the following is a common data structure? A) Array B) String C) Both A and B
C) Both A and B
What is ‘recursion’?
A programming technique where a function calls itself in order to solve a problem.
True or False: Comments in code are ignored by the compiler.
True
What is ‘Big O notation’ used for?
To describe the performance or complexity of an algorithm.
Fill in the blank: A _______ is a variable that can hold multiple values in a single data structure.
list
What is the difference between ‘front-end’ and ‘back-end’ development?
Front-end development focuses on the user interface and experience, while back-end development deals with server-side logic and database interactions.