munotes® Sign in

Engineering FE Engineering Common Sem 2 C Programming Mar 2021 R16 Online Question Paper - Mumbai University | munotes

C Programming Question Paper, Mar 2021.pdf
HAS · 91 KB · 30 Nov 2026

Loading PDF...

Questions asked in this paper

Solved paper All 32 questions answered in full Exam-ready answers, the reasoning behind each one, and what the examiner is looking for. Open the solutions

Q1 Q1. Choose the correct option for following questions. All the Questions are compulsory and carry equal marks.

  1. 1. Which of the following is a collection of programs that interfaces with a hardware? Option A: Application software. Option B: System software. Option C: All the user written application programs. Option D: Spreadsheet software. 2 marks
    Read the model answer
  2. 2. Which of the following is not the advantage of the compiler in comparison to the interpreter. Option A: Fast in debugging. Option B: Less execution time. Option C: Scan the entire program before translating it into machine code. Option D: Do not run the code till all the errors are removed. 2 marks
    Read the model answer
  3. 3. Which of the following backslash character indicates ASCII null character? Option A: \n. Option B: \NULL. Option C: \x. Option D: \0. 2 marks
    Read the model answer
  4. 4. Which of the following has highest operator precedence in C language? Option A: Option B: &. Option C: ==. Option D: /. 2 marks
    Read the model answer
  5. 5. Which of the following is not a selection or branching type of program control statement in C language? Option A: if. Option B: switch. Option C: for. Option D: goto. 2 marks
    Read the model answer
  6. 6. What will be the output of the following code? #include<stdio.h> void main() { int a=10; if(a==10) print("yes"); else printf("no"); } Option A: yes. Option B: no. Option C: 10. Option D: Compile time error. 2 marks
    Read the model answer
  7. 7. What will be printed by the code below? #include<stdio.h> void main() { float x= 23.4; if(x<100) printf("1"); if(x<200) printf("2"); else printf("3"); } Option A: 1. Option B: 12. Option C: 123. Option D: 2. 2 marks
    Read the model answer
  8. 8. What will be the output of the following code? #include<stdio.h> void main() { int a=10, b=20, c=30, d; d=c>b?c:b>a?b:a; printf("%d",d); } Option A: 10. Option B: 20. Option C: 30. Option D: 0. 2 marks
    Read the model answer
  9. 9. What will be the output of following code? #include<stdio.h> void main() { int i; for(i=1; i<3; ++i) printf("i"); } Option A: i. Option B: ii. Option C: iii. Option D: iiii. 2 marks
    Read the model answer
  10. 10. Which of the following declared variable will not be stored in RAM or primary memory? Option A: int a; Option B: static int a; Option C: extern int a; Option D: register int a; 2 marks
    Read the model answer
  11. 11. What will be the output of the following code? #include<stdio.h> void xyz(int *a) { ++*a; } void main() { int a=10; xyz(&a); printf("%d",a); } Option A: 0. Option B: 9. Option C: 10. Option D: 11. 2 marks
    Read the model answer
  12. 12. What will be the value of b[1] element if an array is declared and defined as int b[]={1,2,3}; Option A: 1. Option B: 2. Option C: NULL. Option D: 0 or Garbage value. 2 marks
    Read the model answer
  13. 13. Which of the following is valid string declaration? Option A: String s = "char"; Option B: Char s="string"; Option C: char s[]="char"; Option D: String s[]="String"; 2 marks
    Read the model answer
  14. 14. What will be the output of following code? #include<stdio.h> struct { int a,b; }s; void main() { a=10; b=20; printf("%d %d",s.a, s.b); } Option A: 10 20. Option B: 20 10. Option C: 00. Option D: Error. 2 marks
    Read the model answer
  15. 15. What will be the output of the following code? #include<stdio.h> #include<string.h> void main() { char a[] = "hello"; char b[] = "Hello"; printf("%d",strcmp(a,b)); } Option A: Negative value. Option B: 0. Option C: Positive value. Option D: Error. 2 marks
    Read the model answer
  16. 16. What will be the output of the following code? #include<stdio.h> void main() { int i; char a[]="hi\0xyz"; puts(a); printf("hello"); } Option A: hi\0xyz. Option B: hi\0xyz / hello. Option C: hihello. Option D: hi / hello. 2 marks
    Read the model answer
  17. 17. What is the output of the following code? #include<stdio.h> void main(){ int a = 010; printf("%x",a); } Option A: 1. Option B: 4. Option C: 8. Option D: 10. 2 marks
    Read the model answer
  18. 18. Which of the following file opening mode opens a text file in read mode only in fopen(). Option A: r. Option B: rb. Option C: r+. Option D: rb+. 2 marks
    Read the model answer
  19. 19. What will be the output of the following code? #include<stdio.h> void main() { int a[] = {10,12,6,7,2}; int *p; p=a+4; printf("%d",*p); } Option A: 12. Option B: 6. Option C: 7. Option D: 2. 2 marks
    Read the model answer
  20. 20. What will be the output of following code? #include<stdio.h> void main() { int a=10; int *p=&a; (*p)++; printf("%d",*p); } Option A: 10. Option B: 11. Option C: Garbage value. Option D: Compile time error. 2 marks
    Read the model answer

