C LANGUAGE - Programming Online Tests

Basics of C language: Test 6

Question 1: Who is the inventor of C? ...

371 Comments. 4979 views since Sep 15, 2009

Basics of C Language:Test 5

Question 1: Which takes the first precedence in evaluation among the following operators? ...

102 Comments. 1970 views since Sep 29, 2008

Basic of C Language

Question 1: Which of the following denote components of for loop? ...

88 Comments. 1681 views since Sep 28, 2008

Basics of C Language:Test 2

Question 1: What will be the output of this program? #include main() { FILE *fi; fi=fopen("exforsys.C","r"); if(fi=NULL) { puts("File not opened"); exit(1); } puts("FILE opened") } ...

41 Comments. 808 views since Sep 29, 2008

Basics of C Test 1

Question 1: Which of the following statement is false? ...

18 Comments. 471 views since Aug 9, 2008

C: Inputs & Outputs

Question 1: main() { static char str[]="Academy"; printf("%s\n%s",str,"Academy"); } ...

14 Comments. 385 views since Oct 18, 2008

C Language Test

Question 1: In order to properly use a variable - ...

12 Comments. 343 views since Aug 23, 2008

Basics of C Language: Test 3

Question 1: Which of the following denotes file modes that can be used in C program? ...

16 Comments. 292 views since Sep 29, 2008

Basics of C Test 4

Question 1: Which operator performs modulous operation? ...

13 Comments. 239 views since Aug 11, 2008

C: Library Functions & Control Structures

Question 1: The printf() function retunes which value when an error occurs? ...

8 Comments. 233 views since Sep 25, 2008

Basics of C Test 2

Question 1: What is the output of the following 'C' program? main() { printf("%d%d%d,sizeof(3.14f),sizeof(3.14),sizeof(3.14l)); } ...

10 Comments. 223 views since Aug 9, 2008

C Language: Introductory Test 2

Question 1: The conditional operator in C program is denoted by ...

11 Comments. 207 views since Sep 16, 2008

C: Operators & Keywords

Question 1: The number of the relational operators in the C language is ...

7 Comments. 189 views since Sep 25, 2008

C Language: Conditional Statements Test 2

Question 1: main( ) { int x = 30 , y = 40 ; if ( x != y ) printf( "x is equal to y" ) ; elseif ( x > y ) printf( "x is greater than y" ) ; elseif ( x < y ) printf( "x is less than y" ) ; } ...

15 Comments. 187 views since Aug 18, 2008

Introduction to C Language

Question 1: The maximum length of a variable in C is ___ ...

17 Comments. 177 views since Sep 25, 2008

C Language:Functions

Question 1: A function CANNOT be defined inside another function.(T/F)? ...

5 Comments. 166 views since Sep 18, 2008

Operators in C Language

Question 1: The operator / can be applied to ...

10 Comments. 161 views since Sep 25, 2008

C Language: Introductory Test

Question 1: Which of the following denotes a new line character in C program ...

8 Comments. 153 views since Sep 16, 2008

Basics of C language Test 7

Question 1: the declaration int (*p) [5]; means? ...

8 Comments. 139 views since Feb 8, 2011

C Language: Conditional Statements and Operators

Question 1: main( ) { int a = 3, b, c ; if ( a <= 4 ) b = 3 ; c = 2 ; printf ( "\n%d %d", b, c ) ; } ...

12 Comments. 122 views since Aug 17, 2008

C Language: Arithmatic Operations and Data Types

Question 1: main( ) { float a, b ; printf ( "Enter values of a and b" ) ; scanf ( " %d %d ", &a, &b ) ; printf ( "a = %d b = %d", a, b ) ; } ...

5 Comments. 122 views since Aug 17, 2008

C Language: Conditional Statements

Question 1: main( ) { int x = 3 ; float y = 4.0 ; if ( x == y ) printf ( "\nx and y are equal" ) ; else printf ( "\nx and y are not equal" ) ; } ...

9 Comments. 116 views since Aug 17, 2008

C Language: Arithmetic Operations

Question 1: main( ) { float a = 5, b = 2 ; int c ; c = a / b ; printf ( "%d", c ) ; } ...

14 Comments. 115 views since Aug 17, 2008

The Preprocessor

Question 1: #define CUBE(X) (X*X*X) main() { int a; a=27/CUBE(3); printf("%d", a); } ...

5 Comments. 115 views since Sep 27, 2008

Basics of C language: Test 7

Question 1: Who developed unix operating system? ...

6 Comments. 113 views since Jun 23, 2011

Basics of C Test 5

Question 1: What is the final value of digit ? main() { int digit; for(digit=0;digit<=9;++digit) printf("%d/n",digit); digit=2*digit; --digit; } ...

5 Comments. 112 views since Aug 13, 2008

Basics of C language: Test 7

Question 1: #include int main(){ int a=0; #if (a==0) printf("Equal"); #else if printf("Not equal"); #endif return 0; } ...

4 Comments. 111 views since Jun 24, 2011

C Language: Control Statement

Question 1: main() { float a=12.25, b=13.65; if(a=b) printf(:"a and b are equal"); else printf("a and b are not equal"); } ...

9 Comments. 108 views since Sep 4, 2008

C Language: Repetitive Operation & Operator

Question 1: main() { int x=3,z; z=x++ + 10; printf("x=%d z=%d",x,z); } ...

0 Comments. 100 views since Sep 7, 2008

C Language: Decision Control

Question 1: main( ) { int i = 5, j = -1, k = 0, y, z ; y = i + 5 && j + 1 || k + 2 ; z = i + 5 || j + 1 || k + 2 ; printf ( "\ny = %d z = %d", y, z ) ; } ...

5 Comments. 99 views since Aug 18, 2008

C Language: Control Instructions

Question 1: Which of the following is the correct output for the program given below? main() { char str[]="part-time musicians are semiconductors"; int a=5; printf(a>10?"%50s":"%s",str); } ...

11 Comments. 94 views since Sep 18, 2008

Basics of C Test 3

Question 1: What is the output of the following 'C' program ? main() { unsigned int a=0xffff; ~a; printf("%x",a); } ...

2 Comments. 93 views since Aug 10, 2008

Functioning With Functions

Question 1: main() { int i=3, j; j=add(++i++); printf("i=%dj=%d\n", i, j); } add(ii) int ii; { ii++; printf("ii=%d\n", ii); } ...

1 Comments. 90 views since Sep 21, 2008

Datatypes- The Building blocks

Question 1: main() { double x, d=4.4; int i=2, y; x=(y=d/i)*2; printf("x=%lfy=%d", x, y); y=(x=d/i)*2; printf("x=%lfy=%d", x, y); } ...

2 Comments. 89 views since Sep 27, 2008