Curioustab
Aptitude
General Knowledge
Verbal Reasoning
Computer Science
Interview
Aptitude
General Knowledge
Verbal Reasoning
Computer Science
Interview
Programming Questions
How many times i value is checked in the below code? #include int main() { int i = 0; do { i++; printf( "In while loopn" ); } while (i < 3); }
void main() { char good *better, *best; printf( "%d..%d", sizeof(better), sizeof(best) ); }
Output of the Program : main() { int i = 1; while (i <= 5) { printf( "%d", i ); if (i > 2) goto here; i++; } } fun() { here : printf( "PP" ); }
Which Of The Following Statements Is Most Accurate For The Declaration X = Circle()?
What is the output of this C code? #include void main() { int y = 3; int x = 5 % 2 * 3 / 2; printf("Value of x is %d", x); }
What is the output of this C code? #include void main() { int x = 1, z = 3; int y = x << 3; printf( "%dn", y ); }
What would be the output of the following program ? main() { const int x = 5; int *ptrx; ptrx = &x; *ptr = 10; printf ("%d", x); }
Point out the error in the following program. main() { char mybuf[] = "Zanzibar" ; char yourbuf[] = " Zienckewiz"; char * const ptr = mybuf; *ptr = 'a'; ptr = yourbuf; }
What do the functions atoi(), itoa() and gcvt () do? Show how would you use them in a program.
What's the difference between the functions rand(), random(), srand() and randomize()?
What will be output when you will execute following c code? #include void main() { switch(2) { case 1L:printf("No"); case 2L:printf("%s","I"); goto Love; case 3L:printf("Please"); case 4L:Love:printf("Hi"); } }
Write a c program for linear search.
Rewrite the following set of statements using conditional operators. int a =1, b ; if ( a > 10 ) b = 20;
How many times the following program would print 'Jamboree'? main() { printf ( "\nJamboree"); main (); }
Macro flowchart is also called as
public abstract interface Frobnicate { public void twiddle(String s); } Which is a correct class?
Convert the expression ((A + B) * C – (D – E) ^ (F + G)) to equivalent Prefix Notation
What value does read() return when it has reached the end of a file?
What will be output of following program? #include int main() { void (*p)(); int (*q)(); int (*r)(); p = clrscr; q = getch; r = puts; (*p)(); (*r)("www.curioustab.com"); (*q)(); return 0; }
What would be the output of the following program? main() { char a[] = "Visual C++"; char *b = "Visual C++"; printf ("\n%d %d", sizeof (a), sizeof (b)); printf ("\n%d %d", sizeof (*a), sizeof (*b)); }
1
2
3
4
5
6