C LANGUAGE - Programming Online Tests

Basics of C language: Test 6

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

246 Comments. 2673 views since Sep 15, 2009

Basics of C Language:Test 5

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

80 Comments. 1150 views since Sep 28, 2008

Basic of C Language

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

60 Comments. 979 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") } ...

28 Comments. 450 views since Sep 28, 2008

Basics of C Test 1

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

16 Comments. 311 views since Aug 9, 2008

C: Inputs & Outputs

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

11 Comments. 280 views since Oct 18, 2008

C Language Test

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

8 Comments. 191 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? ...

9 Comments. 185 views since Sep 28, 2008

C: Library Functions & Control Structures

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

6 Comments. 142 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)); } ...

8 Comments. 137 views since Aug 9, 2008

C Language: Introductory Test 2

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

9 Comments. 130 views since Sep 16, 2008

Basics of C Test 4

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

7 Comments. 121 views since Aug 11, 2008

Introduction to C Language

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

12 Comments. 117 views since Sep 25, 2008

C: Operators & Keywords

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

6 Comments. 116 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" ) ; } ...

12 Comments. 114 views since Aug 18, 2008

C Language:Functions

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

4 Comments. 104 views since Sep 17, 2008

Operators in C Language

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

8 Comments. 103 views since Sep 25, 2008

C Language: Introductory Test

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

7 Comments. 97 views since Sep 16, 2008

Basics of C language Test 7

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

8 Comments. 79 views since Feb 8, 2011

C Language: Arithmetic Operations

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

13 Comments. 77 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. 76 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); } ...

2 Comments. 76 views since Sep 27, 2008

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 ) ; } ...

8 Comments. 73 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" ) ; } ...

6 Comments. 72 views since Aug 17, 2008

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; } ...

2 Comments. 65 views since Aug 13, 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. 64 views since Sep 6, 2008

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"); } ...

5 Comments. 63 views since Sep 3, 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 ) ; } ...

2 Comments. 59 views since Aug 18, 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); } ...

0 Comments. 58 views since Sep 20, 2008

Basics of C language: Test 7

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

4 Comments. 56 views since Jun 23, 2011

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); } ...

1 Comments. 55 views since Aug 10, 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); } ...

7 Comments. 55 views since Sep 17, 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. 54 views since Sep 27, 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; } ...

1 Comments. 47 views since Jun 24, 2011