wayground logo

Free Printable Worksheets

Font size

S
M
L
XL
Worksheets

Mid2 Lab Internal PPS

Total questions: 10

Worksheet time: 6mins

Name
Class
Date
1.

A _____ is a variable whose value is the address of another variable

a)

function

b)

pointer

c)

constant

d)

structure

2.

A function ______ provides the actual body of the function

a)

call

b)

prototype

c)

definition

d)

declaration

3.

_____Allocates requested size of bytes and returns a pointer first byte of allocated space

a)

malloc()

b)

calloc()

c)

free()

d)

realloc()

4.

​ ​ ​ ​ _____allocates multiple blocks of requested memory​

a)

malloc()

b)

calloc()

c)

free()

d)

realloc()

5.

The (a)   file mode creates an empty file for writing

6.

_____gives current position in the file

a)

ftell()

b)

fseek()

c)

rewind()

d)

current()

7.

_____set the position to the beginning point

a)

ftell()

b)

rewind()

c)

home()

d)

fseek()

8.

_____Search is used with sorted array or list.

a)

Linear

b)

Binary

c)

Bubble

d)

none of these

9.

(a)   sort is called as exchange sort.

10.

The strategy behind the _____ sort is similar to the process of sorting a pack of cards

a)

Bubble

b)

Selection

c)

Insertion

d)

Quick