MCA1020- PROGRAMMING IN C

Dear students get fully solved  assignments
Send your semester & Specialization name to our mail id :
“ help.mbaassignments@gmail.com ”
or
Call us at : 08263069601


ASSIGNMENT
PROGRAM
BCA
SEMESTER
FIRST
SUBJECT CODE & NAME
MCA1020- PROGRAMMING IN C
CREDIT
4
BK ID
B1639
MAX.MARKS
60

Note: Answer all questions. Kindly note that answers for 10 marks questions should be approximately of 400 words. Each question is followed by evaluation scheme.
Q.1 Define operators. Briefly explain about any four Operators in C.
Answer: - Operators are the symbol which operates on value or a variable. For example: + is a operator to perform addition programming language has wide range of operators to perform various operations. For better understanding of operators, these


2 Differentiate between while and do-while statements.
Answer: - While: - The while loop checks whether the test expression is true or not. If it is true, code/s inside the body of while loop is executed, that is, code/s inside the braces { } are executed. Then again the test expression is checked whether test expression is true or not. This process continues until the test expression becomes false.
Q. 3. Describe about static and external variables.
Answer:- Lifetime of a static variables is throughout a program but its accessibility within the function in which it is declared. External variables are global variables. it can be accessed in any function within a program or out side of the program.
external variables:- In the C programming language, an external variable is a variable defined outside any function block. On the other hand, a local (
4 Define structure. What is the syntax for defining a structure? Write a simple program using structure.
Answer: - Structure:- A struct in the C programming language (and many derivatives) is a complex data type declaration that defines a physically grouped list of variables to be placed under one name in a block of memory, allowing the different variables to be accessed via a single pointer, or the struct declared name which returns the same address. The struct can contain many other complex and simple data types in an association, so is a natural organizing
Q. 5 Define macro. How we can declare a macro statement? Explain with an example.
Answer:- A Macro is typically an abbreviated name given to a piece of code or a value. Macros can also be defined without any value or piece of code but in that case they are used only for testing purpose.
Defining Macros without values

Q. 6 What is the use of fopen () and fclose () function? List and explain different modes for opening a file.
Answer:- Opening And Closing A Disk File
·         Before we dive into the details, take note that the program examples presented here just  for basic file I/O that applies to DOS and Linux.
·         For Windows, you have to study the Win32 programming that provides specifics file I/O  and other related functions. Here we do not


Dear students get fully solved  assignments
Send your semester & Specialization name to our mail id :
“ help.mbaassignments@gmail.com ”
or
Call us at : 08263069601


No comments:

Post a Comment

Note: only a member of this blog may post a comment.