0% found this document useful (0 votes)
7 views

Programming in C and Data Structures Module 1 Assessment (Responses)

The document contains a series of questions and answers related to the C programming language, including topics like keywords, data types, and functions. It also includes code snippets with errors and expected outputs. Additionally, it lists email addresses and scores of various individuals who participated in a quiz or assessment on these topics.

Uploaded by

kyo02016sid
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)
7 views

Programming in C and Data Structures Module 1 Assessment (Responses)

The document contains a series of questions and answers related to the C programming language, including topics like keywords, data types, and functions. It also includes code snippets with errors and expected outputs. Additionally, it lists email addresses and scores of various individuals who participated in a quiz or assessment on these topics.

Uploaded by

kyo02016sid
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/ 1

12)What is the output of the following code?

#include<stdio.h> 16) Identify the error in this C code:


int main() 15)What will be the output of the following C code? #include<stdio.h>
{ #include<stdio.h> int main() {
int x=10; int main() { int x;
Timestamp Email address Score Name Email Id 1)Who is the father of C language? 2) Which of the following is not a keyword in C? 3) All the keywords in C are in ____________ 4) What data type would you use to store a character5)
inWhat
C? is an example of iteration in C? 6) What is #include <stdio.h>? 7) scanf() is a predefined function in______header file.
8) The C-preprocessors are specified with _________ symbol.
9)Which of the following is a valid identifier in C? 10)What is the correct way to take an int input from the
11)The
user?format specifier used for double variables is: 13) What is the purpose of the printf function in C? 14)What does %d signify in the printf or scanf function? 17)Which operator is used for division in C? 18)What does the '==' operator check? 19) What is the result of the logical expression (1 &&20)
0)? What is the purpose of the continue statement in loops?
printf("%d",x); printf("%d", 500); scanf("%d", x);
x=x+9; return 0; printf("%d", x);
printf("%d",x); } return 0;
return 0; }
}
29/10/2024 10:53:42 [email protected] 16 / 20 Suryansu behera c) Dennis Ritchie c)include a)LowerCase b)char d) all of the above a) Preprocessor directive c) stdio. h a) # b)_name d)printf("Enter the value); a)%f c)10 19 b)To print output b)Decimal integer c)Syntax error a)Missing & in scanf b)/ b)Equality b)0 c)Does nothing

29/10/2024 10:54:18 [email protected] 15 / 20 Rudranarayan c) Dennis Ritchie c)include a)LowerCase b)char d) all of the above a) Preprocessor directive c) stdio. h a) # b)_name a)scanf("%d",&var); a)%f c)10 19 b)To print output c)Dynamic allocation d)None of these d)Syntax error b)/ b)Equality a)1 b)Skips to the next iteration

29/10/2024 10:54:53 [email protected] 20 / 20 Rudrakshi Samal c) Dennis Ritchie c)include a)LowerCase b)char d) all of the above a) Preprocessor directive c) stdio. h a) # b)_name a)scanf("%d",&var); d)%lf c)10 19 b)To print output b)Decimal integer a)500 a)Missing & in scanf b)/ b)Equality b)0 b)Skips to the next iteration

29/10/2024 10:55:40 [email protected] 18 / 20 Bidyamanjari Jena c) Dennis Ritchie c)include a)LowerCase b)char d) all of the above a) Preprocessor directive c) stdio. h a) # b)_name a)scanf("%d",&var); d)%lf c)10 19 b)To print output b)Decimal integer a)500 d)Syntax error b)/ a)Assignment b)0 b)Skips to the next iteration

29/10/2024 10:56:11 [email protected] 18 / 20 Arpita Mohapatra c) Dennis Ritchie c)include a)LowerCase b)char d) all of the above a) Preprocessor directive c) stdio. h a) # b)_name a)scanf("%d",&var); d)%lf c)10 19 b)To print output b)Decimal integer c)Syntax error a)Missing & in scanf b)/ b)Equality c)True b)Skips to the next iteration

