SlideShare une entreprise Scribd logo
1  sur  12
Télécharger pour lire hors ligne
Buy here:
http://theperfecthomework.com/cmsc-330-quiz-4/
Quiz
Top of Form
Note:​ It is recommended that you save your response as you complete each
question.
Question 1​ (5 points)
Which of the following parameter passing techniques involves copying the argument to the
corresponding parameter?
Question 1 options:
Call by result
Call by reference
Call by name
Call by value
Save
Question 2​ (5 points)
In languages that distinguish between procedures and functions how do procedure calls
compare to function calls?
Question 2 options:
Both function and procedure calls are expressions
Both function and procedure calls are statements
A function call is an expression whereas a procedure call is a statement
A function call is a statement whereas a procedure call is an expression
Save
Question 3​ (5 points)
What is the scope of a local variable?
Question 3 options:
The package
The class
The subprogram
The program
Save
Question 4​ (5 points)
When the static modifier is placed on a C++ local variable, what does it change?
Question 4 options:
The lifetime of the variable
The scope of the variable
Both the scope and lifetime of the variable
The initial value of the variable
Save
Question 5​ (5 points)
Which is the following is not contained in an activation record?
Question 5 options:
Local variables
Global variables
Parameters
Temporary variables
Save
Question 6​ (5 points)
For which of the following parameter passing techniques can the argument be a constant or
an expression?
Question 6 options:
Call by value
Call by result
Call by reference
Call by value-result
Save
Question 7​ (5 points)
Which of the following function prototypes would be permitted for a C or C++ function with a
multidimensional array parameter?
Question 7 options:
void f(int matrix [10][])
void f(int matrix)
void f(int matrix [][])
void f(int matrix [][10])
Save
Question 8​ (5 points)
In which of the following languages is it impossible to write a subprogram that swaps two
parameters of a primitive integer type?
Question 8 options:
Java
Ada
C
C++
Save
Question 9​ (5 points)
Which of the following languages does not permit operator overloading?
Question 9 options:
Java
C#
Ada
C++
Save
Question 10​ (5 points)
Which of the following languages does not permit subprograms or pointers to them to be
passed as parameters?
Question 10 options:
Ada
Pascal
C++
Java
Save
Question 11​ (5 points)
What kind of method does the following Java method signature define? public static <T>
sort(T[] array);
Question 11 options:
An abstract method
An overloaded method
A generic method
A nested method
Save
Question 12​ (5 points)
Pass-by-result is an implementation model for which parameter mode?
Question 12 options:
in
out-in
out
in-out
Save
Question 13​ (5 points)
Which all the following parameter passing techniques can not be used to pass data in and
back out from a subprogram?
Question 13 options:
Call-by-value
Call by value-result
Call by name
Call by reference
Save
Question 14​ (5 points)
Which of the following languages does not allow default parameters?
Question 14 options:
C++
Java
Ada
C#
Save
Question 15​ (5 points)
Which of the following languages permits nested subprograms?
Question 15 options:
Ada
Java
C
C++
Save
Question 16​ (5 points)
Which type of variables are stored in activation records?
Question 16 options:
Static global variables
Heap-dynamic variables
Stack-dynamic local variables
Heap global variables
Save
Question 17​ (5 points)
When a language allows nested subprograms, which of the following techniques can be
used to implement the storage of their local variables?
Question 17 options:
Blocks
Parameter chains
Dynamic chains
Static chains
Save
Question 18​ (5 points)
Which of the following best describe the relative complexity of implementing nested
subprograms compared to nested blocks.
Question 18 options:
Implementing nested subprograms is simpler
Implementing nested blocks is simpler
They are both equally complex
It depends upon the length of the block or subprogram
Save
Question 19​ (5 points)
What C++ parameter passing technique can be used in place of call-by-value when it is
desirable to avoid making a copy of the parameter?
Question 19 options:
by result
by value-result
by reference
by constant reference
Save
Question 20​ (5 points)
Which of the following is the correct statement about parameter passing in Java?
Question 20 options:
primitives are passed by value and object are passed by reference
everything is passed by value
the programmer can code passing by value or reference
everything is passed by reference
Save
Bottom of Form

