MCQOPTIONS
Bookmark
Saved Bookmarks
→
Technical Questions
→
Database
→
What is math.floor(3.6)?
1.
What is math.floor(3.6)?
A.
6
B.
3
C.
3.5
D.
0.6
Answer» C. 3.5
Show Answer
Discussion
No Comment Found
Post Comment
Related MCQs
Which Of The Following Statements Is Most Accurate For The Declaration X = Circle()?
What would be the output of the following program ?_x005F_x000D_ main() _x005F_x000D_ {_x005F_x000D_     unsigned  int a = oxffff;_x005F_x000D_     ~a;_x005F_x000D_     printf ("%x", a);_x005F_x000D_ }
What would be the output of the following program ?_x005F_x000D_ main()_x005F_x000D_ {_x005F_x000D_ Â Â Â const int x = 5;Â _x005F_x000D_ Â Â Â int *ptrx;_x005F_x000D_ Â Â Â ptrx = &x;_x005F_x000D_ Â Â Â *ptr = 10;_x005F_x000D_ Â Â Â Â printf ("%d", x);_x005F_x000D_ }
What will be output when you will execute following c code?#include void main()_x005F_x000D_ {Â Â Â int const SIZE = 5;Â Â Â int expr;Â Â Â double value[SIZE] = { 2.0, 4.0, 6.0, 8.0, 10.0 };Â Â Â expr=1|2|3|4;Â Â Â printf ( "%f", value[expr] );}
What will output when you compile and run the following code?#include struct student{_x005F_x000D_ int roll;int cgpa;int sgpa[8];_x005F_x000D_ };_x005F_x000D_ void main(){_x005F_x000D_ struct student s = { 12,8,7,2,5,9 };int *ptr;ptr = (int *)&s;clrscr();printf( "%d", *(ptr+3) );getch();_x005F_x000D_ }
What will be output when you will execute following c code?#include void main()_x005F_x000D_ {Â Â Â Â switch(2)_x005F_x000D_ Â Â Â {Â Â Â Â Â Â case 1L:printf("No");Â Â Â Â Â Â case 2L:printf("%s","I");Â Â Â Â Â Â Â goto Love;Â Â Â Â Â Â case 3L:printf("Please");Â Â Â Â Â Â case 4L:Love:printf("Hi");Â Â Â Â } }
What will be output when you will execute following c code?#include void main()_x005F_x000D_ {   signed int a = -1;   unsigned int b = -1u;   if(a == b)        printf( "The Lord of the Rings" );   else        printf( "American Beauty" );}
What will be output when you will execute following c code?#include enum actor_x005F_x000D_ {   SeanPenn=5,   AlPacino=-2,   GaryOldman,   EdNorton};void main()_x005F_x000D_ {    enum actor a=0;    switch(a)_x005F_x000D_    {     case SeanPenn: printf("Kevin Spacey");                        break;     case AlPacino: printf("Paul Giamatti");                        break;     case GaryOldman:printf("Donald Shuterland");                        break;     case EdNorton: printf("Johnny Depp");   } }
What will be output of the following c program ?_x005F_x000D_ #include_x005F_x000D_ int main()_x005F_x000D_ {_x005F_x000D_ Â Â int max-val=100;_x005F_x000D_ Â Â int min-val=10;_x005F_x000D_ Â Â int avg-val;_x005F_x000D_ Â Â avg-val =( max-val + min-val ) / 2;_x005F_x000D_ Â Â printf( "%d", avg-val );_x005F_x000D_ Â Â return 0;_x005F_x000D_ }
What will be output of following program ?_x005F_x000D_ #includeint main()_x005F_x000D_ {_x005F_x000D_ int a = 10;void *p = &a;int *ptr = p;printf("%u",*ptr);return 0;_x005F_x000D_ }
Reply to Comment
×
Name
*
Email
*
Comment
*
Submit Reply
Your experience on this site will be improved by allowing cookies. Read
Cookie Policy
Reject
Allow cookies