Sample Test 1 - Cpr Jan 2007

  • November 2019
  • PDF

This document was uploaded by user and they confirmed that they have the permission to share it. If you are author or own the copyright of this book, please report to us by using this DMCA report form. Report DMCA


Overview

Download & View Sample Test 1 - Cpr Jan 2007 as PDF for free.

More details

  • Words: 198
  • Pages: 1
K. K. WAGH POLYTECHNIC, NASHIK - 3. Department of Information Technology First Class Test (Jan – 2007) CLASS: FYIF SUB: PROGRAMMING in C (CPR - 9017)

TIME: 1 hr. MARKS: 20.

Note: All the questions are compulsory. Q.1

Attempt any two. (2*2) 1. Define: Variable and Keyword with example. 2. What is the character set supported by C language? 3. List the rules for constructing an integer constant.

4

Q.2

Attempt any two. (4*2) 1. Explain the rules for variable names. 2. What are the relational operators used in C? 3. What is the output of following program? #include<stdio.h> main( ) { int a=25, b=10, c=5, d; d = (a + b) / c * 2; printf(“Value of d is : %d”,d ); }

8

Q.3

Attempt any two. ( 4*2) 8 1. Give the output of following program. #include<stdio.h> main( ) { int k = 25; printf(“%x”, k); } 2. Explain difference between unary and binary operators with examples. 3. State the use of printf( ) and scanf( ) in C programming.

Mr. Kute T. B. (Subject Teacher)

Prof. Katkade G.B. HOD

CPR (FYIF) by Mr. Kute T. B. (Lecturer in IT, KK Wagh Polytechnic, Nashik 2007-2008)

Related Documents