Contenu connexe

Tendances

9781439035665 ppt ch04
9781439035665 ppt ch049781439035665 ppt ch04
9781439035665 ppt ch04
Terry Yoast
 
9781111530532 ppt ch05
9781111530532 ppt ch059781111530532 ppt ch05
9781111530532 ppt ch05
Terry Yoast
 
9781111530532 ppt ch07
9781111530532 ppt ch079781111530532 ppt ch07
9781111530532 ppt ch07
Terry Yoast
 
9781111530532 ppt ch02
9781111530532 ppt ch029781111530532 ppt ch02
9781111530532 ppt ch02
Terry Yoast
 
9781111530532 ppt ch06
9781111530532 ppt ch069781111530532 ppt ch06
9781111530532 ppt ch06
Terry Yoast
 
Programming Paradigms Seminar 1
Programming Paradigms Seminar 1Programming Paradigms Seminar 1
Programming Paradigms Seminar 1
neoxiuting
 

Tendances (19)

Staroletov MBC (Model Based Checking)
Staroletov MBC (Model Based Checking)Staroletov MBC (Model Based Checking)
Staroletov MBC (Model Based Checking)
 
9781439035665 ppt ch04
9781439035665 ppt ch049781439035665 ppt ch04
9781439035665 ppt ch04
 
p4pktgen: Automated Test Case Generation for P4 Programs
p4pktgen:  Automated Test Case  Generation for P4 Programsp4pktgen:  Automated Test Case  Generation for P4 Programs
p4pktgen: Automated Test Case Generation for P4 Programs
 
Console manual impl
Console manual implConsole manual impl
Console manual impl
 
(Costless) Software Abstractions for Parallel Architectures
(Costless) Software Abstractions for Parallel Architectures(Costless) Software Abstractions for Parallel Architectures
(Costless) Software Abstractions for Parallel Architectures
 
C aptitude book
C aptitude bookC aptitude book
C aptitude book
 
Software Design Principles and Best Practices - Satyajit Dey
Software Design Principles and Best Practices - Satyajit DeySoftware Design Principles and Best Practices - Satyajit Dey
Software Design Principles and Best Practices - Satyajit Dey
 
Introduction to Procedural Programming in C++
Introduction to Procedural Programming in C++Introduction to Procedural Programming in C++
Introduction to Procedural Programming in C++
 
9781111530532 ppt ch05
9781111530532 ppt ch059781111530532 ppt ch05
9781111530532 ppt ch05
 
10. sub program
10. sub program10. sub program
10. sub program
 
9781111530532 ppt ch07
9781111530532 ppt ch079781111530532 ppt ch07
9781111530532 ppt ch07
 
Python Programming language
Python Programming languagePython Programming language
Python Programming language
 
9781111530532 ppt ch02
9781111530532 ppt ch029781111530532 ppt ch02
9781111530532 ppt ch02
 
9. control statement
9. control statement9. control statement
9. control statement
 
Considered the brain of the computer gpu cpu/tutorialoutlet
Considered the brain of the computer gpu cpu/tutorialoutletConsidered the brain of the computer gpu cpu/tutorialoutlet
Considered the brain of the computer gpu cpu/tutorialoutlet
 
9781111530532 ppt ch06
9781111530532 ppt ch069781111530532 ppt ch06
9781111530532 ppt ch06
 
Automatic Task-based Code Generation for High Performance DSEL
Automatic Task-based Code Generation for High Performance DSELAutomatic Task-based Code Generation for High Performance DSEL
Automatic Task-based Code Generation for High Performance DSEL
 
Csebits
CsebitsCsebits
Csebits
 
Programming Paradigms Seminar 1
Programming Paradigms Seminar 1Programming Paradigms Seminar 1
Programming Paradigms Seminar 1
 

Similaire à CMSC 330 QUIZ 4

