ODD 2025, 15B11CI311 – Software Development Fundamentals - I
Course Coordinator: Akanksha Mehndiratta, Dr. Vikas Sharma
JIIT, Sec-128, Noida
ODD 2025
Tutorial Sheet - 2
Software Development Fundamentals – I (15B11CI111)
CO2 Explain basics of C programming concepts to make decision for solving Understand (Level 2)
problems
Note: Students are advised to submit their solutions to their respective tutorial
faculties
1. [CO2] What is the correct value to return 5.[CO2] Which of the following is a correct
to the operating system upon the successful comment?
completion of a program? A.*/ Comments */
A.-1 B.** Comment **
B.1 C./* Comment */
C.0 D.{ Comment }
D.Programs do not return a value.
6. [CO2] Which of the
2. [CO2] What is the only function all C following is not a correct variable
programs must contain? type?
A.start() A.float
B.system() B.real
C.main() C.int
D.program() D.double
7. Which of the following is
3. [CO2] What punctuation is used to signal the correct operator to compare
the beginning and end of code blocks? two variables?
A.{ } A.:=
B.-> and <- B. =
C.BEGIN and END C.equal
D.( and ) D. ==
4. [CO2] What punctuation ends most lines Q8. [CO2] Identify & correct errors in following
of C code? statements:
a.int a=10, int b=20;
A. . b.int a=10, float b=2.5;
B. ; c. const int number =
C. : 100; number=500;
D. ' d.Printf(“To err is human”);
e.Printf(1,2,3);
f.int b = 2f;
ODD 2025, 15B11CI311 – Software Development Fundamentals - I
Course Coordinator: Akanksha Mehndiratta, Dr. Vikas Sharma
JIIT, Sec-128, Noida
Q11. [CO2] Give the output of
Q9. [CO2]What will be the output of following C following program.
programs? Give explanation. #include<stdi
o.h> int
(a) #include<stdio.h> main()
main() {ch
{ ar
int a,b ; ch;
printf("Enter two numbers"); int
scanf("%d%d",&a,&b); i;
printf("%d + %d = %d\n",a,b,a+b); scanf("%c", &i);
printf("%d / %d = %d\n",a,b,a/b); scanf("%d", &ch);
printf("%d * %d = %d\n",a,b,a*b); printf("%c %d",
printf("%d %% %d = %d\n",a,b,a%b); ch, i); return 0;
} }
(b) #include<stdio.h> Q12[CO2] Give the output of following
main() program.
{ #include<stdi
printf("%d\t%d\t%d\t%d\t%d\n", 72, 072, o.h> int
0072, 0x72, 0X72); main()
printf("%d\t%c\n",'A','A'); {
printf("%d\t%o\t%x\n",72,72,72); float fval=7.29;
printf("%i\t%i\t%i\t%i\n", 72, 072, 0x72, 0X72); printf("%d\n",
printf("%d\t%c"); (int)fval); return 0;
} }
Q10. [CO2] Give the output of following print Q13[CO2] Which of the following header files is
statements: essential for using the printf() and scanf()
(a) printf(“%05d,%5d,%-5d”, 32,32,32 ); functions?
(b) printf(“%6.3f,%06.3f,%09.3f,%- A. <conio.h>
09.3f,%6.0f,%6.0f”, 45.6, 45.6, 45.6, 45.6, B. <iostream>
45.4, 45.6 ); C. <stdio.h>
(c )printf("int: %d, char: %c, double: %lf\n", D. <stdlib.h>
5, '*', 5.0);
(d) printf("you got %d%% in
the exam\n", 100); Q14[CO2] What is the default return type of
main() in C (modern standards)?
A. int
B. void
C. float
D. char
ODD 2025, 15B11CI311 – Software Development Fundamentals - I
Course Coordinator: Akanksha Mehndiratta, Dr. Vikas Sharma
JIIT, Sec-128, Noida
Q15 [CO2] What will be the output of following C programs?
Give explanation
#include <stdio.h>
int main() {
int a = 5;
if (a = 0)
printf("Zero");
else
printf("Non-zero");
return