29/10/2024 10:56:25 [email protected] 19 / 20 Omm Prakash Sahoo c) Dennis Ritchie c)include a)LowerCase b)char d) all of the above a) Preprocessor directive c) stdio. h a) # b)_name a)scanf("%d",&var); d)%lf c)10 19 b)To print output b)Decimal integer c)Syntax error a)Missing & in scanf b)/ b)Equality b)0 b)Skips to the next iteration

29/10/2024 10:57:28 [email protected] 17 / 20 ADARSH RATH c) Dennis Ritchie c)include a)LowerCase b)char d) all of the above a) Preprocessor directive c) stdio. h a) # b)_name a)scanf("%d",&var); d)%lf c)10 19 b)To print output b)Decimal integer c)Syntax error d)Syntax error b)/ b)Equality b)0 c)Does nothing

29/10/2024 10:57:37 [email protected] 18 / 20 D DINESH KUMAR PATRA c) Dennis Ritchie c)include a)LowerCase b)char a) for a) Preprocessor directive c) stdio. h a) # b)_name a)scanf("%d",&var); d)%lf c)10 19 b)To print output b)Decimal integer c)Syntax error a)Missing & in scanf b)/ b)Equality b)0 b)Skips to the next iteration

29/10/2024 10:57:43 [email protected] 19 / 20 NIHAR RANJAN BEHERA c) Dennis Ritchie c)include a)LowerCase b)char d) all of the above a) Preprocessor directive c) stdio. h a) # b)_name a)scanf("%d",&var); d)%lf c)10 19 b)To print output b)Decimal integer c)Syntax error a)Missing & in scanf b)/ b)Equality b)0 b)Skips to the next iteration

29/10/2024 10:57:45 [email protected] 20 / 20 Soumyashree Sahu c) Dennis Ritchie c)include a)LowerCase b)char d) all of the above a) Preprocessor directive c) stdio. h a) # b)_name a)scanf("%d",&var); d)%lf c)10 19 b)To print output b)Decimal integer a)500 a)Missing & in scanf b)/ b)Equality b)0 b)Skips to the next iteration

29/10/2024 10:58:25 [email protected] 16 / 20 Bishnu prasad majhi b) James Gosling c)include a)LowerCase b)char d) all of the above a) Preprocessor directive c) stdio. h a) # b)_name a)scanf("%d",&var); d)%lf c)10 19 b)To print output b)Decimal integer c)Syntax error d)Syntax error b)/ b)Equality b)0 a)Terminates the loop

29/10/2024 10:59:03 [email protected] 14 / 20 Manish Kumar yadav c) Dennis Ritchie c)include a)LowerCase b)char d) all of the above a) Preprocessor directive c) stdio. h a) # b)_name a)scanf("%d",&var); b)%d c)10 19 b)To print output a)Double data type c)Syntax error a)Missing & in scanf b)/ a)Assignment c)True a)Terminates the loop

29/10/2024 10:59:19 [email protected] 18 / 20 Anjana Jha c) Dennis Ritchie c)include a)LowerCase b)char d) all of the above a) Preprocessor directive c) stdio. h a) # b)_name a)scanf("%d",&var); a)%f c)10 19 b)To print output d)Directory path a)500 a)Missing & in scanf b)/ b)Equality b)0 b)Skips to the next iteration

29/10/2024 10:59:30 [email protected] 20 / 20 Aisha Akhtar c) Dennis Ritchie c)include a)LowerCase b)char d) all of the above a) Preprocessor directive c) stdio. h a) # b)_name a)scanf("%d",&var); d)%lf c)10 19 b)To print output b)Decimal integer a)500 a)Missing & in scanf b)/ b)Equality b)0 b)Skips to the next iteration

29/10/2024 11:00:04 [email protected] 18 / 20 Pratikshya Priyadarshanee c) Dennis Ritchie c)include a)LowerCase b)char d) all of the above a) Preprocessor directive c) stdio. h a) # b)_name a)scanf("%d",&var); d)%lf c)10 19 b)To print output c)Dynamic allocation a)500 a)Missing & in scanf b)/ a)Assignment b)0 b)Skips to the next iteration

29/10/2024 11:00:04 [email protected] 13 / 20 Srikanta Soren c) Dennis Ritchie b)char a)LowerCase b)char d) all of the above a) Preprocessor directive c) stdio. h a) # b)_name c)var=25; b)%d c)10 19 a)To read input a)Double data type c)Syntax error a)Missing & in scanf b)/ b)Equality a)1 b)Skips to the next iteration