Q2 Q2. Solve any Four out of Six questions below. 5 marks each. Total 20 marks.

  1. A What are the different symbols used in the flowchart? Also draw a flowchart to decide a number is even or odd. 5 marks
    Read the model answer
  2. B Write a program to determine entered year is leap year or not? 5 marks
    Read the model answer
  3. C Write a program to print following output. ****/***/**/* 5 marks
    Read the model answer
  4. D Write a program to read two strings from the user, print length of both strings. Also search if the first string is present in second string or not? Use proper string manipulation function from string.h of the C language. 5 marks
    Read the model answer
  5. E Write a program to read details of N staffs (id, name, age) using suitable user defined data type. Print these details in the tabular format. 5 marks
    Read the model answer
  6. F Write a program to swap two numbers using call by reference. 5 marks
    Read the model answer

Q3 Q3. Solve any Four out of Six questions below. 5 marks each. Total 20 marks.

  1. A Write logical and bitwise operators supported in the C language. Write the operator symbol(s), name of the operator, and example use of each of the operator. 5 marks
    Read the model answer
  2. B Write a program to find the smallest among three numbers using nested if-else statements. 5 marks
    Read the model answer
  3. C Write all the storage classes in C language with respect to keyword, place of storage, scope of the variable, lifespan and default value of the respective storage class. 5 marks
    Read the model answer
  4. D Write a program to read N numbers from the user in an array and print the largest number among them. 5 marks
    Read the model answer
  5. E Write the differences between struct and union user defined data type of the C language, with an example code. 5 marks
    Read the model answer
  6. F Write a program to open the already existing text file in read mode, print the contents of that text file, and close the file. 5 marks
    Read the model answer

Read from the scan above, so a character or two may differ. The scan is the original.

Issue

Something wrong on this page? Report it and we will check it against the scan.

Quick Help

No. The full paper opens straight away, with no login and nothing to pay.

Something wrong with this paper? Report it.

Connected Papers
Engineering / HAS · 250 papers
Browse all →
May 2026 - R19 Dec 2023 Dec 2023 - R16 Dec 2023 - R16 Dec 2023 - R16 Dec 2023 - R16 Mar 2022 - Online Mar 2022 - Online Mar 2022 - Online Mar 2022 - R16 Online Mar 2022 - R16 Online Mar 2022 - R19 Online Mar 2022 - R19 Online Apr 2021 - Online Apr 2021 - Online Apr 2021 - Online Apr 2021 - Online Apr 2021 - Online Mar 2021 - Online Mar 2021 - Online Mar 2021 - Online Mar 2021 - Online Mar 2021 - R16 Online Mar 2021 - R16 Online Mar 2021 - R16 Online Mar 2021 - R16 Online Mar 2021 - R16 Online Mar 2021 - R19 Online Mar 2021 - R19 Online Mar 2021 - R19 Online Mar 2021 - R19 Online Dec 2019 - R16 May 2018 - CBSGS May 2018 - CBSGS May 2018 - R16 May 2018 - R16 Dec 2017 - CBSGS Dec 2017 - CBSGS Dec 2017 - R16 Dec 2017 - R16 May 2017 - CBSGS May 2017 - CBSGS May 2017 - R16 May 2017 - R16 Dec 2016 - CBSGS Dec 2016 - CBSGS Dec 2016 - CBSGS Dec 2016 - R16 Dec 2016 - R16 May 2016 May 2016 Dec 2015 Dec 2015 Dec 2015 May 2015 May 2015 May 2015 Dec 2014 Dec 2014 Dec 2014 May 2014 May 2014 May 2014 May 2014 - REV-2007 May 2014 - REV-2007 May 2014 - REV-2007 May 2014 - REV-2007 May 2014 - REV-2007 May 2014 - REV-2007 Dec 2013 Dec 2013 Dec 2013 Dec 2013 - REV-2007 Dec 2013 - REV-2007 Dec 2013 - REV-2007 Dec 2013 - REV-2007 Dec 2013 - REV-2007 May 2013 May 2013 May 2013 May 2013 - REV-2007 May 2013 - REV-2007 May 2013 - REV-2007 May 2013 - REV-2007 May 2013 - Retyped May 2013 - Retyped Dec 2012 Dec 2012 Dec 2012 Dec 2012 - REV-2007 Dec 2012 - REV-2007 Dec 2012 - REV-2007 Dec 2012 - REV-2007 Dec 2012 - REV-2007 Dec 2012 - REV-2007 May 2012 - REV-2007 May 2012 - REV-2007 Dec 2011 - REV-2007 Dec 2011 - REV-2007 Dec 2011 - REV-2007 Dec 2011 - REV-2007 Dec 2011 - REV-2007 May 2011 - REV-2007 May 2011 - REV-2007 May 2011 - REV-2007 May 2011 - REV-2007 May 2011 - REV-2007 May 2011 - REV-2007 Dec 2010 - REV-2007 Dec 2010 - REV-2007 Dec 2010 - REV-2007 Dec 2010 - REV-2007 Dec 2010 - REV-2007 Dec 2010 - REV-2007 May 2010 - REV-2007 May 2010 - REV-2007 May 2010 - REV-2007 May 2010 - REV-2007 May 2010 - REV-2007
May 2026 May 2026 May 2026 May 2025 Dec 2023 - R16 Dec 2023 - R16 Dec 2023 - R16 Dec 2023 - R16 Dec 2023 - R16 Dec 2023 - R16 Dec 2022 - R16 Mar 2022 - Online Mar 2022 - Online Mar 2022 - Online Mar 2022 - R16 Online Mar 2022 - R16 Online Mar 2022 - R19 Online Mar 2022 - R19 Online 2022 - Summer R16 Aug 2021 - Online Aug 2021 - Online Aug 2021 - Online Aug 2021 - Online Aug 2021 - Online Aug 2021 - Online Mar 2021 - Online Mar 2021 - Online Mar 2021 - Online Mar 2021 - Online Mar 2021 - Online Mar 2021 - Online Mar 2021 - R16 Online Open Mar 2021 - R16 Online Mar 2021 - R16 Online Mar 2021 - R16 Online Mar 2021 - R16 Online Mar 2021 - R19 Online Mar 2021 - R19 Online Mar 2021 - R19 Online Mar 2021 - R19 Online Mar 2021 - R19 Online Dec 2018 - R16 May 2018 - CBSGS May 2018 - CBSGS May 2018 - CBSGS May 2018 - R16 May 2018 - R16 May 2018 - R16 Dec 2017 - CBSGS Dec 2017 - CBSGS Dec 2017 - CBSGS Dec 2017 - R16 Dec 2017 - R16 Dec 2017 - R16 May 2017 - CBSGS May 2017 - CBSGS May 2017 - CBSGS May 2017 - R16 May 2017 - R16 May 2017 - R16 May 2017 - REV-2007 May 2017 - REV-2007 May 2017 - REV-2007 May 2017 - REV-2007 Dec 2016 Dec 2016 Dec 2016 Dec 2016 - REV-2007 May 2016 May 2016 May 2016 Dec 2015 Dec 2015 Dec 2015 May 2015 May 2015 May 2015 May 2015 - REV-2007 May 2015 - REV-2007 May 2015 - REV-2007 May 2015 - REV-2007 May 2015 - REV-2007 Dec 2014 Dec 2014 Dec 2014 May 2014 May 2014 May 2014 Dec 2013 Dec 2013 Dec 2013 Dec 2013 - REV-2007 Dec 2013 - REV-2007 Dec 2013 - REV-2007 Dec 2013 - REV-2007 May 2013 May 2013 May 2013 May 2013 - REV-2007 May 2013 - REV-2007 May 2013 - REV-2007 Dec 2012 - REV-2007 Dec 2012 - REV-2007 Dec 2012 - REV-2007 Dec 2012 - REV-2007 Dec 2012 - REV-2007 May 2012 - REV-2007 May 2012 - REV-2007 May 2012 - REV-2007 Dec 2011 - REV-2007 Dec 2011 - REV-2007 May 2011 - REV-2007 May 2011 - REV-2007 May 2011 - REV-2007 May 2011 - REV-2007 May 2011 - REV-2007 Dec 2010 - REV-2007 Dec 2010 - REV-2007 Dec 2010 - REV-2007 Dec 2010 - REV-2007 May 2010 - REV-2007 May 2010 - REV-2007 May 2010 - REV-2007 May 2010 - REV-2007 May 2009 - REV-2007 May 2009 - REV-2007 Dec 2008 - REV-2007 Dec 2008 - REV-2007 Dec 2008 - REV-2007 Dec 2008 - REV-2007 Dec 2008 - REV-2007
Questions? Email contact@munotes.in
Done!
Done!