Pages

Wednesday, September 1, 2010

According to ANSI specifications which is the correct way of declaring main when it receives command-line arguments?
A.
int main(int argc, char *argv)
B.
int main(argc, argv)
int argc; char *argv;
C.
int main()
{
    int argc; char *argv;
}
D.None of above
The maximum combined length of the command-line arguments including the spaces between adjacent arguments is
A.128 characters
B.256 characters
C.67 characters
D.
It may vary from one operating system to another
1. 
What do the 'c' and 'v' in argv stands for?
A.'c' means argument control 'v' means argument vector
B.'c' means argument count 'v' means argument vertex
C.
'c' means argument count 'v' means argument vector
D.'c' means argument configuration 'v' means argument visibility
The length of the bridge, which a train 130 metres long and travelling at 45 km/hr can cross in 30 seconds, is:
A.200 mB.225 m
C.
245 m
D.250 m
A train 125 m long passes a man, running at 5 kmph in the same direction in which the train is going, in 10 seconds. The speed of the train is:
A.45 km/hrB.
50 km/hr
C.54 km/hrD.55 km/hr
1. 
A train 125 m long passes a man, running at 5 kmph in the same direction in which the train is going, in 10 seconds. The speed of the train is:
A.45 km/hrB.
50 km/hr
C.54 km/hrD.55 km/hr