0% found this document useful (0 votes)
102 views2 pages

Assignment 1

This document contains 25 questions related to computer concepts and programming in C language for the subject CE141. The questions cover topics like algorithms, flowcharts, header files, macros, data types, operators, loops, arrays, strings, functions, pointers, structures, files and command line arguments. Students need to write solutions to these questions as part of their assignments.

Uploaded by

shruti
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)
102 views2 pages

Assignment 1

This document contains 25 questions related to computer concepts and programming in C language for the subject CE141. The questions cover topics like algorithms, flowcharts, header files, macros, data types, operators, loops, arrays, strings, functions, pointers, structures, files and command line arguments. Students need to write solutions to these questions as part of their assignments.

Uploaded by

shruti
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/ 2

CHAROTAR UNIVERSITY OF SCIENCE AND TECHNOLOGY

CHANDUBHAI S PATEL INSTITUTE OF TECHNOLOGY


F.Y. B.Tech (CE/IT/EC/CSE)
ACADEMIC YEAR: 2018-19
Subject: CE141 - Computer Concepts and Programming
ASSIGNMENTS OF ALL CHAPTERS

1. Write an Algorithm to compute and Print the sum of the following


series:
3 5 7
x – x / 3! + x / 5! – x / 7! + …….
2. Draw the flow chart to find the roots of quadratic equations.
3. What is the purpose of header file? Is the use of header file
absolutely required? What is the difference between header file
and library file.
4. Explain with example Preprocessor directive named Macro
Expansion without argument and with argument? What do you
mean by Macro Templates (Symbolic name) and Macro Expansion
(Symbolic constant)? Explain two advantages of using symbolic
constant. How do variable and symbolic name differ?
5. What are L-Values and R-Values in C ? Explain with example.
6. What do you mean by precedence and Associativity? Explain with
example.
7. Explain type conversion using example. What are the rules of
implicit type and explicit type conversion?
8. What do you mean by a dangling Else Problem?
9. Explain nesting of do..while loop with example.
10. Differentiate the following:
Counter-Controlled Loop (Definite Repetition loop) – Sentinel
Controlled Loops (Indefinite Repetition loop)
11. Draw how integer array of 5 elements is stored in memory. How
does a character array differ from integer array? Explain with
example.
12. What is a String? How string is stored? What is importance of null
character in strings? Explain with example.
13. Explain the following functions defined in string.h header file.
(a) strcpy( )
(b) strncpy()
(c) strcat()

1
CHAROTAR UNIVERSITY OF SCIENCE AND TECHNOLOGY
CHANDUBHAI S PATEL INSTITUTE OF TECHNOLOGY
F.Y. B.Tech (CE/IT/EC)
ACADEMIC YEAR: 2017-18
Subject: CE141 - Computer Concepts and Programming
ASSIGNMENTS OF ALL CHAPTERS
(d) strncat()
(e) strstr()
(f) strlen()
(g) strrev()
(h) strcmp()
(i) strncmp()
(j) strchr()
(k) strrchr()
14. Distinguish between: Recursive Function and Iterative Function
15. Distinguish between: Call by Value and Call by Address/Pass by
pointers
16. What is meant by the scope, visibility and longevity of a variable
within a program? Explain various types of storage class specifier.
17. Explain with example how a structure is passed as function
argument.
18. Explain the advantages of using Bit fields in a structure with
example.
19. Explain chain of pointers & write down rules for Pointer
Operations.
20. What is scale factor of a pointer? Explain function returning
pointers & pointers to functions.
21. Explain array of pointers and pointers to structure.
22. Write difference between getc( ), getw( ), getch( ), getchar().
23. What are the functions used for Random access and Sequential
access of file?
24. What is the significance of EOF? What is the purpose of closing
the file during the execution of the program?
25. What is a command line argument? Which command line
arguments are taken by the main function? What do they
represent?

You might also like