How can you change the default browser that Visual Studio uses when yo.pdf
How can you change the default browser that Visual Studio uses when yo.pdfHow can you change the default browser that Visual Studio uses when yo.pdf
How can you change the default browser that Visual Studio uses when yo.pdf
krishnac481
 
11.CS2005-ExamBrief-2021.22(2).pptx
11.CS2005-ExamBrief-2021.22(2).pptx11.CS2005-ExamBrief-2021.22(2).pptx
11.CS2005-ExamBrief-2021.22(2).pptx
PocketRocketDC
 
11614, 1021 AMTake Test 5451 Q3Page 1 of 7httpsnccu.docx
11614, 1021 AMTake Test 5451 Q3Page 1 of 7httpsnccu.docx11614, 1021 AMTake Test 5451 Q3Page 1 of 7httpsnccu.docx
11614, 1021 AMTake Test 5451 Q3Page 1 of 7httpsnccu.docx
hyacinthshackley2629
 
9781111530532 ppt ch07
9781111530532 ppt ch079781111530532 ppt ch07
9781111530532 ppt ch07
Terry Yoast
 
What is the most common database query languageQuestion 1 answer.docx
What is the most common database query languageQuestion 1 answer.docxWhat is the most common database query languageQuestion 1 answer.docx
What is the most common database query languageQuestion 1 answer.docx
kendalfarrier
 
Clotho: Saving Programs from Malformed Strings and Incorrect String-handling
Clotho: Saving Programs from Malformed Strings and Incorrect String-handling�Clotho: Saving Programs from Malformed Strings and Incorrect String-handling�
Clotho: Saving Programs from Malformed Strings and Incorrect String-handling
Cybersecurity Education and Research Centre
 
IFSM 310 Software and Hardware Infrastructure ConceptsComputer.docx
IFSM 310 Software and Hardware Infrastructure ConceptsComputer.docxIFSM 310 Software and Hardware Infrastructure ConceptsComputer.docx
IFSM 310 Software and Hardware Infrastructure ConceptsComputer.docx
scuttsginette
 

Similaire à CMSC 330 QUIZ 4 (20)

How can you change the default browser that Visual Studio uses when yo.pdf
How can you change the default browser that Visual Studio uses when yo.pdfHow can you change the default browser that Visual Studio uses when yo.pdf
How can you change the default browser that Visual Studio uses when yo.pdf
 
Vb.net
Vb.netVb.net
Vb.net
 
11.CS2005-ExamBrief-2021.22(2).pptx
11.CS2005-ExamBrief-2021.22(2).pptx11.CS2005-ExamBrief-2021.22(2).pptx
11.CS2005-ExamBrief-2021.22(2).pptx
 
C programming interview questions
C programming interview questionsC programming interview questions
C programming interview questions
 
Latest .Net Questions and Answers
Latest .Net Questions and Answers Latest .Net Questions and Answers
Latest .Net Questions and Answers
 
11614, 1021 AMTake Test 5451 Q3Page 1 of 7httpsnccu.docx
11614, 1021 AMTake Test 5451 Q3Page 1 of 7httpsnccu.docx11614, 1021 AMTake Test 5451 Q3Page 1 of 7httpsnccu.docx
11614, 1021 AMTake Test 5451 Q3Page 1 of 7httpsnccu.docx
 
Cprogramminginterviewquestions 120622074544-phpapp01
Cprogramminginterviewquestions 120622074544-phpapp01Cprogramminginterviewquestions 120622074544-phpapp01
Cprogramminginterviewquestions 120622074544-phpapp01
 
14274730 (1).ppt
14274730 (1).ppt14274730 (1).ppt
14274730 (1).ppt
 
Ppt chapter04
Ppt chapter04Ppt chapter04
Ppt chapter04
 
Pptchapter04
Pptchapter04Pptchapter04
Pptchapter04
 
As novidades do C# 5.0
As novidades do C# 5.0As novidades do C# 5.0
As novidades do C# 5.0
 
