Explore topic-wise MCQs in Testing Subject.

This section includes 657 Mcqs, each offering curated multiple-choice questions to sharpen your Testing Subject knowledge and support exam preparation. Choose a topic below to get started.

1.

The itoa function can convert an integer in decimal, octal or hexadecimal form to a string.

A. Yes
B. No
Answer» B. No
2.

What will the function randomize() do in Turbo C under DOS?

A. returns a random number.
B. returns a random number generator in the specified range.
C. returns a random number generator with a random value based on time.
D. return a random number with a given seed value.
Answer» D. return a random number with a given seed value.
3.

Is standard library a part of C language?

A. Yes
B. No
C. Yes
D. No
Answer» C. Yes
4.

Which standard library function will you use to find the last occurance of a character in a string in C?

A. strnchar()
B. strchar()
C. strrchar()
D. strrchr()
Answer» E.
5.

What is stderr ?

A. standard error
B. standard error types
C. standard error streams
D. standard error definitions
Answer» D. standard error definitions
6.

Point out the error in the following program. #include int main() { fprintf("IndiaBIX"); printf("%.ef", 2.0); return 0; }

A. Error: unknown value in printf() statement.
B. Error: in fprintf() statement.
C. No error and prints "IndiaBIX"
D. No error and prints "2.0"
Answer» C. No error and prints "IndiaBIX"
7.

It is necessary that for the string functions to work safely the strings must be terminated with '\0'.

A. 1
B.
C. 1
D.
Answer» B.
8.

What will be the output of the program? #include int main() { int i; i = printf("How r u\n"); i = printf("%d\n", i); printf("%d\n", i); return 0; }

A. How r u72
B. How r u82
C. How r u11
D. Error: cannot assign printf to variable
Answer» C. How r u11
9.

Does there any function exist to convert the int or float to a string?

A. Yes
B. No
Answer» B. No