Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

1. Which of the following belong to the integer family of data types? (pick 4 correct answers) char int pointer short int struct float object

1. Which of the following belong to the integer family of data types? (pick 4 correct answers)

char

int

pointer

short int

struct

float

object

long int

double

2. What is true of the data type char?

a.

char is always 16 bits.

b.

char is always unsigned

c.

char is a tiny signed integer

d.

char can only hold a printable ASCII character.

e.

char is a tiny integer, signed or unsigned depending on the compiler.

3. What is the data type of the following literal: 3.3347

4. A string in C is a sequence of characters in memory terminated by a byte containing ________.

5. Write a declaration for an array named values that holds 20 items of data type int.

6. Use typedef to declare a type that is named pDouble that is a pointer to a double. Use spaces sensibly. Don't use tabs.

7. The ________ of an identifier is the area in the source program in which that identifier may be used.

8. In the following program, find all the identifiers which have file scope.

double a, b; 
static int c; 
int d ( float e ) 
{ 
 int f, g; 
 double h; 
 for ( f=0; f<10; f++ ) 
 { 
 int i; 
 . . . 
 } 
} 
int j () 
{ 
. . . 
} 

a

b

c

d

e

f

g

h

i

j

9. In the following program, find all the identifiers which have external linkage.

double a, b; 
static int c; 
int d ( float e ) 
{ 
 int f, g; 
 double h; 
 for ( f=0; f<10; f++ ) 
 { 
 int i; 
 . . . 
 } 
} 
int j () 
{ 
 . . . 
} 
 

a

b

c

d

e

f

g

h

i

j

10. Variables outside of any blocks are always stored _______ in memory.

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image_2

Step: 3

blur-text-image_3

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Students also viewed these Databases questions

Question

Need a complete junit test

Answered: 1 week ago

Question

design a simple disciplinary and grievance procedure.

Answered: 1 week ago