What's New In C# 5.0 - Programar 2013
What's New In C# 5.0 - Programar 2013What's New In C# 5.0 - Programar 2013
What's New In C# 5.0 - Programar 2013
 
GSP 125 Entire Course NEW
GSP 125 Entire Course NEWGSP 125 Entire Course NEW
GSP 125 Entire Course NEW
 
Cracking OCA and OCP Java 8 Exams
Cracking OCA and OCP Java 8 ExamsCracking OCA and OCP Java 8 Exams
Cracking OCA and OCP Java 8 Exams
 
9781111530532 ppt ch07
9781111530532 ppt ch079781111530532 ppt ch07
9781111530532 ppt ch07
 
Chapter 5: Names, Bindings and Scopes (review Questions and Problem Set)
Chapter 5: Names, Bindings and Scopes (review Questions and Problem Set)Chapter 5: Names, Bindings and Scopes (review Questions and Problem Set)
Chapter 5: Names, Bindings and Scopes (review Questions and Problem Set)
 
What is the most common database query languageQuestion 1 answer.docx
What is the most common database query languageQuestion 1 answer.docxWhat is the most common database query languageQuestion 1 answer.docx
What is the most common database query languageQuestion 1 answer.docx
 
Clotho: Saving Programs from Malformed Strings and Incorrect String-handling
Clotho: Saving Programs from Malformed Strings and Incorrect String-handling�Clotho: Saving Programs from Malformed Strings and Incorrect String-handling�
Clotho: Saving Programs from Malformed Strings and Incorrect String-handling
 
Code metrics in PHP
Code metrics in PHPCode metrics in PHP
Code metrics in PHP
 
IFSM 310 Software and Hardware Infrastructure ConceptsComputer.docx
IFSM 310 Software and Hardware Infrastructure ConceptsComputer.docxIFSM 310 Software and Hardware Infrastructure ConceptsComputer.docx
IFSM 310 Software and Hardware Infrastructure ConceptsComputer.docx
 

Plus de HamesKellor

Plus de HamesKellor (20)

CMST 290 FINAL EXAM
CMST 290 FINAL EXAMCMST 290 FINAL EXAM
CMST 290 FINAL EXAM
 
CMST 301 PROJECT 1 CASE STUDY
CMST 301 PROJECT 1 CASE STUDYCMST 301 PROJECT 1 CASE STUDY
CMST 301 PROJECT 1 CASE STUDY
 
CMSC 350 PROJECT 3
CMSC 350 PROJECT 3CMSC 350 PROJECT 3
CMSC 350 PROJECT 3
 
CMSC 350 PROJECT 4
CMSC 350 PROJECT 4 CMSC 350 PROJECT 4
CMSC 350 PROJECT 4
 
CMSC 350 PROJECT 4
CMSC 350 PROJECT 4CMSC 350 PROJECT 4
CMSC 350 PROJECT 4
 
CMSC 350 PROJECT 1
CMSC 350 PROJECT 1CMSC 350 PROJECT 1
CMSC 350 PROJECT 1
 
CMSC 350 FINAL PROJECT
CMSC 350 FINAL PROJECTCMSC 350 FINAL PROJECT
CMSC 350 FINAL PROJECT
 
CMSC 350 HOMEWORK 2
CMSC 350 HOMEWORK 2CMSC 350 HOMEWORK 2
CMSC 350 HOMEWORK 2
 
CMSC 350 HOMEWORK 3
CMSC 350 HOMEWORK 3CMSC 350 HOMEWORK 3
CMSC 350 HOMEWORK 3
 
CMSC 350 HOMEWORK 1
CMSC 350 HOMEWORK 1CMSC 350 HOMEWORK 1
CMSC 350 HOMEWORK 1
 
CMSC 335 HOMEWORK 3
CMSC 335 HOMEWORK 3CMSC 335 HOMEWORK 3
CMSC 335 HOMEWORK 3
 
CMSC 330 PROJECT 1
CMSC 330 PROJECT 1CMSC 330 PROJECT 1
CMSC 330 PROJECT 1
 
