Procedural and Loop Instructions Quiz

Procedural and Loop Instructions Quiz

12th Grade

15 Qs

quiz-placeholder

Similar activities

Newton's Laws of Motion

Newton's Laws of Motion

10th Grade - University

10 Qs

Solar Panel CH 3: Understanding Electricity Basics Quiz

Solar Panel CH 3: Understanding Electricity Basics Quiz

12th Grade

20 Qs

Lesson 8 SAFETY

Lesson 8 SAFETY

12th Grade - University

19 Qs

Quiz on Coefficient of Linear Expansion

Quiz on Coefficient of Linear Expansion

12th Grade

10 Qs

2-OSH MS

2-OSH MS

12th Grade

10 Qs

Understanding Microprocessors

Understanding Microprocessors

12th Grade

10 Qs

Digital Systems Quiz

Digital Systems Quiz

12th Grade

10 Qs

Plumbing Fittings Quiz

Plumbing Fittings Quiz

12th Grade

10 Qs

Procedural and Loop Instructions Quiz

Procedural and Loop Instructions Quiz

Assessment

Quiz

Engineering

12th Grade

Easy

Created by

Julian Antonio Sison

Used 2+ times

FREE Resource

15 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is a procedure in programming?

A self-contained computer program

A data structure

A type of variable

A debugging tool

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Charlotte is learning about programming and wants to know what is another name for procedures?

Functions

Methods

Subroutines

Classes

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

During a class project, Charlotte needs to call a specific function to calculate the total cost of materials. What does her CALL instruction do?

Ends the program

Branches to a procedure

Declares a variable

Returns control to the main program

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is a reentrant procedure?

A procedure that cannot be interrupted

A procedure that can be executed by multiple processes simultaneously

A procedure that has no parameters

A procedure that is always recursive

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

During a programming class, Ava wrote a function to calculate the sum of two numbers. After completing the function, she needed to return control back to the main program to display the result. What is the purpose of the RET instruction in this context?

To declare a new variable

To call another procedure

To return control to the calling program

To create a loop

6.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What type of branch instruction always results in branching?

Unconditional branches

Indirect branches

Conditional branches

Relative branches

7.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What does the LOOP instruction do?

Decreases the CX register and jumps if CX is not zero

Increases the CX register

Ends the program

Calls another procedure

Create a free account and access millions of resources

Create resources
Host any resource
Get auto-graded reports
or continue with
Microsoft
Apple
Others
By signing up, you agree to our Terms of Service & Privacy Policy
Already have an account?