JNTU Kakinada (JNTUK) B-Tech First Year First Semester (1-1) COMPUTER PROGRAMMING Common to to CE,EEE,ME,CSE,ECE,IT,EIE,ECom E,Aero E,Auto E,Bio-Tech,Chem E,Metal E, Min E, PChem E, PE R16 Regulation May 2018 Question Paper
Code No: R161107
I B. Tech I Semester Supplementary Examinations, May – 2018
COMPUTER PROGRAMMING (Com. to CE,EEE,ME,CSE,ECE,IT,EIE,ECom E,Aero E,Auto E,Bio-Tech,Chem E,Metal E, Min E, PChem E, PE)Time: 3 hours Max. Marks: 70
Note: 1. Question Paper consists of two parts (Part-A and Part-B) 2. Answer the question in Part-A is compulsory
3. Answer any FOUR Questions from Part-B
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
PART ?A
1. a) List out components of computer hardware. (2M)
b) What are different ways of commenting the statements in C programming? (2M)
c) Why switch statement is more advantageous than nested if-else statement? (2M)
d) Give the comparison of Global and local variables. (2M)
e) What is the difference between strcmp() and stricmp() functions? (2M)
f) Write the differences between structures and unions. (2M)
g) What is the use of fseek() function? (2M)
PART -B
2. a) Differentiate between computer hardware and software. (7M)
b) Explain the machine language and assembly language with examples. (7M)
3. a) What are bitwise logical operators? Explain about bitwise logical operators with
suitable programming example. (6M)
b) Explain various format modifiers available in C language. (4M)
c) Briefly explain about implicit and explicit type conversion. (4M)
4. a) Differentiate between if statement and if-else statement with suitable examples
and proper syntax. (7M)
b) Write a C program to print all the prime numbers between 1 to 100. (7M)
5. a) What are the different ways of passing parameters to the function? Explain. (7M)
b) Write a C program using the concept of functions to swap the values of variables
without using third variable. (7M)
6. a) What is string? Explain about declaration and initialization of string in ‘C’. How
strings are displayed with different formats? Explain with examples. (7M)
b) Write a C program to perform the operation of addition of two matrices. (7M)
7. a) What is the need of nested structures? Explain with one example. (7M)
b) Create two text files and write a program to add the contents of one file at the end
of another. (7M)
1 of 1
SET – 1
R16
746268 PAPER V - REHABILITATION MEDICINE INCLUDING GERIATRIC MEDICINETHE TAMIL NADU DR. M.G.R. MEDICAL UNIVERSITY…
746268 PAPER V - REHABILITATION MEDICINE INCLUDING GERIATRIC MEDICINETHE TAMIL NADU DR. M.G.R. MEDICAL UNIVERSITY…
746267 PAPER IV - P.T. IN ORTHOPAEDICSTHE TAMIL NADU DR. M.G.R. MEDICAL UNIVERSITY [LN 6267]…
746267 PAPER IV - P.T. IN ORTHOPAEDICSTHE TAMIL NADU DR. M.G.R. MEDICAL UNIVERSITY [LN 6267]…
746266 PAPER III – CLINICAL ORTHOPAEDICSTHE TAMIL NADU DR. M.G.R. MEDICAL UNIVERSITY [LN 6266] AUGUST…
746265 PAPER II – P.T. IN NEUROLOGYTHE TAMIL NADU DR. M.G.R. MEDICAL UNIVERSITY [LN 6265]…