CMSC 335 FINAL PROJECT
CMSC 335 FINAL PROJECTCMSC 335 FINAL PROJECT
CMSC 335 FINAL PROJECT
 
CMIT 425 RISK ASSESSMENT PAPER
CMIT 425 RISK ASSESSMENT PAPERCMIT 425 RISK ASSESSMENT PAPER
CMIT 425 RISK ASSESSMENT PAPER
 
CMIT 391 LINUX IMPLEMENTATION PROPOSAL
CMIT 391 LINUX IMPLEMENTATION PROPOSALCMIT 391 LINUX IMPLEMENTATION PROPOSAL
CMIT 391 LINUX IMPLEMENTATION PROPOSAL
 
CMIT/265 FINAL PROJECT NETWORK DESIGN PROPOSAL
CMIT/265 FINAL PROJECT NETWORK DESIGN PROPOSALCMIT/265 FINAL PROJECT NETWORK DESIGN PROPOSAL
CMIT/265 FINAL PROJECT NETWORK DESIGN PROPOSAL
 
CMIT 321 WEEK 2 QUIZ.
CMIT 321 WEEK 2 QUIZ.CMIT 321 WEEK 2 QUIZ.
CMIT 321 WEEK 2 QUIZ.
 
CMIT 370 FINAL EXAM
CMIT 370 FINAL EXAMCMIT 370 FINAL EXAM
CMIT 370 FINAL EXAM
 
CMIT 350 FINAL EXAM CCNA CERTIFICATION PRACTICE EXAM
CMIT 350 FINAL EXAM CCNA CERTIFICATION PRACTICE EXAMCMIT 350 FINAL EXAM CCNA CERTIFICATION PRACTICE EXAM
CMIT 350 FINAL EXAM CCNA CERTIFICATION PRACTICE EXAM
 
CMIT 321 QUIZ 4
CMIT 321 QUIZ 4CMIT 321 QUIZ 4
CMIT 321 QUIZ 4
 

Dernier

Call Girls From Pari Chowk Greater Noida ❤️8448577510 ⊹Best Escorts Service I...
Call Girls From Pari Chowk Greater Noida ❤️8448577510 ⊹Best Escorts Service I...Call Girls From Pari Chowk Greater Noida ❤️8448577510 ⊹Best Escorts Service I...
Call Girls From Pari Chowk Greater Noida ❤️8448577510 ⊹Best Escorts Service I...
lizamodels9
 
unwanted pregnancy Kit [+918133066128] Abortion Pills IN Dubai UAE Abudhabi
unwanted pregnancy Kit [+918133066128] Abortion Pills IN Dubai UAE Abudhabiunwanted pregnancy Kit [+918133066128] Abortion Pills IN Dubai UAE Abudhabi
unwanted pregnancy Kit [+918133066128] Abortion Pills IN Dubai UAE Abudhabi
Abortion pills in Kuwait Cytotec pills in Kuwait
 
Call Girls In Majnu Ka Tilla 959961~3876 Shot 2000 Night 8000
Call Girls In Majnu Ka Tilla 959961~3876 Shot 2000 Night 8000Call Girls In Majnu Ka Tilla 959961~3876 Shot 2000 Night 8000
Call Girls In Majnu Ka Tilla 959961~3876 Shot 2000 Night 8000
dlhescort
 
The Abortion pills for sale in Qatar@Doha [+27737758557] []Deira Dubai Kuwait
The Abortion pills for sale in Qatar@Doha [+27737758557] []Deira Dubai KuwaitThe Abortion pills for sale in Qatar@Doha [+27737758557] []Deira Dubai Kuwait
The Abortion pills for sale in Qatar@Doha [+27737758557] []Deira Dubai Kuwait
daisycvs
 
