Q.1
Which of the following will copy the null-terminated string that is in array src into array dest?
  • dest = src;
  • dest == src;
  • strcpy(dest, src);
  • strcpy(src, dest);
Q.2
What value does read() return when it has reached the end of a file?
  • 1
  • -1
  • 0
  • None
Q.3
SNOBOL is mainly used for
  • Text Operation
  • String operations
  • List operations
  • Numerical operations
Q.4
Choose a right C Statement.
  • Loops or Repetition block executes a group of statements repeatedly.
  • Loop is usually executed as long as a condition is met.
  • Loops usually take advantage of Loop Counter
  • All the above.
Q.5
What is the output of C Program.?
  • GREEN
  • RABBIT GREEN
  • RABBIT is printed unlimited number of times.
  • Compiler error.
Q.6
What is the output of C Program.?int main() { int a=do { printf("%d ", a); a++; }while(a <= 30); return}
  • 32
  • 33
  • 30
  • No Output
Q.7
What is the output of C Program.?int main() { int a=while(a >= 3); { printf("RABBIT\n"); break; } printf("GREEN"); return}
  • GREEN
  • RABBIT GREEN
  • RABBIT is printed infinite times
  • None of the above
Q.8
Choose a correct C do while syntax.
  • dowhile(condition) { //statements }
  • do while(condition) { //statements }
  • do { //statements }while(condition)
  • do { //statements }while(condition);
0 h : 0 m : 1 s