Professional Documents
Culture Documents
16bt10501-Programming in C
16bt10501-Programming in C
16bt10501-Programming in C
:16BT10501 SVEC16
1. Analyze Arithmetic, Logical, Bitwise and Conditional operators with example 14 Marks
programs.
(OR)
2. a) Demonstrate various data types in 'C' with their syntax and examples. 7 Marks
b) Define Token. List various 'C' tokens with examples. 7 Marks
3. a) What is the purpose of the while statement? When is the logical expression 9 Marks
evaluated? What is the minimum number of times that a while loop can be
executed?
b) A ‘C’ program contains the following statements: 5 Marks
#include <stdio.h>
int i, j , k;
Write an appropriate scanf() function to enter numerical values for i, j and k,
assuming
i) The values for i,j and k will be decimal integers.
ii) The value for i will be a decimal integer, j an octal integer and k a
hexadecimal integer.
iii) The values for i and j will be hexadecimal integers and k will be an octal
integer.
(OR)
4. Write a ‘C’ program that prints largest among three numbers. 14 Marks
7. a) Define String. Explain String input and output functions with syntax. 7 Marks
b) Write a 'C' program to check whether the given string is Palindrome or not. 7 Marks
(OR)
1
8. a) Develop a program to read a long text and then find the number of characters, 7 Marks
number of vowels, number of consonants, number of digits, number of words,
number of white spaces and number of special symbols.
b) Explain the concept of passing pointers to a function and demonstrate with an 7 Marks
example program.