FULL ENJOY Call Girls In Majnu Ka Tilla, Delhi Contact Us 8377877756
FULL ENJOY Call Girls In Majnu Ka Tilla, Delhi Contact Us 8377877756FULL ENJOY Call Girls In Majnu Ka Tilla, Delhi Contact Us 8377877756
FULL ENJOY Call Girls In Majnu Ka Tilla, Delhi Contact Us 8377877756
dollysharma2066
 
Chandigarh Escorts Service 📞8868886958📞 Just📲 Call Nihal Chandigarh Call Girl...
Chandigarh Escorts Service 📞8868886958📞 Just📲 Call Nihal Chandigarh Call Girl...Chandigarh Escorts Service 📞8868886958📞 Just📲 Call Nihal Chandigarh Call Girl...
Chandigarh Escorts Service 📞8868886958📞 Just📲 Call Nihal Chandigarh Call Girl...
Sheetaleventcompany
 
Call Girls Electronic City Just Call 👗 7737669865 👗 Top Class Call Girl Servi...
Call Girls Electronic City Just Call 👗 7737669865 👗 Top Class Call Girl Servi...Call Girls Electronic City Just Call 👗 7737669865 👗 Top Class Call Girl Servi...
Call Girls Electronic City Just Call 👗 7737669865 👗 Top Class Call Girl Servi...
amitlee9823
 

Dernier (20)

Eluru Call Girls Service ☎ ️93326-06886 ❤️‍🔥 Enjoy 24/7 Escort Service
Eluru Call Girls Service ☎ ️93326-06886 ❤️‍🔥 Enjoy 24/7 Escort ServiceEluru Call Girls Service ☎ ️93326-06886 ❤️‍🔥 Enjoy 24/7 Escort Service
Eluru Call Girls Service ☎ ️93326-06886 ❤️‍🔥 Enjoy 24/7 Escort Service
 
Mysore Call Girls 8617370543 WhatsApp Number 24x7 Best Services
Mysore Call Girls 8617370543 WhatsApp Number 24x7 Best ServicesMysore Call Girls 8617370543 WhatsApp Number 24x7 Best Services
Mysore Call Girls 8617370543 WhatsApp Number 24x7 Best Services
 
Marel Q1 2024 Investor Presentation from May 8, 2024
Marel Q1 2024 Investor Presentation from May 8, 2024Marel Q1 2024 Investor Presentation from May 8, 2024
Marel Q1 2024 Investor Presentation from May 8, 2024
 
Call Girls From Pari Chowk Greater Noida ❤️8448577510 ⊹Best Escorts Service I...
Call Girls From Pari Chowk Greater Noida ❤️8448577510 ⊹Best Escorts Service I...Call Girls From Pari Chowk Greater Noida ❤️8448577510 ⊹Best Escorts Service I...
Call Girls From Pari Chowk Greater Noida ❤️8448577510 ⊹Best Escorts Service I...
 
JAYNAGAR CALL GIRL IN 98274*61493 ❤CALL GIRLS IN ESCORT SERVICE❤CALL GIRL
JAYNAGAR CALL GIRL IN 98274*61493 ❤CALL GIRLS IN ESCORT SERVICE❤CALL GIRLJAYNAGAR CALL GIRL IN 98274*61493 ❤CALL GIRLS IN ESCORT SERVICE❤CALL GIRL
JAYNAGAR CALL GIRL IN 98274*61493 ❤CALL GIRLS IN ESCORT SERVICE❤CALL GIRL
 
Falcon Invoice Discounting: Empowering Your Business Growth
Falcon Invoice Discounting: Empowering Your Business GrowthFalcon Invoice Discounting: Empowering Your Business Growth
Falcon Invoice Discounting: Empowering Your Business Growth
 
Falcon's Invoice Discounting: Your Path to Prosperity
Falcon's Invoice Discounting: Your Path to ProsperityFalcon's Invoice Discounting: Your Path to Prosperity
Falcon's Invoice Discounting: Your Path to Prosperity
 
RSA Conference Exhibitor List 2024 - Exhibitors Data
RSA Conference Exhibitor List 2024 - Exhibitors DataRSA Conference Exhibitor List 2024 - Exhibitors Data
RSA Conference Exhibitor List 2024 - Exhibitors Data
 