29/10/2024 11:00:25 [email protected] 11 / 20 Rabindra Naik c) Dennis Ritchie c)include a)LowerCase b)char d) all of the above a) Preprocessor directive c) stdio. h a) # d)none of the above d)printf("Enter the value); a)%f b)10 9 a)To read input a)Double data type a)500 b)Wrong format specifier b)/ b)Equality d)False a)Terminates the loop

29/10/2024 11:01:12 [email protected] 15 / 20 Shubham Kumar Behera c) Dennis Ritchie b)char a)LowerCase b)char d) all of the above a) Preprocessor directive c) stdio. h a) # d)none of the above a)scanf("%d",&var); d)%lf c)10 19 b)To print output b)Decimal integer c)Syntax error d)Syntax error b)/ a)Assignment b)0 b)Skips to the next iteration

29/10/2024 11:01:25 [email protected] 17 / 20 Abinash Jena c) Dennis Ritchie c)include a)LowerCase b)char d) all of the above a) Preprocessor directive c) stdio. h a) # b)_name a)scanf("%d",&var); d)%lf c)10 19 b)To print output b)Decimal integer c)Syntax error a)Missing & in scanf b)/ a)Assignment d)False b)Skips to the next iteration

29/10/2024 11:01:35 [email protected] 13 / 20 Bishal Mohapatra d)None of the above c)include a)LowerCase b)char d) all of the above a) Preprocessor directive c) stdio. h a) # d)none of the above a)scanf("%d",&var); b)%d c)10 19 b)To print output a)Double data type a)500 d)Syntax error b)/ b)Equality d)False a)Terminates the loop

29/10/2024 11:01:59 [email protected] 17 / 20 Shubhankar sahu c) Dennis Ritchie c)include a)LowerCase b)char d) all of the above a) Preprocessor directive c) stdio. h a) # b)_name a)scanf("%d",&var); d)%lf c)10 19 b)To print output c)Dynamic allocation a)500 a)Missing & in scanf b)/ a)Assignment c)True b)Skips to the next iteration

29/10/2024 11:02:15 [email protected] 19 / 20 Aviram Jena c) Dennis Ritchie c)include a)LowerCase b)char d) all of the above a) Preprocessor directive c) stdio. h a) # b)_name a)scanf("%d",&var); d)%lf c)10 19 b)To print output b)Decimal integer c)Syntax error a)Missing & in scanf b)/ b)Equality b)0 b)Skips to the next iteration

29/10/2024 11:02:22 [email protected] 13 / 20 Sambit dehuri c) Dennis Ritchie c)include a)LowerCase b)char a) for a) Preprocessor directive c) stdio. h d) & d)none of the above a)scanf("%d",&var); d)%lf c)10 19 b)To print output a)Double data type c)Syntax error a)Missing & in scanf b)/ b)Equality c)True c)Does nothing

29/10/2024 11:02:26 [email protected] 18 / 20 Biswajit Bhal c) Dennis Ritchie c)include a)LowerCase b)char d) all of the above a) Preprocessor directive c) stdio. h a) # b)_name b)printf("%d",var); d)%lf c)10 19 b)To print output b)Decimal integer a)500 d)Syntax error b)/ b)Equality b)0 b)Skips to the next iteration

29/10/2024 11:02:29 [email protected] 19 / 20 SACHIN KUMAR BARIK c) Dennis Ritchie c)include a)LowerCase b)char d) all of the above a) Preprocessor directive c) stdio. h a) # b)_name a)scanf("%d",&var); d)%lf c)10 19 b)To print output b)Decimal integer a)500 a)Missing & in scanf b)/ b)Equality d)False b)Skips to the next iteration

29/10/2024 11:02:30 [email protected] 18 / 20 santosh kumar sabut c) Dennis Ritchie c)include a)LowerCase b)char d) all of the above d) None of the above c) stdio. h a) # b)_name a)scanf("%d",&var); d)%lf c)10 19 b)To print output b)Decimal integer c)Syntax error a)Missing & in scanf b)/ b)Equality b)0 b)Skips to the next iteration

