Question for C Programming

Rely on our professional academic writers and forget about missing deadlines. All custom papers are written from scratch.


Order a Similar Paper Order a Different Paper

Question 1

1. 
Dynamic Memory
Allocation that we studied this week happens at

 

 
 

 

 
 

 

 
 

 

 
 

 

 

 

Run Time

 

 

 

 

Compile Time

 

 

 

 

Play Time

 

 

 

 

None of the Above

 

Question 2

1. 
Which is proper way to
use a pointer to a structure to reference the wage member?

 

 
 

 

 
 

 

 
 

 

 
 

 

 

 

(*emp_ptr).wage

 

 

 

 

emp_ptr -> wage

 

 

 

 

Both the first two answers will do the same thing

 

 

 

 

None of the Above

 

Question 3

1. 
A structure
can have a member who is declared to be a pointer to some type in C

True

False

Question 4

1. 
Each item in a linked
list is referred to as a …

 

 
 

 

 
 

 

 
 

 

 
 

 

 

 

node

 

 

 

 

link

 

 

 

 

value

 

 

 

 

handle

 

Question 5

1. 
Which is a false
statement about “malloc”

 

 
 

 

 
 

 

 
 

 

 
 

 

 

 

Is a function that is part of the C Library

 

 

 

 

Returned area in the heap is initialized to 0

 

 

 

 

returns 0 if unable to allocate memory in the heap

 

 

 

 

returns a pointer to the start of the area in the heap

 

 

Question 6

1. 
cfree is used to return back memory in the heap
allocated with the malloc statement

True

False

Question 7

1. 
Given that a is an
array name, and i is an index to that array:  Which is the basic rule that
suggests the relationship between pointer and arrays?

 

 
 

 

 
 

 

 
 

 

 
 

 

 

 

a [ i ] = ( * ( a + i ) )

 

 

 

 

i  = ( * ( a + i ) )

 

 

 

 

a [ i ] = * i

 

 

 

 

a [ i ] =  i

 

Question 8

1. 
Given:  char a[ ] = “0123456789”; and int i = 5; … it is possible to
reference i [ a ] ?

True

False

Question 9

1. 
Which of the following
is the proper keyword or function to deallocate memory?

 

 
 

 

 
 

 

 
 

 

 
 

 

 

 

free

 

 

 

 

delete

 

 

 

 

clear

 

 

 

 

remove

 

Question 10

1. 
Which of the following
is the proper keyword or function to allocate memory in C?

 

 
 

 

 
 

 

 
 

 

 
 

 

 

 

new

 

 

 

 

malloc

 

 

 

 

create

 

 

 

 

value

 

Needs help with similar assignment?

We are available 24x7 to deliver the best services and assignment ready within 3-4 hours? Order a custom-written, plagiarism-free paper

Order Over WhatsApp Place an Order Online