Screen Shot 2022-09-25 at 2.57.21 PM

png

School

Moraine Valley Community College *

*We aren’t endorsed by this school

Course

240

Subject

Computer Science

Date

Dec 6, 2023

Type

png

Pages

1

Uploaded by ProfResolve12236

Report
Question 1 1/1pts Which of the following is the correct way to declare a pointer? int *ptr; int &ptr; Pointer ptr; All of the above is correct. none of the above is correct. Question 2 1/1pts Which of the following give the value stored at the address pointed to by ptr? ptr “ptr val(ptr) &ptr Question 3 1/1pts Which of the following gives the address pointed to by ptr? ptr ptr address(ptr) &ptr Question 4 1/1pts The operator used to access a member function of an object using a pointer to the object is: none of the above is correct Question 5 1/1pts Which of these is the correct way to allocate a dynamic memory location for an integer? int *x = new int; int X = new “int; int* x = int new Question 6 1/1pts N N N B Which of the following is a pool of memory used for dynamic memory allocation? Dump Heap Reserve Stack Question 7 2/2pts What common bug is shown in the following code snippet? int * foo; *foo = 5; syntax error type mismatch uninitialized pointer None of the above phrases describes the bug
Discover more documents: Sign up today!
Unlock a world of knowledge! Explore tailored content for a richer learning experience. Here's what you'll get:
  • Access to all documents
  • Unlimited textbook solutions
  • 24/7 expert homework help