Subprograms and ADT

Quiz
•
Computers
•
University
•
Hard
Romualdo Bautista
Used 5+ times
FREE Resource
16 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
45 sec • 1 pt
What are the two fundamental abstraction facilities?
Variable abstraction and Control abstraction
Function abstraction and Procedure abstraction
Data abstraction and Process abstraction
Memory abstraction and Time abstraction
2.
MULTIPLE CHOICE QUESTION
45 sec • 1 pt
Which of the following is NOT a characteristic of subprograms?
Multiple entry points
Control resumes to the caller after subprogram execution
Suspended calling program unit during execution
Multiple subprograms in execution simultaneously
3.
MULTIPLE CHOICE QUESTION
45 sec • 1 pt
What is the purpose of a subprogram definition?
To describe the interface and actions of the subprogram abstraction
To handle exceptions in the subprogram
To allocate memory for the subprogram
To execute the subprogram
4.
MULTIPLE CHOICE QUESTION
45 sec • 1 pt
Which parameter passing method involves transmitting an access path to the subprogram?
Pass by value
Pass by result
Pass by reference
Pass by name
5.
MULTIPLE CHOICE QUESTION
45 sec • 1 pt
What is the main advantage of using abstract data types?
Increased complexity
Reduced modifiability
Improved reliability
Enhanced visibility
6.
MULTIPLE CHOICE QUESTION
45 sec • 1 pt
In C++, what is the purpose of a destructor?
To define the object's behavior
To clean up after the object is destroyed
To allocate memory for the object
To initialize the object
7.
MULTIPLE CHOICE QUESTION
45 sec • 1 pt
Which language provides a second scoping mechanism called package scope?
JavaScript
C++
Java
Python
Create a free account and access millions of resources
Similar Resources on Wayground
20 questions
Cybersecurity Fundamentals Semester Exam

Quiz
•
12th Grade - University
20 questions
Y7 computational thinking

Quiz
•
6th Grade - University
19 questions
Database Management Systems

Quiz
•
University
20 questions
Binary Numbers, Data Compression, and Data Extraction

Quiz
•
9th Grade - University
15 questions
Object Oriented Programming Assessment 1

Quiz
•
University
20 questions
OOP-8AM-11AM

Quiz
•
University
15 questions
Year 9 Revision Quiz

Quiz
•
6th Grade - University
12 questions
UTS Semester 1 Informatika 2024/2025

Quiz
•
8th Grade - University
Popular Resources on Wayground
18 questions
Writing Launch Day 1

Lesson
•
3rd Grade
11 questions
Hallway & Bathroom Expectations

Quiz
•
6th - 8th Grade
11 questions
Standard Response Protocol

Quiz
•
6th - 8th Grade
40 questions
Algebra Review Topics

Quiz
•
9th - 12th Grade
4 questions
Exit Ticket 7/29

Quiz
•
8th Grade
10 questions
Lab Safety Procedures and Guidelines

Interactive video
•
6th - 10th Grade
19 questions
Handbook Overview

Lesson
•
9th - 12th Grade
20 questions
Subject-Verb Agreement

Quiz
•
9th Grade