29/10/2024 11:02:31 [email protected] 11 / 20 Subhranshu Debata d)None of the above c)include a)LowerCase b)char d) all of the above d) None of the above c) stdio. h d) & b)_name a)scanf("%d",&var); b)%d d)19 19 b)To print output a)Double data type c)Syntax error a)Missing & in scanf b)/ b)Equality d)False c)Does nothing

29/10/2024 11:02:44 [email protected] 17 / 20 Situ kumar c) Dennis Ritchie c)include a)LowerCase b)char d) all of the above a) Preprocessor directive c) stdio. h a) # b)_name a)scanf("%d",&var); d)%lf c)10 19 b)To print output d)Directory path c)Syntax error a)Missing & in scanf b)/ b)Equality d)False b)Skips to the next iteration

29/10/2024 11:02:49 [email protected] 12 / 20 Anup kumar sahu c) Dennis Ritchie c)include a)LowerCase b)char c) do-while a) Preprocessor directive c) stdio. h a) # b)_name d)printf("Enter the value); b)%d d)19 19 b)To print output a)Double data type c)Syntax error c)No error b)/ a)Assignment b)0 b)Skips to the next iteration

29/10/2024 11:02:54 [email protected] 18 / 20 Josheeta Mohanty c) Dennis Ritchie c)include a)LowerCase b)char d) all of the above a) Preprocessor directive c) stdio. h a) # b)_name a)scanf("%d",&var); d)%lf c)10 19 b)To print output b)Decimal integer c)Syntax error a)Missing & in scanf b)/ a)Assignment b)0 b)Skips to the next iteration

29/10/2024 11:02:59 [email protected] 17 / 20 Manisha Dash c) Dennis Ritchie c)include a)LowerCase b)char d) all of the above a) Preprocessor directive c) stdio. h a) # b)_name a)scanf("%d",&var); a)%f c)10 19 b)To print output b)Decimal integer c)Syntax error a)Missing & in scanf b)/ b)Equality d)False b)Skips to the next iteration

29/10/2024 11:02:59 [email protected] 16 / 20 Dharitriprava sahoo c) Dennis Ritchie c)include a)LowerCase b)char d) all of the above a) Preprocessor directive c) stdio. h a) # b)_name a)scanf("%d",&var); d)%lf c)10 19 b)To print output b)Decimal integer c)Syntax error d)Syntax error d)\ a)Assignment b)0 b)Skips to the next iteration

29/10/2024 11:03:02 [email protected] 15 / 20 M ADYASHA PRIYADARSINI c) Dennis Ritchie c)include a)LowerCase b)char d) all of the above a) Preprocessor directive c) stdio. h a) # b)_name a)scanf("%d",&var); b)%d c)10 19 b)To print output b)Decimal integer c)Syntax error d)Syntax error b)/ b)Equality d)False a)Terminates the loop

29/10/2024 11:03:15 [email protected] 18 / 20 Jayshri Mishra c) Dennis Ritchie c)include a)LowerCase b)char d) all of the above a) Preprocessor directive c) stdio. h a) # d)none of the above a)scanf("%d",&var); d)%lf c)10 19 b)To print output b)Decimal integer c)Syntax error a)Missing & in scanf b)/ b)Equality b)0 b)Skips to the next iteration

29/10/2024 11:03:16 [email protected] 14 / 20 MANTRIPRAGADA SUBRAHMANYAM c) Dennis Ritchie c)include c) Sentence case b)char a) for a) Preprocessor directive c) stdio. h a) # d)none of the above a)scanf("%d",&var); b)%d c)10 19 b)To print output a)Double data type c)Syntax error a)Missing & in scanf b)/ b)Equality b)0 b)Skips to the next iteration

29/10/2024 11:03:16 [email protected] 18 / 20 Bishnupriya Ghosh c) Dennis Ritchie c)include a)LowerCase b)char d) all of the above a) Preprocessor directive c) stdio. h a) # b)_name a)scanf("%d",&var); d)%lf c)10 19 b)To print output b)Decimal integer c)Syntax error c)No error b)/ b)Equality b)0 b)Skips to the next iteration

