Thanks to visit codestin.com
Credit goes to www.scribd.com

0% found this document useful (0 votes)
27 views5 pages

Saj QB C 20240817

Uploaded by

randomstufff11
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
27 views5 pages

Saj QB C 20240817

Uploaded by

randomstufff11
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 5

Part Question Bank C coding: (Beginners Level) (Scope: Challenging for First Year, Knowledge

A Enhancement)
1. Explain, ‘C’ coding language is called High Level Coding Language.
2. What is purpose of #include<stdio.h>?
3. Explain use of following with one example each
1. #include<stdlib.h>
2. #include<string.h>
3. #include<graphics.h>
4. #include<conio.h>
4. Explain syntax of “main”.
5. Explain about entry point of C code.
6. In C code, main has return 0; statement, write a main statement for the same.
7. Explain with example, different comment statements in C.
8. Which different software can be used to compile and run C code?
9. List various C coding and compiling tools for Windows and Linux Operating Systems.
10. Write a C program to print “Hello World!” using CoLab Tool on mobile.
11. What is full form of gcc, Can it be used to run C code, What output file it generates?
12. What is a.out, how to use it to run C code?
13. What is FOSS? List atlist 2, FOSS C coding Tools?
14 With one example each explain difference between printf, fprintf, sprintf.
15 Write python code for Q1 and illustrate difference by writing code using nonlocal.
16 Let f1 and f2 be two functions such that variable x = 15 defined in f1 is used in f2. Write a C
code for the same and explain what are python functions? How functions work?
17 What are functions?Why functions are written, explain with giving 5 points?
18 What are different types of return statements in C. Explain with illustrative code.
19 Explain 5 Good programming(coding) practices.
20 Give 5 examples of C modules, explain the functioning of each.
21 Write a python function f1 to accept a number and python function f2 checks it for the
palindrome and returns the truthness to function f1 to print the result.
22 A string is printed only if the last two characters in the string are same. Write a C code for the
above using loop.
23 Illustrate with C code, concatenating operation of the two strings.
24 Read the following and write a C code for the same.
MyStr = “abc”
MyStr.append((“EFG”)
print(“MyStr”)
25 Illustrate the string append operation using relevant keyword and operators.
26 What is string slicing. Explain slice operation using C example.
27 Are C strings immutable? Justify with example. Give method with example to modify a given
string.
28 Two strings are holding same value. Explain the memory model.
29 Explain string formatting with examples.
30 Read carefully, Make necessary modifications, MyArray= [1,2,3]. Write C code to print
MyArray as string.
31 Explain with example following Operations using C
1. capitalize
2. casefold
3. center
4. count
5. join
32 Python has two functions called ord(), chr(). Write a C code to implement it.
33 Illustrate string comparison operators with example in C
34 Illustrate range function with strings in C.
35 Explain with examples, string.h in C

Part (Problems on Syllabus, Scope: Normal)


B
U1:
36 Explain programming paradigms.
37 Is C a structured programming? Give 10 features.
38 What is structured programming, Explain with advantages and Drawbacks.
39 What is algorithm? Give example.
40 What is Heuristic Algorithm? Give Example.
41 What is Problem Solving? Give steps.
42 Why Problem Solving require Divide and Conquer? Explain with example.
43 Explain with example:
1. Problem Understanding
2. Problem Solving Strategy
3. Goal Planning
44 What are Problem Solving design Tools? Give Example.
45 Is a Flowchart a problem Solving design Tool? Give Example.
46 Draw a flow-chart to find the greatest of given two numbers.
47 Is a Pseudo-code, a problem Solving design Tool? Give Example.
48 Draw a Pseudo-code to find the greatest of given two numbers.
49 Draw building blocks of flowcharts and explain the purpose.
50 What is coding in Problem Solving?
51 What is Low level Coding and High Level Coding? Give Example.
52 List Three High Level coding Technologies.
53 With one example, Explain syntax and semantic errors.
54 Differentiate between Syntax and semantic errors with one example.
55 Explain with example, variable naming methods.
56 With example explain the term literals.
57 What are different literals supported in C, give example.
58 Explain any Three keywords in C.
59 What are abstract data-types supported by C.
60 Explain with example, Abstract Data Types in C.
61 With example explain how an integer number (Single Digit) is represented in Binary.
62 Draw Flowchart and explain how an integer number(Single Digit) is represented in Binary.
63 With example explain how a Binary number (4 bit) is represented in Binary.
64 Draw Flowchart and explain how a Binary number( 4 bit) is represented in Binary.
65 What are Arrays in C. Define an array for storing 10 integers.
66 What are Arrays in C. Define an array for storing 10 real numbers.
67 What are Arrays in C. Define an array for storing a string “Hello World!”.
68 Explain the use of C data types for storing a string of characters.
69 What are address pointers and data pointers. Explain one example each in C.
70 Explain enum keyword with example in C.
71 Explain keyword void with example in C
72 What are mathematical operators. Give two example using C.
73 Give two examples of operators in C for Basic Mathematical operations.
74 Give two examples of operators in C for relational operations.
75 Give two examples of operators in C for shift operations.
76 Give two examples of operators in C for Bit wise operations.
77 Give two examples of operators in C for assignment operations.
78 What are Expressions in C. Explain with example.
79 List different types of Expressions in C with one example each.
80 What are logical expressions in C? Give one example.
81 What are conditional Expression in C? Explain with example.
82 What are comments in C? Give examples.
83 Explain different ways with example to write a comment in C.
84 Explain the following syntax with an example.
Syntax: exp1 ? exp2 : exp3
85 How is an input accepted in C? Give example.
86 What are different methods of accepting input in C. Give one example each.
87 How output is displayed on a screen using C, give example.
88 Write an instruction to display “Hello, World!” using C.
89 Write an instruction to display following using C.
A1

A2

A3
90 Write instructions to accept an integer number and to display it on next line using C.
91 Write instructions to accept a real number and to display it on next line using C.
92 Write instructions to accept a character and to display it on next line using C.
93 Write instructions to accept a string and to display it on next line using C.
94 What is formatting the input or output, explain with examples.
95 Explain with examples different symbols or notations used for formatting input or output.
96 How is unformatted input or output generated in C? Give example.
97 Explain with example, any three C keywords.
98 Explain the difference between Assembler, Interpreter and Compiler, Give one example each.
99 List five tools which can be used for C Coding.
100 What is FOSS, List C coding FOSS Tools.
101 Can simple C coding and running be done using mobile, List one Online Mobile coding tool.

Unit
2
102 What are control flow structures? Give one Example.
103 What is called iteration? Give Example.
104 Explain with example, flow of operation.
105 Justify the sentence with example, “Control flow structures are called conditions, loops and
switch ”
106 Explain various constructs of conditions.
107 A student is displayed as passed if the passed status is marked as “P” else displayed not passed.
Using C write necessary coding statements.
108 What are flowcharts? Explain with example.
109 Explain the problem stated in 107 using flowchart.
110 How a loop is expressed using flowchart? Explain with example.
111 With an example, Explain switch statement in C.
112 With an example, explain the for loop in C.
113 With an example, explain the while loop in C.
114 Differentiate between while and do...while loop in C.
115 With an example, explain the do … while loop in C.
116 Give one example of break, continue and goto statements in C.
117 What are arrays? Define an array to store 10 integers using C.
118 What are arrays? Define an array to store 10 real numbers using C.
119 What are arrays? Define an array to store 10 characters using C.
120 Write a C code to display first data in an array.
121 Illustrate using C, who two dimensional array are declared.
122 Illustrate using C, who three dimensional array are declared.
123 Name three applications of using arrays.
124 A Character “A” is to be stored in a in an Integer data type three times, Write a code in C.
125 Write a C code to display a missing number from given 10 ordered integers.
126 Write a code using C to display a 2D integer matrix.
127 Write a code using C to display a 2D integer matrix, accept the input.
128 Write a code using C to perform and display a 2D integer matrix addition.
129 Write a code using C to perform and display a 2D integer matrix subtraction, accept the input.
130 What are strings? Write C code to display a stored string.
131 Name the C library for string and write a code to append two Three character strings.
132 What is ASCII? What is ASCII value of “A”. Write a C code.
133 Using C describe different ways to declare strings. What is the difference between them.
134 Explain use of string pointer using C Code.
135 Write a C code to convert and display ASCII character to integer, accept the charcter.
136 How to find a length of a given string. Illustrate using C code.
137 Write a C code to display ASCII values of Given 6 character string.
138 Write a C code to reverse the Accepted string.
139 Write a C code to change an accepted strings first character.
140 Write a C code to check the palindrome in accepted string.
Unit
3
141 Why is memory (RAM) important in coding?
142 What is a Pointer. Define a pointer using C.
143 What is major difference between an Array and a pointer.
144 Explain different symbols used in pointer declaration. Give its significance.
145 Explain different symbols used in pointer declaration. Illustrate using C code.
146 Write a C code to accept an Integer and assign it to an integer pointer, display the result.
147 Write a C code to accept a float and assign it to a pointer, display the result.
148 Write a C code to accept an character and assign it to a character pointer, display the result.
149 Write a C code to accept a string and assign it to a string pointer, display the result.
150 Explain using C declaration of pointers using various data types.
151 Illustrate an integer array declaration using pointers in C.
152 Illustrate a real array declaration using pointers in C.
153 Illustrate a character array declaration using pointers in C.
154 Illustrate a string array declaration using pointers in C.
155 Illustrate a pointer arithmetic using C.
156 What is illegal in pointer arithmetic, explain using C.
157 With the help of C code explain pointer to a function.
158 Justify, pointer are more memory efficient using C coding example.
159 Explain major difference between data declaration using pointer and non-pointer data
declarations.
160 Justify, C coding is a high level coding or programming technology.
161 Justify using C coding, C coding is case sensitive.
162 Explain the keywords using C: struct, typedef
163 Explain with example, what are structures in C.
164 A students roll list with roll numbers and names are to be stored in memory and displayed.
Illustrate it using C structures.
165 Illustrate methods of declaring variables to a structure using C.
166 Using appropriate C data structures write a code to display percent of marks of accepted roll
number or name or gender or distinction, first class, pass class groups.
167 Illustrate using C a pointer to a stracture. Give one application.
168 Explain importance of stdio.h, stdlib.h
169 Explain using C coding use of malloc, calloc, realloc.
170 Illustrate using C coding how to free the memory allocated to apointer.
171 Give 4 major differences between static and dynamic memory allocation.
Unit
4
172 What are functions in C? Why are they required?
173 List 3 advantages of writing functions.
174 List any two functions supported by C function library.
175 Draw and explain the syntax of function in C.
176 Explain, how functions are declared by user or coder.
177 Explain the difference between user defined functions and C supported functions.
178 Explain different building blocks of user defined functions.
179 Illustrate how are C library supported functions used in a code?
180 Explain two functions supported by stdio.h and conio.h.
181 With the help of example, explain how functions are called.
182 Explain two functions related with string.h.
183 What are function pointers? Explain with example.
184 Explain return keyword with example.
185 Illustrate how to pass input parameters to a function.
186 Does function has a return data type? How it is declared.
187 Explain keyword/ reserved word void.
188 Illustrate use of reserved word or keyword void as input to a function.
189 Explain how function name be written. Give example.
190 Is a function name be readable? Explain with example.
191 Write a C code with a function to add two numbers without return statement.
192 Write a C code with a function to add two numbers with return statement.
193 Write a C code with function to accept two 2x2 matrix parameters and perform matrix addition.
194 With the help of example, explain functions call by value and functions call by reference.
195 With the help of example, explain the difference between a functions call by value and functions
call by reference.
196 What is recursion? Can function be recursive? What are advantages of recursive functions.
197 Write a recursive function using C.
198 What are iterative functions, Give one example using C.
199 What is difference between iterative and recursive function.
200 Write a C code using iterative function to compute factorial of a given number.

You might also like