Docsity
Docsity

Prepare for your exams
Prepare for your exams

Study with the several resources on Docsity


Earn points to download
Earn points to download

Earn points by helping other students or get them with a premium plan


Guidelines and tips
Guidelines and tips

CSD 101 MIDSEMS 2018, Exercises of Programming Languages

CSD 101 ENDSEMS 2018, High chance of question getting repeated or getting the similar type of questions, C language.

Typology: Exercises

2017/2018

Available from 08/10/2021

meetendra-singh
meetendra-singh 🇮🇳

17 documents

1 / 1

Toggle sidebar

This page cannot be seen from the preview

Don't miss anything!

bg1

Partial preview of the text

Download CSD 101 MIDSEMS 2018 and more Exercises Programming Languages in PDF only on Docsity!

SHIV NADAR UNIVERSITY INTRODUCTION TO COMPUTING & PROGRAMMING (CSD 101) MID TERM EXAMINATION Time : 1.5 Hrs. Max Marks : 40 Question No. 1 to 4 contains 1 mark each, 1. The programs that translate high-level language programs into machine language are called In a C system, a(n) program automatically executes before the translation phase begins. i) program transfers the executable image from disk to The memory. us 4. The conversion specifier is used in a scanf format control string to indicate | string to indicate that an integer that an integer will be input and in a printf format contro will be output. Question No. 5 to 7 contains 2 marks each. approach is followed by ‘C’ language 5. Which programming design (TOPDOWN/BOTTOM-UP)? Justify. Is there any operator in ‘C’ that allows a three-way transfer of control? Mention the name 6. of the operator. 7. Distinguish between the terms fatal error and nonfatal error. Question No. 8 to 14 contains 5 marks each. Attempt any 6 questions out of 7. Explain the terms Algorithm, Pseudocode and Flowchart with an example of each? 8. 9. Write a Program to enter a number from the user and check whether it is a palindrome’ number or not. 10. What are repetition statements in C. Name them and give the syntax for each of them” 11. Write a Program to enter a number from the user and check whether it is a prime number™ or not. 12. Show the usage of break and continue statement by taking an example? 13. Write a Program to swap the values of two variables without using a third variable? 14. What is the use of ‘switch’ statement and explain how it is different from ‘if? statement?