29/10/2024 11:03:20 [email protected] 17 / 20 Arjun Mandal c) Dennis Ritchie c)include a)LowerCase b)char d) all of the above a) Preprocessor directive c) stdio. h a) # b)_name a)scanf("%d",&var); d)%lf c)10 19 b)To print output b)Decimal integer c)Syntax error d)Syntax error b)/ b)Equality a)1 b)Skips to the next iteration

29/10/2024 11:03:45 [email protected] 16 / 20 Ashis Pal c) Dennis Ritchie c)include a)LowerCase a)int d) all of the above a) Preprocessor directive c) stdio. h a) # b)_name a)scanf("%d",&var); c)%c c)10 19 b)To print output b)Decimal integer c)Syntax error a)Missing & in scanf b)/ b)Equality a)1 b)Skips to the next iteration

29/10/2024 11:03:46 [email protected] 15 / 20 Subhranshu Murmu c) Dennis Ritchie c)include a)LowerCase b)char d) all of the above a) Preprocessor directive c) stdio. h a) # a)2ndName d)printf("Enter the value); a)%f c)10 19 b)To print output b)Decimal integer c)Syntax error b)Wrong format specifier b)/ b)Equality b)0 b)Skips to the next iteration

29/10/2024 11:03:50 [email protected] 19 / 20 Madhusmita Mundary c) Dennis Ritchie c)include a)LowerCase b)char d) all of the above a) Preprocessor directive c) stdio. h a) # b)_name a)scanf("%d",&var); d)%lf c)10 19 b)To print output b)Decimal integer a)500 a)Missing & in scanf b)/ a)Assignment b)0 b)Skips to the next iteration

29/10/2024 11:03:53 [email protected] 16 / 20 Archana Behera c) Dennis Ritchie c)include a)LowerCase b)char d) all of the above a) Preprocessor directive c) stdio. h a) # d)none of the above d)printf("Enter the value); d)%lf c)10 19 b)To print output b)Decimal integer a)500 d)Syntax error b)/ b)Equality c)True b)Skips to the next iteration

29/10/2024 11:04:00 [email protected] 17 / 20 Hitesh Mishra c) Dennis Ritchie c)include a)LowerCase b)char d) all of the above a) Preprocessor directive c) stdio. h a) # b)_name a)scanf("%d",&var); d)%lf c)10 19 b)To print output c)Dynamic allocation c)Syntax error a)Missing & in scanf b)/ b)Equality c)True b)Skips to the next iteration

29/10/2024 11:04:48 [email protected] 13 / 20 Asutosh Pujapanda c) Dennis Ritchie c)include b) UpperCase b)char d) all of the above c) File inclusion directive c) stdio. h a) # b)_name d)printf("Enter the value); d)%lf c)10 19 a)To read input b)Decimal integer c)Syntax error a)Missing & in scanf d)\ b)Equality d)False b)Skips to the next iteration

29/10/2024 11:04:48 [email protected] 12 / 20 SOYAM PRAKASH SAMAL c) Dennis Ritchie d)float b) UpperCase b)char d) all of the above a) Preprocessor directive c) stdio. h a) # d)none of the above b)printf("%d",var); b)%d c)10 19 b)To print output a)Double data type a)500 b)Wrong format specifier b)/ b)Equality a)1 b)Skips to the next iteration

29/10/2024 11:05:15 [email protected] 17 / 20 Arpit Kiran Mangaraj c) Dennis Ritchie c)include a)LowerCase b)char d) all of the above a) Preprocessor directive c) stdio. h a) # b)_name a)scanf("%d",&var); d)%lf c)10 19 b)To print output b)Decimal integer c)Syntax error d)Syntax error b)/ b)Equality d)False b)Skips to the next iteration

29/10/2024 11:06:40 [email protected] 18 / 20 Sachidanand Mallick c) Dennis Ritchie d)float a)LowerCase b)char d) all of the above a) Preprocessor directive c) stdio. h a) # b)_name a)scanf("%d",&var); b)%d c)10 19 b)To print output b)Decimal integer a)500 a)Missing & in scanf b)/ b)Equality b)0 b)Skips to the next iteration

You might also like