Famous Olympic Siblings from the 21st Century
Famous Olympic Siblings from the 21st CenturyFamous Olympic Siblings from the 21st Century
Famous Olympic Siblings from the 21st Century
 
Organizational Transformation Lead with Culture
Organizational Transformation Lead with CultureOrganizational Transformation Lead with Culture
Organizational Transformation Lead with Culture
 
unwanted pregnancy Kit [+918133066128] Abortion Pills IN Dubai UAE Abudhabi
unwanted pregnancy Kit [+918133066128] Abortion Pills IN Dubai UAE Abudhabiunwanted pregnancy Kit [+918133066128] Abortion Pills IN Dubai UAE Abudhabi
unwanted pregnancy Kit [+918133066128] Abortion Pills IN Dubai UAE Abudhabi
 
Call Girls In Majnu Ka Tilla 959961~3876 Shot 2000 Night 8000
Call Girls In Majnu Ka Tilla 959961~3876 Shot 2000 Night 8000Call Girls In Majnu Ka Tilla 959961~3876 Shot 2000 Night 8000
Call Girls In Majnu Ka Tilla 959961~3876 Shot 2000 Night 8000
 
BAGALUR CALL GIRL IN 98274*61493 ❤CALL GIRLS IN ESCORT SERVICE❤CALL GIRL
BAGALUR CALL GIRL IN 98274*61493 ❤CALL GIRLS IN ESCORT SERVICE❤CALL GIRLBAGALUR CALL GIRL IN 98274*61493 ❤CALL GIRLS IN ESCORT SERVICE❤CALL GIRL
BAGALUR CALL GIRL IN 98274*61493 ❤CALL GIRLS IN ESCORT SERVICE❤CALL GIRL
 
The Abortion pills for sale in Qatar@Doha [+27737758557] []Deira Dubai Kuwait
The Abortion pills for sale in Qatar@Doha [+27737758557] []Deira Dubai KuwaitThe Abortion pills for sale in Qatar@Doha [+27737758557] []Deira Dubai Kuwait
The Abortion pills for sale in Qatar@Doha [+27737758557] []Deira Dubai Kuwait
 
FULL ENJOY Call Girls In Majnu Ka Tilla, Delhi Contact Us 8377877756
FULL ENJOY Call Girls In Majnu Ka Tilla, Delhi Contact Us 8377877756FULL ENJOY Call Girls In Majnu Ka Tilla, Delhi Contact Us 8377877756
FULL ENJOY Call Girls In Majnu Ka Tilla, Delhi Contact Us 8377877756
 
Phases of Negotiation .pptx
 Phases of Negotiation .pptx Phases of Negotiation .pptx
Phases of Negotiation .pptx
 
Business Model Canvas (BMC)- A new venture concept
Business Model Canvas (BMC)-  A new venture conceptBusiness Model Canvas (BMC)-  A new venture concept
Business Model Canvas (BMC)- A new venture concept
 
Uneak White's Personal Brand Exploration Presentation
Uneak White's Personal Brand Exploration PresentationUneak White's Personal Brand Exploration Presentation
Uneak White's Personal Brand Exploration Presentation
 
Chandigarh Escorts Service 📞8868886958📞 Just📲 Call Nihal Chandigarh Call Girl...
Chandigarh Escorts Service 📞8868886958📞 Just📲 Call Nihal Chandigarh Call Girl...Chandigarh Escorts Service 📞8868886958📞 Just📲 Call Nihal Chandigarh Call Girl...
Chandigarh Escorts Service 📞8868886958📞 Just📲 Call Nihal Chandigarh Call Girl...
 
Call Girls Electronic City Just Call 👗 7737669865 👗 Top Class Call Girl Servi...
Call Girls Electronic City Just Call 👗 7737669865 👗 Top Class Call Girl Servi...Call Girls Electronic City Just Call 👗 7737669865 👗 Top Class Call Girl Servi...
Call Girls Electronic City Just Call 👗 7737669865 👗 Top Class Call Girl Servi...
 

