Question

Consider the following statements about 'Functions' in C

1. A function can be called any number of times.
2. A function gets called when the function name is followed by a semicolon.
3. The order in which functions are defined in a program and the order in which they are called must be the same.

Which of the above statements are correct?

a.

All

b.

1 and 2 only

c.

1 and 3 only

d.

2 and 3 only

Answer: (b).1 and 2 only

Interact with the Community - Share Your Thoughts

Uncertain About the Answer? Seek Clarification Here.

Understand the Explanation? Include it Here.

Q. Consider the following statements about 'Functions' in C 1. A function can be called any number of times. 2. A function gets called when the function name is followed by a...

Similar Questions

Explore Relevant Multiple Choice Questions (MCQs)

Q. A failure rate of 0.01 percent in 1000 hours in a memory corresponds to an MTBF of

Q. Consider the following statements about expressing real constants in exponential form in C

1. The mantissa and exponent are separated either by e or E.
2. The mantissa and exponent may have positive or negative sign.
3. Default sign of mantissa is positive.
4. Default sign of exponent is negative.

Which of the above statements are wrong?

Q. If F = 95.0 what will be the result of following FORTRAN 77 program?

REAL F , C
READ * , F
C = (5. / 9.) * (F - 32.)

Q. Consider the following library functions

1. EXP (i.e., ex)
2. ARCTAN (i.e. tan‾¹ x)
3. SQRT (i.e., √x)
4. AES (i.e. |x|)

Which of the above are allowed in Pascal?

Q. Consider the following program in Basic

10 READ X, Y, Z
15 DATA 20, 30, 10
20 S = X + Y + Z
30 A = S/3
35 PRINT S, A, X, Y, Z
40 END

The output will be

Q. Let the initial contents of ACC and CY in 8085 be

1. CY = 1
2. ACC = 10000001

After the instruction RAL is executed twice the contents of CY and ACC respectively will be

Q. A nibble corresponds to

Q. Consider the following statements

1. An assembler is a program having assembly language program as input and machine language program as output.
2. A macro assembler is an assembler with additional macro facilities.
3. A cross assembler for a μP X is an assembler which executes on source microcomputer with a different CPU than X bit generates code for X.
4. Assemblers generally do not provide macro facilities.

Of the above statement

Q. A computer window has a bar at its top to bear the name of window. This bar is called

Q. Read the following statements about files in Pascal

1. A file can grow or shrink dynamically.
2. A file which consists of only characters is called text file.
3. Text files may be read and written using standard Pascal READ and WRITE procedures.
4. Every file must have a beginning but may or may not have an end.

Which of the above are correct?

Q. If word length is 16 bits the decimal equivalent of largest number which can be stored is

Q. Assertion (A): Dynamic RAM needs refreshing.

Reason (R): Capacitors tend to loose charge.

Q. When one operand is real and one integer in Pascal, which of the following operations are not allowed?

Q. Consider the following statements about an array in Pascal

1. An array has a fixed predetermined number of components.
2. Any component of an array can be accessed using an index.
3. An array variable name refers to a group of quantities by a single name.
4. When array variables are used an appropriate declaration is required.

Which of the above are correct?

Q. Which of the following is a valid integer constant?

Q. When two ALU 1C 74181 are cascaded

Q. For the floating point numbers 1.81 x 10‾²⁹ and 0.0152 x 10¹⁸ the normalised forms are

Q. In computers the secondary memory is faster than primary memory.

Q. Consider the following in C

1. An arithmetic operation between integer and an integer gives integer as the result.
2. An arithmetic operation between a real and a real constant gives real constant as the result.
3. An arithmetic operation between an integer constant and a real constant is not valid.

Which of the above are correct?

Q. Binary storage of decimal number 44 in 8 bits is

Recommended Subjects

Are you eager to expand your knowledge beyond Electronics and Communication Engineering? We've handpicked a range of related categories that you might find intriguing.

Click on the categories below to discover a wealth of MCQs and enrich your understanding of various subjects. Happy exploring!