FA 1 - CS0007 || CANVAS

0.0(0)
studied byStudied by 0 people
call kaiCall Kai
learnLearn
examPractice Test
spaced repetitionSpaced Repetition
heart puzzleMatch
flashcardsFlashcards
GameKnowt Play
Card Sorting

1/19

encourage image

There's no tags or description

Looks like no tags are added yet.

Last updated 1:27 PM on 1/18/26
Name
Mastery
Learn
Test
Matching
Spaced
Call with Kai

No analytics yet

Send a link to your students to track their progress

20 Terms

1
New cards

What is an algorithm?

Group of answer choices

A random sequence of instructions

A sequence of unambiguous instructions for solving a problem

A set of ambiguous rules

A method for creating infinite loops

A sequence of unambiguous instructions for solving a problem

2
New cards

Which of the following is NOT a characteristic of an algorithm?

Group of answer choices

Finiteness

Effectiveness

Definiteness

Ambiguity

Ambiguity

3
New cards

What does the "finiteness" property of an algorithm mean?

Group of answer choices

The algorithm must have infinite steps

The algorithm must have no inputs

The algorithm must produce multiple outputs

The algorithm must terminate after a finite number of steps

The algorithm must terminate after a finite number of steps

4
New cards

Which step involves translating each step of an algorithm into code?

Group of answer choices

Implementation of an algorithm

Algorithm analysis

Algorithm specification

Problem definition

Implementation of an algorithm

5
New cards

What is pseudocode?**

Group of answer choices

A type of algorithm used only for sorting

A high-level description of an algorithm without syntax restrictions

A programming language with strict syntax rules

A formal mathematical proof

A high-level description of an algorithm without syntax restrictions

6
New cards

What is the primary purpose of program testing?

Group of answer choices

To document the program

To optimize the program's runtime

To find errors in the program

To prove the program is completely correct

To find errors in the program

7
New cards

Which of the following is NOT a fundamental data structure?

Group of answer choices

Array

Linked list

Stack

Algorithm

Algorithm

8
New cards

What is the time complexity of an algorithm?

Group of answer choices

The number of lines of code

The relationship between input size and the number of steps required

The amount of memory it uses

The clarity of the pseudocode

The relationship between input size and the number of steps required

9
New cards

What is the purpose of the Sieve of Eratosthenes?

Group of answer choices

Generating a list of prime numbers

Finding the greatest common divisor

Sorting numbers

Solving graph problems

Generating a list of prime numbers

10
New cards

Which algorithm is used to find the greatest common divisor (GCD) of two numbers?

Group of answer choices

Binary search

Euclid’s algorithm

Insertion sort

Bubble sort

Euclid’s algorithm

11
New cards

What is the key difference between arrays and linked lists?

Group of answer choices

Arrays cannot store integers, while linked lists can

Arrays are always sorted, while linked lists are not

Arrays use contiguous memory, while linked lists use arbitrary memory locations

Arrays are dynamic, while linked lists are static

Arrays use contiguous memory, while linked lists use arbitrary memory locations

12
New cards

Which data structure follows the LIFO principle?

Group of answer choices

Priority queue

Queue

Graph

Stack

Stack

13
New cards

What is the main advantage of binary search over sequential search?

Group of answer choices

Binary search works only on strings

Binary search requires more memory

Binary search works on unsorted data

Binary search is faster for large, sorted datasets

Binary search is faster for large, sorted datasets

14
New cards

What is a graph in computer science?

Group of answer choices

A method for storing strings

A collection of vertices and edges

A collection of points called vertices connected by edges

A type of sorting algorithm

A collection of points called vertices connected by edges

15
New cards

What is a tree in the context of data structures?

Group of answer choices

A linear data structure

A type of graph with cycles

A sorting algorithm

A connected acyclic graph

A connected acyclic graph

16
New cards

Which of the following is NOT a property of a binary search tree?

Group of answer choices

Values in the right subtree are smaller than the parent

Values in the left subtree are smaller than the parent

The tree is ordered

Each node has at most two children

Values in the right subtree are smaller than the parent

17
New cards

What is the maximum number of edges in an undirected graph with n vertices?

Group of answer choices

2n

n-1

n

n(n-1)/2

n(n-1)/2

18
New cards

What is the height of a tree?

Group of answer choices

The number of edges in the tree

The number of vertices in the tree

The length of the shortest path from the root to a leaf

The length of the longest simple path from the root to a leaf*

The length of the longest simple path from the root to a leaf*

19
New cards

Which sorting algorithm is typically implemented using recursion?

Group of answer choices

Merge sort

Selection sort

Bubble sort

Insertion sort

Merge sort

20
New cards

What is the main purpose of documentation in software development?

Group of answer choices

To replace testing

To make the program run faster

To reduce memory usage

To improve maintainability and knowledge transfer*

To improve maintainability and knowledge transfer*

Explore top flashcards

Topic 5 - Forces
Updated 153d ago
flashcards Flashcards (20)
unit 6
Updated 1046d ago
flashcards Flashcards (71)
Unit 4 AOS 1.1
Updated 930d ago
flashcards Flashcards (68)
APUSH UNIT 3
Updated 644d ago
flashcards Flashcards (36)
Endocrine Vocab
Updated 689d ago
flashcards Flashcards (34)
Chapter 2
Updated 734d ago
flashcards Flashcards (32)
Topic 5 - Forces
Updated 153d ago
flashcards Flashcards (20)
unit 6
Updated 1046d ago
flashcards Flashcards (71)
Unit 4 AOS 1.1
Updated 930d ago
flashcards Flashcards (68)
APUSH UNIT 3
Updated 644d ago
flashcards Flashcards (36)
Endocrine Vocab
Updated 689d ago
flashcards Flashcards (34)
Chapter 2
Updated 734d ago
flashcards Flashcards (32)