Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

B. The c C. The break s skips the D. The continue and break statement can both be used in loop statement and switch statement

image text in transcribed

B. The c C. The break s skips the D. The continue and break statement can both be used in loop statement and switch statement 8) In the following statements about function, which is INCORRECT? A. Every program in C begins executing at the function main). B. The void in parentheses after main indicates that main does not require any input information C. Every statement must end with a comma D. Lines beginning with # are processed by the preprocessor before the program is compiled. 9) In the following statements about function, which is INCORRECT? and A. A function prototype declares the return type of the function and declares the number, the types, the order of the parameters the function expects to receive. B. Function prototype enables the compiler to verify that functions are called correctly C. The compiler ignores the variable names mentioned in the function prototype D. The function definition part should be put right after the function prototype in the source file 10) In the following statements about function mechanism, which is I NCORRECT A. The program execution stack is a data structure that supports last-in, first-out ( B. The program executi C. when D. W on stack contains the memory for the local variables used in each invocation of a function a function call is made, the activation record for that function call is popped off the program execution stack. hen the function returns to its caller, the activation record for this function call is deleted in the program execution stack. ) In the following statements about variable storage, which is INCORRECT? al variables have automatic storage duration by default, so keyword auto is rarely used. B. For static variables, storage is allocated and initialized once, when the program begins execution. C. The static variables created by a function will be deleted after the function returns D. Global variables will retain their values throughout the executing of the program 12) In the following statements about variable scope, which is INCORRECT? A. The scope of an identifier is the portion of the program in which the identifier can be referenced. B. A variable declared outside any function has function scope. C. The identifiers defined inside a block, which is identified by a pair of "()", have block scope. D. The identifiers used in the parameter list of a function prototype have function-prototype scope 13) In the following statements about array, which is CORRECT? A. An array is a group of memory locations which have the same name and the same type. B. The element first in every array is the first element. C. The position number of an array is also called a subscript, which can be any number

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

Step: 3

blur-text-image

Ace Your Homework with AI

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

Get Started

Recommended Textbook for

The Accidental Data Scientist

Authors: Amy Affelt

1st Edition

1573877077, 9781573877077

More Books

Students also viewed these Databases questions

Question

13. You always should try to make a good first impression.

Answered: 1 week ago