[go: up one dir, main page]

0% found this document useful (0 votes)
54 views2 pages

Dca July 2012 - Bit Paper C

This document contains a C language theory exam with multiple choice and written response questions. It tests knowledge of C language fundamentals like data types, variables, constants, keywords, functions, loops, conditional statements, strings and more. The exam is divided into 5 sections with a total of 50 marks and a time limit of 1.5 hours. Section 1 contains 10 true/false questions. Section 2 has 5 fill in the blank questions. Section 3 requires explaining 5 out of 7 given functions. Section 4 involves explaining 5 out of 7 C programming concepts. Section 5 directs the student to solve 2 problems - output of a code snippet and writing a program to find minimum of 2 numbers.

Uploaded by

Kirti Pradhan
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
54 views2 pages

Dca July 2012 - Bit Paper C

This document contains a C language theory exam with multiple choice and written response questions. It tests knowledge of C language fundamentals like data types, variables, constants, keywords, functions, loops, conditional statements, strings and more. The exam is divided into 5 sections with a total of 50 marks and a time limit of 1.5 hours. Section 1 contains 10 true/false questions. Section 2 has 5 fill in the blank questions. Section 3 requires explaining 5 out of 7 given functions. Section 4 involves explaining 5 out of 7 C programming concepts. Section 5 directs the student to solve 2 problems - output of a code snippet and writing a program to find minimum of 2 numbers.

Uploaded by

Kirti Pradhan
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
You are on page 1/ 2

C Language (Theory Paper)

Marks:50
Time: 1.5 hrs
Q.1 State True or False

[10]

1. A string constant consists of a single character.


2. C program execution starts at a curly bracket.
3. The shortcut key of compilation is Alt+F5.
4. A variable name contain an underscore.
5. ++ is an Increment operator.
6. Keyword can be use as a variable name.
7. While loop has three expressions in its syntax.
8. Strings are represented in C as an array character.
9. All functions by default returns integer value.
10. To use mathematical function in C program, math.h header file should not be included.
Q.2 Fill in the blanks

[5]

1. ________ is a string format specifier.


2. Type of value that can be assigned to an identifier is known as _________.
3. 1 byte = _________ bits
4. ________ operator is used to increase the value of a variable by 1.
5. ________ statement is used to jump conditionally from loop.
Q.3 Explain following functions (attempt any 5)
1. getch( )
2. scanf( )
3. strcat( )
4. strlwr( )
5. clrscr( )
6. pow( )
7. putchar( )

[10]

Q.4 Explain in brief (Any five)

[20]

1. Write definition:

Data type

Variable

Keyword

constant

2. What is Structure? What is pointer?


3. What is pre-defined function?.
4. Write rules to define variable name.
5. Explain IF condition in brief.
6. Write the difference between while and do-while loop.
Q.5 Do as directed.

[5]

1. What will be the output of following code?


int x=10,y=5;
++x;
printf(x = %d and y=%d,x,y++);
2. Write a C program to display minimum number between two numbers.

*************************

You might also like