A computer science student completes a program and asks a classmate for feedback. The classmate suggests rewriting some of the code to include more procedural abstraction. Which of the following is NOT a benefit of procedural abstraction?

AP CSP Procedures #3

Quiz
•
Computers
•
9th - 12th Grade
•
Medium
Herman Galioulline
Used 77+ times
FREE Resource
5 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
2 mins • 1 pt
Making the code more readable
Making the code run faster
Providing more opportunities for code reuse
Reducing the amount of duplicated code
2.
MULTIPLE CHOICE QUESTION
2 mins • 1 pt
A student has a data file containing 10,000 numerical values. The student is writing a program to compute the average of the numbers contained in the file. Which of the following procedures is most likely to be useful in the student’s program?
A procedure that returns the quotient when dividing one value by another
A procedure that returns the sum when adding one value to another
A procedure that returns the sum of the values in the file
A procedure that returns true if the file contains any duplicate values and returns false otherwise
3.
MULTIPLE CHOICE QUESTION
2 mins • 1 pt
Which of the following procedures would be most useful as part of a program to determine whether a word appears in two different text files?
A procedure getWords, which takes a positive integer n and a text file as input and returns the first n words in the text file.
A procedure isFound, which takes a word and a text file as input and returns true if the word appears in the text file
A procedure textMatch, which takes two text files as input and returns true if the two text files are identical.
A procedure sameSize, which takes two text files as input and returns true if the two text files contain the same number of words.
4.
MULTIPLE CHOICE QUESTION
2 mins • 1 pt
A student is writing a program that is intended to replace each negative value in a particular column of a spreadsheet with the value 0. Which of the following procedures is most likely to be useful in the student’s program?
A procedure containsNegatives, which returns true if any negative values appear in the column and returns false otherwise.
A procedure countNegatives, which returns the number of negative values that appear in the column.
A procedure findNegative, which returns the row number of the first negative value that appears in the column or -1 if there are no negative values.
A procedure minimum, which returns the minimum value that appears in the column.
5.
MULTIPLE CHOICE QUESTION
2 mins • 1 pt
Similar Resources on Quizizz
10 questions
1.2.5. Data Compression

Quiz
•
9th - 11th Grade
10 questions
HTML Tags

Quiz
•
9th Grade
10 questions
Huffman Coding

Quiz
•
6th - 10th Grade
10 questions
Lesson 8: Multimedia

Quiz
•
11th Grade
10 questions
Lesson 1 Database Basics

Quiz
•
9th - 11th Grade
10 questions
HTML Basics

Quiz
•
7th - 10th Grade
10 questions
OCR GCSE CS 1.7 MCQ2 System Software (J276)

Quiz
•
9th - 10th Grade
10 questions
INFORMATION TECHNOLOGY

Quiz
•
6th - 10th Grade
Popular Resources on Quizizz
15 questions
Multiplication Facts

Quiz
•
4th Grade
20 questions
Math Review - Grade 6

Quiz
•
6th Grade
20 questions
math review

Quiz
•
4th Grade
5 questions
capitalization in sentences

Quiz
•
5th - 8th Grade
10 questions
Juneteenth History and Significance

Interactive video
•
5th - 8th Grade
15 questions
Adding and Subtracting Fractions

Quiz
•
5th Grade
10 questions
R2H Day One Internship Expectation Review Guidelines

Quiz
•
Professional Development
12 questions
Dividing Fractions

Quiz
•
6th Grade
Discover more resources for Computers
25 questions
Spanish preterite verbs (irregular/changed)

Quiz
•
9th - 10th Grade
10 questions
Identify Slope and y-intercept (from equation)

Quiz
•
8th - 9th Grade
10 questions
Juneteenth: History and Significance

Interactive video
•
7th - 12th Grade
8 questions
"Keeping the City of Venice Afloat" - STAAR Bootcamp, Day 1

Quiz
•
9th - 12th Grade
26 questions
June 19th

Quiz
•
4th - 9th Grade
20 questions
Distance, Midpoint, and Slope

Quiz
•
10th Grade
20 questions
Figurative Language Review

Quiz
•
10th Grade
27 questions
STAAR English 1 Review

Quiz
•
9th Grade