File Details:
{"filename":"bsc-2-sem-cs-programming-in-c-np-3591-may-2019.pdf","title":"B.Sc. (Computer Science) IInd Semester Examination, May-2019","subject":"Programming in C (BCS-204)","total_questions":13}
Questions:
- What are the different data types in C? Explain any four with an example.
- Write a program to print all natural numbers divisible by 5 ranging from 1 to 100.
- Define a pointer and give the meaning of declaration: intptr; with the help of an example.
- Write the output of the following program: main { int i=10; int j=20; if((ij)/(i+j)>=6) printf("hello world"); else printf("world hello"); }
- What is a file in C? Write the commands to open and close a file.
- Define structures and write a program to make a structure for book entity with fields: book name, book price, book author, book publisher, year of print, and ISBN.
- Write a program to check that an integer string is a palindrome or not.
- Explain the difference between the for and while loop with an example.
- Explain the concept of array of pointers with example.
- What are the string operations in C? Explain the following string operations using examples: strcat, strlen, strcmp, strcpy.
- What are the operators in C? State four arithmetic operators and four logical operators.
- Write a program in C to multiply two matrices of nxn size each.
- What are formal parameters in functions? Write a program to find the biggest number among 3 numbers given by user using if else statements.
Back to list
GKPAD.COM by SK Yadav | Disclaimer