must be utilized? O alibrary of functions defined in a single translation unit, with variables defined once which must be accessible to at the library O a program arranged with functions in many translation units and all global data together in one translation unit. O alibrary of functions implementing a mathematical relationship using a lookup table stored in read-only memory. O a function that calls another function in a different translation unit, for which no declaration exists for the called function header file or otherwise. O a library of functions defined in a single translation unit, with data objects which must be exposed to functions. 15. Which of the following statements are correct regarding std:weak ptr in C++ O Each instance does not increase the reference count of the pointer object being shared. O The object being referenced by the std:weak_ptr instance must be checked to see if it still exists before it can be accessed. O Access to an instance's contained pointer is via operator-»0. O An instance can transfer ownership of its contained pointer if assigned to an object of std: unique_ptr.

Computer Networking: A Top-Down Approach (7th Edition)
7th Edition
ISBN:9780133594140
Author:James Kurose, Keith Ross
Publisher:James Kurose, Keith Ross
Chapter1: Computer Networks And The Internet
Section: Chapter Questions
Problem R1RQ: What is the difference between a host and an end system? List several different types of end...
icon
Related questions
Question

Please answer the all McQ questions given in below.....

14. Which of the following identify programming scenarious in which the ANSI C EXTERN keyword
must be utilized?
O alibary of functions defined in a single translation unit, with variables defined once which
must be accessible to at the library
O a program arranged with functions in many translation units and all global data together in
one translation unit.
O alibrary of functions implementing a mathematical relationship using a lookup table stored in
read-only memory.
O a function that calls another function in a different translation unit, for which no declaration
exists for the called fnction header file or otherwise.
O alibary of functions defined in a single translation unit, with data objects which must be
exposed to functions.
15. Which of the following statements are corect regarding std:weak ptr in C++
O Each instance does not increase the reference count of the pointer object being shared.
O The object being referenced by the std:weak_ptr instance must be checked to seeif it still
exists before it can be accessed.
O Access to an instance's contained pointer is via operator-0.
O An instance can transfer ownership of its contained pointer if assigned to an object of
std:unique_ptr.
O E An instance must be initialized by either an object of std:shared_ptr or another
std:weak_ptr.
17. Which of the following represents the number of times that the for loop in the ANSI C function
below will come
int foo (void)
{
int i;
for (i = -10; i< 10; ++i)
process( );
}
O 10
O 20
O 19
O 2
U 100
Transcribed Image Text:14. Which of the following identify programming scenarious in which the ANSI C EXTERN keyword must be utilized? O alibary of functions defined in a single translation unit, with variables defined once which must be accessible to at the library O a program arranged with functions in many translation units and all global data together in one translation unit. O alibrary of functions implementing a mathematical relationship using a lookup table stored in read-only memory. O a function that calls another function in a different translation unit, for which no declaration exists for the called fnction header file or otherwise. O alibary of functions defined in a single translation unit, with data objects which must be exposed to functions. 15. Which of the following statements are corect regarding std:weak ptr in C++ O Each instance does not increase the reference count of the pointer object being shared. O The object being referenced by the std:weak_ptr instance must be checked to seeif it still exists before it can be accessed. O Access to an instance's contained pointer is via operator-0. O An instance can transfer ownership of its contained pointer if assigned to an object of std:unique_ptr. O E An instance must be initialized by either an object of std:shared_ptr or another std:weak_ptr. 17. Which of the following represents the number of times that the for loop in the ANSI C function below will come int foo (void) { int i; for (i = -10; i< 10; ++i) process( ); } O 10 O 20 O 19 O 2 U 100
Expert Solution
steps

Step by step

Solved in 3 steps

Blurred answer
Recommended textbooks for you
Computer Networking: A Top-Down Approach (7th Edi…
Computer Networking: A Top-Down Approach (7th Edi…
Computer Engineering
ISBN:
9780133594140
Author:
James Kurose, Keith Ross
Publisher:
PEARSON
Computer Organization and Design MIPS Edition, Fi…
Computer Organization and Design MIPS Edition, Fi…
Computer Engineering
ISBN:
9780124077263
Author:
David A. Patterson, John L. Hennessy
Publisher:
Elsevier Science
Network+ Guide to Networks (MindTap Course List)
Network+ Guide to Networks (MindTap Course List)
Computer Engineering
ISBN:
9781337569330
Author:
Jill West, Tamara Dean, Jean Andrews
Publisher:
Cengage Learning
Concepts of Database Management
Concepts of Database Management
Computer Engineering
ISBN:
9781337093422
Author:
Joy L. Starks, Philip J. Pratt, Mary Z. Last
Publisher:
Cengage Learning
Prelude to Programming
Prelude to Programming
Computer Engineering
ISBN:
9780133750423
Author:
VENIT, Stewart
Publisher:
Pearson Education
Sc Business Data Communications and Networking, T…
Sc Business Data Communications and Networking, T…
Computer Engineering
ISBN:
9781119368830
Author:
FITZGERALD
Publisher:
WILEY