Programming Last Exam

Réussis tes devoirs et examens dès maintenant avec Quizwiz!

There are ___ standard file streams available to the user in C.

3

n C when the double quote operator is used to denote a string. C automatically adds a ______ to the end of the string.

NULL character

The keyword typedef accomplishes the same exact thing as the #define pre-processor keyword.

false

Dynamic memory gets memory from the ________ a block of memory, usually considered "slow" memory.

heap

The four steps required to process a file using a user defined file stream in C are:______________________

declare the file stream pointer, open the file, access the file and close the file

Choose the best answer to complete the statement: The struct construct ________________________________________________________.

defines a new type, which can be used to declare a variable with subitems.

A ________ is a sequence of one or more characters used to determine when to stop processing something.

delimiter

The special structure used in C to create a user defined file stream is the FILE structure using all capital letters. We also need to declare a __________ to the FILE structure.

pointer

Dynamic memory is allocated during ____________.

runtime

The program almost always runs in _______ memory which is considered faster access memory.

stack

The name of an array is a pointer to ________________.

the first element in the array

Like a function prototype, a user defined type should be declared in the global declarations area of a program because it may be used in more than one function of the program.

true

The typdef keyword is used to both rename an existing type and it can be used to define and name a user defined type.

true

There is no sting data type in C.

true

You may define a user type using typedef inside of a function or globally.

true

Which definition statement is correct?

typedef double BIGMAC;

Which definition statement is correct:

typedef unsigned char BYTE;

Text files only contain __________ characters.

ASCII

The __________ is memory that holds the characters read from or written to the file interfacing with the user defined file stream.

buffer

A string is a sequence of _________ which are often treated as a single dimensional array of _______.

characters, characters

Static memory allocation requires that the ____________ and definition of memory be specified at compile time.

declaration

Structures contain _____________ that are accessed using ______ ________.

members, dot notation


Ensembles d'études connexes

MET 101 Ch 15 Current Weather Studies

View Set

Structure and Function of the Spinal cord

View Set

Politics of the Middle East Final

View Set

Adult 1 - Unit 7 - Ch. 33: Assessment and Management of Patients with Allergic Disorders

View Set

Health: Male Reproductive System.

View Set

Chapter 27: Care of the Mother and Newborn - Study Guide

View Set

Chapter 13 Alabama Insurance Law pertinent to Life Ins only

View Set