Search Header Logo
H SDD - Design & Implementation (revision)

H SDD - Design & Implementation (revision)

Assessment

Presentation

Computers

10th Grade

Practice Problem

Easy

Created by

G Alexander-Doyle

Used 12+ times

FREE Resource

26 Slides • 14 Questions

1

media

2

media

3

media

4

media

5

Multiple Choice

What is the difference between an actual parameter and a formal parameter in subprograms?

1

An actual parameter is used in the definition of a subprogram, while a formal parameter is used in the call statement.

2

An actual parameter is the value passed into the subprogram, while a formal parameter is the identifier used in the subprogram definition.

3

An actual parameter is always a number, while a formal parameter is always a string.

4

There is no difference between actual and formal parameters.

6

media

7

Fill in the Blank

Type answer...

8

Multiple Choice

Which of the following statements about functions and procedures is correct?

1

A function always displays values on a screen.

2

A procedure always returns a value.

3

A function returns a value, while a procedure performs a task such as displaying values.

4

Neither functions nor procedures use parameters.

9

media

10

Multiple Choice

What will be the output of print(myString[0:5]) if myString = "Tomato & Basil soup"?

1

Tomat

2

Tomato

3

Tomato &

4

Toma

11

media

12

media

13

media

14

Multiple Choice

Which pre-defined function would you use to convert a character to its corresponding ASCII code in Python?

1

chr

2

ord

3

mod

4

ascii

15

media

16

media

17

Multiple Choice

Which of the following statements about the MOD function is correct?

1

It returns the quotient of division.

2

It calculates the remainder after division.

3

It converts a character to ASCII code.

4

It reads data from a file.

18

media

19

media

20

media

21

media

22

Multiple Choice

Which step in the pseudocode for writing from an array of records into a file checks to ensure that only students with a grade of 'A' are written to the file?

1

Get filename from keyboard

2

Open filename in write mode

3

If Students[counter].grade == "A" then do

4

Write row([Students[counter].forename, Students[counter].surname])

23

media

24

media

25

media

26

Multiple Choice

Which of the following is NOT a standard algorithm listed for 1D arrays or arrays of records?

1

Linear search

2

Find minimum and maximum

3

Count occurrences

4

Binary search

27

media

28

Multiple Choice

Standard algorithms for arrays include finding maximum, finding minimum, linear search, and count occurrences. Which one would be used to locate a specific value in an array.

1

Find Maximum

2

Find Minimum

3

Linear Search

4

Count Occurrences

29

media

30

media

31

media

32

Multiple Choice

Which of the following statements about linear search is correct?

1

It always stops after finding the first match.

2

It can use either fixed or conditional loops.

3

It only works for sorted arrays.

4

It does not require a search value.

33

media

34

Fill in the Blank

Type answer...

35

media

36

Open Ended

Explain the difference between a fixed loop and a conditional loop in the context of linear search algorithms.

37

media

38

media

39

Multiple Choice

Which steps are involved in counting the number of values above 50 in an array, according to the pseudocode?

1

Set occurrences to 0, loop through array, increment occurrences if condition is met, display result

2

Set occurrences to 1, loop through array, increment occurrences for every value, display result

3

Loop through array, increment occurrences for every value, display result

4

Set occurrences to 0, loop through array, display result

40

Open Ended

Reflecting on today's lesson about computational constructs, which concept do you find most challenging or would like to explore further?

media

Show answer

Auto Play

Slide 1 / 40

SLIDE