CMSC 330 QUIZ 4

  • 1. Buy here: http://theperfecthomework.com/cmsc-330-quiz-4/ Quiz Top of Form Note:​ It is recommended that you save your response as you complete each question. Question 1​ (5 points) Which of the following parameter passing techniques involves copying the argument to the corresponding parameter? Question 1 options: Call by result Call by reference Call by name Call by value Save Question 2​ (5 points)
  • 2. In languages that distinguish between procedures and functions how do procedure calls compare to function calls? Question 2 options: Both function and procedure calls are expressions Both function and procedure calls are statements A function call is an expression whereas a procedure call is a statement A function call is a statement whereas a procedure call is an expression Save Question 3​ (5 points) What is the scope of a local variable? Question 3 options: The package The class The subprogram The program Save Question 4​ (5 points)
  • 3. When the static modifier is placed on a C++ local variable, what does it change? Question 4 options: The lifetime of the variable The scope of the variable Both the scope and lifetime of the variable The initial value of the variable Save Question 5​ (5 points) Which is the following is not contained in an activation record? Question 5 options: Local variables Global variables Parameters Temporary variables Save
  • 4. Question 6​ (5 points) For which of the following parameter passing techniques can the argument be a constant or an expression? Question 6 options: Call by value Call by result Call by reference Call by value-result Save Question 7​ (5 points) Which of the following function prototypes would be permitted for a C or C++ function with a multidimensional array parameter? Question 7 options: void f(int matrix [10][]) void f(int matrix) void f(int matrix [][])
  • 5. void f(int matrix [][10]) Save Question 8​ (5 points) In which of the following languages is it impossible to write a subprogram that swaps two parameters of a primitive integer type? Question 8 options: Java Ada C C++ Save Question 9​ (5 points) Which of the following languages does not permit operator overloading? Question 9 options: Java C#
  • 6. Ada C++ Save Question 10​ (5 points) Which of the following languages does not permit subprograms or pointers to them to be passed as parameters? Question 10 options: Ada Pascal C++ Java Save Question 11​ (5 points) What kind of method does the following Java method signature define? public static <T> sort(T[] array); Question 11 options:
  • 7. An abstract method An overloaded method A generic method A nested method Save Question 12​ (5 points) Pass-by-result is an implementation model for which parameter mode? Question 12 options: in out-in out in-out Save Question 13​ (5 points) Which all the following parameter passing techniques can not be used to pass data in and back out from a subprogram?
  • 8. Question 13 options: Call-by-value Call by value-result Call by name Call by reference Save Question 14​ (5 points) Which of the following languages does not allow default parameters? Question 14 options: C++ Java Ada C# Save Question 15​ (5 points)
  • 9. Which of the following languages permits nested subprograms? Question 15 options: Ada Java C C++ Save Question 16​ (5 points) Which type of variables are stored in activation records? Question 16 options: Static global variables Heap-dynamic variables Stack-dynamic local variables Heap global variables Save Question 17​ (5 points)
  • 10. When a language allows nested subprograms, which of the following techniques can be used to implement the storage of their local variables? Question 17 options: Blocks Parameter chains Dynamic chains Static chains Save Question 18​ (5 points) Which of the following best describe the relative complexity of implementing nested subprograms compared to nested blocks. Question 18 options: Implementing nested subprograms is simpler Implementing nested blocks is simpler They are both equally complex It depends upon the length of the block or subprogram
  • 11. Save Question 19​ (5 points) What C++ parameter passing technique can be used in place of call-by-value when it is desirable to avoid making a copy of the parameter? Question 19 options: by result by value-result by reference by constant reference Save Question 20​ (5 points) Which of the following is the correct statement about parameter passing in Java? Question 20 options: primitives are passed by value and object are passed by reference everything is passed by value the programmer can code passing by value or reference
  • 12. everything is passed by reference Save Bottom of Form