Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Need help with the below questions: 1: In the sample code listed below, what do we consider num1 and num2? Module AddNumbers (num1, num2) :

Need help with the below questions:

1:

image text in transcribedimage text in transcribedimage text in transcribedimage text in transcribed
In the sample code listed below, what do we consider num1 and num2? Module AddNumbers (num1, num2) : new_sum as integer new_sum = num1 + num2 Print new_sum End Module Module Main( ) mynum1 as integer mynum2 as integer mynum1 = 5 mynum2 = 7 AddNumbers (mynum1, mynum2) End Module O arguments O global variables O local variables O parameters Check It!In the sample code listed below, what do we consider mynum1 and mynum2? Module AddNumbers (num1, num2) : new_sum as integer new_sum = num1 + num2 Print new_sum End Module Module Main( ) mynum1 as integer mynum2 as integer mynum1 = 5 mynum2 = 7 AddNumbers (mynum1, mynum2) End Module O arguments O global variables constants parameters Check It!Examine the pseudocode below. What is the scope of the variable yournum2? yournum2 as integer yournum2 = 5 Module AddNumbers (num1, num2) : new_sum as integer new_sum = num1 + num2 Print new_sum End Module Module Main() mynum1 as integer mynum1 = 7 AddNumbers (mynum1, yournum2) End Module O local intermittent constant O global Check It!Examine the following pseudcode. Inside the AddNumbers module, what is the scope of the variable new_sum? Module AddNumbers (num1, num2) : new_sum as integer new_sum = num1 + num2 Print new_sum End Module Module Main() mynum1 as integer mynum2 as integer AddNumbers (mynum1, mynum2) End Module O global O intermittent O local O constant Check It

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Modern Dental Assisting

Authors: Doni Bird, Debbie Robinson

13th Edition

978-0323624855, 0323624855

Students also viewed these Programming questions