ExamVeda
Login
Home
21
What does the given C code do?
double atan2 (double y, double x);
Discuss
Answer & Solution
Answer: Option C
No explanation is given for this question. Let's Discuss on Board
22
A type whose alignment requirement is at least as large as that of every data type . . . . . . . .
Discuss
Answer & Solution
Answer: Option D
No explanation is given for this question. Let's Discuss on Board
23
Select the correct statement.
Discuss
Answer & Solution
Answer: Option A
No explanation is given for this question. Let's Discuss on Board
24
If the expression in void assert(int expression) is zero then a message is printed on stderr(standard error file).
Discuss
Answer & Solution
Answer: Option A
No explanation is given for this question. Let's Discuss on Board
25
Correct code to turn assertions ON at various places throughout a source file is . . . . . . . .
Discuss
Answer & Solution
Answer: Option A
No explanation is given for this question. Let's Discuss on Board
26
The . . . . . . . . function is used to convert the initial portion of the string pointed to by, to unsigned long int representation.
Discuss
Answer & Solution
Answer: Option C
No explanation is given for this question. Let's Discuss on Board
27
Which function restores the environment saved by the most recent invocation of the setjmp() macro in the same invocation of the program?
Discuss
Answer & Solution
Answer: Option B
No explanation is given for this question. Let's Discuss on Board
28
Which function searches an environmenr list that are provided by the host environment?
Discuss
Answer & Solution
Answer: Option A
No explanation is given for this question. Let's Discuss on Board
29
What will be the output of the following C code if the name entered is "TOM" and time taken to enter this name is 2 seconds?
#include <stdio.h>
#include <time.h>
int main ()
{
	time_t time1,time2;
	char get_input [256];
	double dif_sec;
	time (&time1);
	printf ("Please enter the name of your pet: ");
	gets (get_input);
	time (&time2);
	dif_sec = difftime (time2,time1);
	printf ("%.2f\n", dif_sec );
	return 0;
}
Discuss
Answer & Solution
Answer: Option D
No explanation is given for this question. Let's Discuss on Board
30
What error occurs if an input argument is outside the domain over which the mathematical function is de?ned?
Discuss
Answer & Solution
Answer: Option A
No explanation is given for this question. Let's Discuss on Board