Download as DOCX, PDF, TXT or read online from Scribd
Download as docx, pdf, or txt
You are on page 1of 2
Unit 1
Explain the basic structure of a C program with an example.
What is Token? What are the different types of tokens available in C language. What are basic data types available in „C‟? Write the significance of each data type. What is the purpose of scanf() and printf() statement ? Write a C program in C to find the area and perimeter of a circle Explain switch statement with syntax and example List the differences between while loop and do-while loop. write a C program to find sum of Natura numbers from 1 to N using for loop Explain with syntax, the different loops used in „C‟ program Explain with syntax, if, if-else and nested if-else statements in „C‟ program Unit2 Define array. Explain with suitable example how to declare and initialize 1D array Define string. How string is declared and initialized? Explain string input/output functions with an example Define string. List out all string manipulation function. Explain any two with example How string is declared and initialized? Explain any four string manipulation functions with examples . a. strcpy() b. strcmp() c. strcat() d.strlen() e. strncat() Write a C program to check whether the given string is palindrome or not without using in built function What is function? Explain the difference between user defined and library functions Explain function call, function definition and function prototype with examples Write a C program to find the factorial of a number using recursion. Define a recursion. Unit3,4,5 What is structure? Explain the C syntax of structure declaration with example Explain the difference between array and structures What is a pointer? Write a C program to swap two numbers using call by address (pointers or reference) method Define Union? How to represent a union? Explain the following file handling functions: a. fseek() b. ftell() c. rewind() d. feof() Explain following functions 1.calloc() 2.malloc() 3. Free() 4. Realloc() 1.fopen() 2. fread() 3. fwrite() 4. fclose()
1. Write difference between algorithm and flowchart.
2. Explain the importance of C language. 3. What is format specifier? 4. Define keyword, constant and variable. 5. Write a short note on type casting. 6. Explain sizeof() with example? 7. Why do we use header files? 8. Define relational operator? 9. What is the purpose of adding comments in a program? 10. Differentiate between computer software and hardware?
• 1. What is language ? Explain about the programming languages .
• 2. Discuss different level of programming languages . Why C is also a middle level language? • 3. Discuss about the character set in C . Why the character set is required ? • 4. What are the tokens ? Discuss different type of tokens ? • 5.Discuss about the program structure with an example ? • 6. Discuss about the statements ? What are the loop statements ? • 7. Discuss about the Break , Continue and Goto statements . • 8. Discuss about the different type of operators ? • 9.Discuss about the Shift , Bitwise and Ternary operators ? • 10. Write the applications of programming language C.?
Full Chapter Build Your Own Programming Language A Programmer S Guide To Designing Compilers Interpreters and Dsls For Solving Modern Computing Problems 1St Edition Clinton L Jeffery PDF