Curioustab
Aptitude
General Knowledge
Verbal Reasoning
Computer Science
Interview
Aptitude
General Knowledge
Verbal Reasoning
Computer Science
Interview
Programming Questions
main() { char s[ ] = "man"; int i; for( i=0; s[ i ]; i++) printf( "n%c%c%c%c", s[ i ], *(s+i), *(i+s), i[s] ); }
What will be output of following c code? #include int main() { int x=123; int i={ printf("c" "++") }; for(x=0;x<=i;x++){ printf("%x ",x); } return 0; }
A source program is the program written in which level language ?
main() { char *p; p = "Hello"; printf ("%cn", *&*p); }
Which of the following is not a valid escape code?
#define clrscr() 100 main() { clrscr(); printf( "%dn", clrscr() ); }
Write a quick script for launching a new activity within your application.
The coding or scrambling of data so that humans cannot read them, is known as _____.
public static void main string[] args Meaning is?
If the binary equivalent of 5.375 in normalized form is 0100 0000 1010 1100 0000 0000 0000 0000, what would be the output of the following program? main() { float a = 5.375 ; char *p; int i; p = ( char* ) &a ; for ( i = 0; i <= 3 ; i++ ) printf ( " %02x ", (unsigned char ) p[i] ); }
enum colors {BLACK,BLUE,GREEN} main() { printf( "%d..%d..%d", BLACK, BLUE, GREEN ); return(1); }
What will be output when you will execute following c code? #include void main() { signed int a = -1; unsigned int b = -1u; if(a == b) printf( "The Lord of the Rings" ); else printf( "American Beauty" ); }
What would be the output of the following program? main() { extern int fun ( float ); int a; a = fun ( 3. 14 ); printf ("%d", a); } int fun ( aa ) float aa ; { return ( (int) aa ); }
In programming, repeating some statements is usually called ?
What will be output when you will execute following c code? #include void main() { int const SIZE = 5; int expr; double value[SIZE] = { 2.0, 4.0, 6.0, 8.0, 10.0 }; expr=1|2|3|4; printf ( "%f", value[expr] ); }
A function cannot be defined inside another function
What will be output of the following c program ? #include int main() { int max-val=100; int min-val=10; int avg-val; avg-val =( max-val + min-val ) / 2; printf( "%d", avg-val ); return 0; }
SNOBOL is mainly used for
What is the output of this C code? #include int main() { int a = 1, b = 1; switch (a) { case a*b: printf("yes "); case a-b: printf("non"); break; } }
Which of the following statement is true?
1
2
3
4
5
6