Explore topic-wise MCQs in Testing Subject.

This section includes 657 Mcqs, each offering curated multiple-choice questions to sharpen your Testing Subject knowledge and support exam preparation. Choose a topic below to get started.

1.

What will be the output of the program? #include int main() { const char *s = ""; char str[] = "Hello"; s = str; while(*s) printf("%c", *s++); return 0; }

A. Error
B. H
C. Hello
D. Hel
Answer» D. Hel
2.

What will be the output of the program? #include int main() { int y=128; const int x=y; printf("%d\n", x); return 0; }

A. 128
B. Garbage value
C. Error
D. 0
Answer» B. Garbage value