Time Left - 04:00 mins

RRB JE (IT) : C language + C++ language Quiz 2

Attempt now to get your rank among 456 students!

Question 1

C document can support……..

Question 2

Block structured computer language is

Question 3

Find the output of the following program.
main( )
{
extern int i;
i = 20;
pirntf(“%d”, i);
}

Question 4

What is the output of this C++ program?
#include <iostream>
using namespace std;
void square (int *x);
{
*x = (*x)++*(*x);
}
void square (int *x, int *y)
{
*x = (*x)*--(*y);
}
int main ()
{
int number = 30;
square(&number, &number);
cout << number;
return 0;
}

Question 5

Which of the following operator(s) cannot be overloaded?
  • 456 attempts
  • 2 upvotes
  • 0 comments
Jul 9GATE & PSU CS