What is the output of this program?
#include <stdio.h>
#include <math.h>
int main ()
{
double param, result;
param = 5.5;
result = log (param);
printf ("%lf", result );
return 0;
}
None of the mentioned
3.14
1.704
5.5
Browse topic-based Object Oriented Programming Using C++ practice sets.
24 practice sets · Page 1 of 2
What is the output of this program?
#include <stdio.h>
#include <math.h>
int main ()
{
double param, result;
param = 5.5;
result = log (param);
printf ("%lf", result );
return 0;
}
None of the mentioned
3.14
1.704
5.5
What is the output of this program?
#include <stdio.h>
#include <math.h>
int main ()
{
int param, result;
int n;
param = 8.0;
result = frexp (param , &n);
printf ("%d \n", param);
return 0;
}
7
9
8
6
How many macros are used by mathematical functions in the header file?
2
3
1
4
Which header file is required for manipulation of math functions in c++?
none of the mentioned
maths
cmath
math
A do-while loop contains
no statement at all between the do statement and the while statement
only two statement between the do statement and the while statement
several statements between the do statement and the while statement
only one statement between the do statement and the while statement
Which of the following numerical value(s) is(are) invalid constant(s)?
0.7
12345678
27,512
9.3el2
A variable declared in a function is called a(n) _____ variable
local
global
reference
area
A programming structure that contains data and a pointer to the next object is a
linked list
template
pointer class
class
"Rohan Motors" is a _____
character literal constant
variable
string literal constant
numeric literal constant
Reserving memory during program execution is known as reserving it
statically
functionally
powerfully
dynamically
The most efficient data type for a variable that stores the number 4.6e20 is the _____ data type
Double
Character
Float
Long Integer
Which of the following while clause will stop the loop when the value in the age variable is less than the number 0?
while age < 0
while (age < 0)
while (age >= 0)
while age >= 0;
Evaluate the following expression:
7 >=3 + 4 || 6<4 && 2<5
Can't say
May be
True
False
Which of the following statements is true ?
Data-structured coupling is looser than control coupling
Control coupling is looser than data coupling
Common coupling is looser than data coupling
Data coupling is tighter than pathological coupling
The preprocessor directive always starts with the symbol
""
&
%
Which of the following statements will display the word "Hello" on the computer screen?
cin << "Hello";
cout << "Hello";
cout >> "Hello";
cin >> "Hello";
A compound statement does not consist of
other compound statements
control statements
expression statements
a single statement
When a language has the capability to produce new data types, it is said to be
reprehensible
overloaded
encapsulated
extensible
The operator that releases previously allocated memory is _____
delete
destroy
return
release
Which of the following is the inequality operator?
<>
-->
=
!=