Home / Programming Questions / Page 1889

Prgramming MCQs Feed | Page - 1889

R

Ram Sharma • 188.81K Points
Coach

(A) Function scopes variable
(B) Block scoped variable
(C) Constant
(D) Constant with no initial value

R

Ram Sharma • 188.81K Points
Coach

(A) date_modify()
(B) modify_timestamp()
(C) date_stamp()
(D) stamp()

R

Ram Sharma • 188.81K Points
Coach

Code:
#include<stdio.h>
struct STRUCT
{
  int x;
  int f()
  {
      printf("Welcom to StackHowTo\n");
  }
};
int main()
{
  struct STRUCT s;
  s.f();
  return 0;
}
(A) The program returns an error in C and C++
(B) The program returns an error in C++ but works perfectly in C.
(C) The program works correctly in C and C++ and displays “Welcom to StackHowTo” as output.
(D) The program returns an error in C but works perfectly in C++.

R

Ram Sharma • 188.81K Points
Coach

(A) dw
(B) cw
(C) nn
(D) cc

R

Ram Sharma • 188.81K Points
Coach

(A) Mother for all database
(B) Unique for all database
(C) Template for all database
(D) None of these.

M

Monu Rathod • 7.03K Points
Tutor III

Code:
#include <stdio.h>
    int x = 0;
    int main()
    {
        int i = (f() + g()) | g(); //bitwise or
        int j = g() | (f() + g()); //bitwise or
    }
    int f()
    {
        if (x == 0)
            return x + 1;
        else
            return x - 1;
    }
    int g()
    {
        return x++;
    }
(A) i value is 1 and j value is 1
(B) i value is 0 and j value is 0
(C) i value is 1 and j value is undefined
(D) i and j value are undefined

R

Ram Sharma • 188.81K Points
Coach

Code:
<!DOCTYPE html>
<html>
<body>
<ul _____________>
<li>
Physics
</li>
<li>
Chemistry
</li>
<li>
Mathematics
</li>
</ul>
</body>
</html>
(A) style= "style:square;"
(B) style="type:square;"
(C) style="list-type:square;"
(D) style="list-style-type:square;"

I

Indresh • 9.81K Points
Tutor III

Code:
    functiondisplayArray(x)  
    {  
    varlen=x.length,i=0;  
    if(len==0)  
    console.log("Empty Array");  
    else  
    {  
    do  
    {  
                 console.log(x[i]);  
    } while (++i<len);  
    }  
    }  
(A) Prints the numbers in the array in specific order
(B) Prints the numbers in the array in the reverse order
(C) Prints "Empty Array"
(D) Prints 0 to the length of the array