Podcast
Questions and Answers
Write the purpose of an operating system?
Write the purpose of an operating system?
An operating system (OS) manages computer hardware and software resources and provides common services for computer programs.
A Source program usually in which language?
A Source program usually in which language?
High-level language.
Give the range of values that can be stored by int data type in C?
Give the range of values that can be stored by int data type in C?
The range of values that can be stored by an int
data type in C is typically from -32,768 to 32,767 (for a 16-bit int
) or -2,147,483,648 to 2,147,483,647 (for a 32-bit int
).
How is an array initialized in C language?
How is an array initialized in C language?
Find out the output of the following code snippet:
int main()
{ int sum=2+4/2+6*2;
printf("%d",sum) ;
return0;
}
Find out the output of the following code snippet:
int main()
{ int sum=2+4/2+6*2;
printf("%d",sum) ;
return0;
}
Write the disadvantage of arrays in C?
Write the disadvantage of arrays in C?
Write the return type of the open()
function in C?
Write the return type of the open()
function in C?
Find out the output of the following code:
void main()
{ int i;
for (i+1;i<=10;i++)
printf("%d\n",i);
}
Find out the output of the following code:
void main()
{ int i;
for (i+1;i<=10;i++)
printf("%d\n",i);
}
Write the types of functions in C language?
Write the types of functions in C language?
Comment on this const int *ptr;
Comment on this const int *ptr;
List out the return type of malloc()
or calloc()
.
List out the return type of malloc()
or calloc()
.
Write the return value of putchar()
.
Write the return value of putchar()
.
List the different data types in C.
List the different data types in C.
Define the variable. Illustrate with an example.
Define the variable. Illustrate with an example.
Differentiate between a for
loop and a while
loop? What are its uses?
Differentiate between a for
loop and a while
loop? What are its uses?
Explain the decision-making statement in C.
Explain the decision-making statement in C.
Differentiate between Array and Pointers?
Differentiate between Array and Pointers?
Differentiate between malloc and calloc?
Differentiate between malloc and calloc?
How to declare a members in Structure?
How to declare a members in Structure?
Write short notes on fseek().
Write short notes on fseek().
Explain the various Storage classes in C in detail.
Explain the various Storage classes in C in detail.
Explain the Structure of a C program in detail.
Explain the Structure of a C program in detail.
Difference between CALL by Value and CALL by Address with example.
Difference between CALL by Value and CALL by Address with example.
Explain the concept of files with examples.
Explain the concept of files with examples.
Flashcards
Operating System
Operating System
Software that manages computer hardware and provides services for applications.
Source Program
Source Program
Human-readable form of a program, typically written in a high-level language.
Arrays Disadvantage
Arrays Disadvantage
Arrays use contiguous memory locations
Functions
Functions
Signup and view all the flashcards
Variable
Variable
Signup and view all the flashcards
Storage Classes
Storage Classes
Signup and view all the flashcards
Call by Value vs. Call by Address
Call by Value vs. Call by Address
Signup and view all the flashcards
String
String
Signup and view all the flashcards
fseek() function
fseek() function
Signup and view all the flashcards
Study Notes
- The exam is TCS-101 Programming for Problem Solving in B. Tech (First Semester)
- The exam is in three hours with a maximum of 60 marks
Section A: Very Short Answer Questions
- Each question in this section is worth 1 mark
- A question asks for the purpose of an operating system
- A question asks to state the language of a source program
- A question asks for the range of values that can be stored by the int data type
- A question asks how to initialize an array in C language
- A question asks for the output of a given code snippet
- A question asks to note the disadvantage of arrays in C
- A question asks for the return type of the open() function in C
- A question asks for the output of a given code
- A question asks for the types of functions in the C language
- A question asks to comment on
const int*ptr
- A question asks for the return type of malloc() or calloc()
- A question asks for the return value of putchar()
Section B: Short Answer Type Questions
- Each question in this section is worth 4 marks
- A question asks to list the different data types in C, or define a variable and illustrate with an example
- A question asks to write a program to find the greatest of three numbers, or write a program to determine if a given number is even or odd
- A question asks to differentiate between a for loop and a while loop and their uses, or explain the decision making statement in C
- A question asks to differentiate between arrays and pointers, or write a program to find the average of n numbers using arrays
- A question asks to differentiate between malloc and calloc, or how to declare a member in a structure
- A question asks to write short notes on fseek(), or write a program to accept a string and display it in reverse
Section C: Long Answer Type Questions
- Each question in this section is worth 8 marks
- A question asks to explain the various storage classes in C in detail, or explain the structure of a C program in detail
- A question asks to write the difference between CALL by value and CALL by address with an example, or write a program to implement multiplication of 2 matrices
- A question asks to explain the concept of files with examples, or write a program to COPY one file's contents into another
Studying That Suits You
Use AI to generate personalized quizzes and flashcards to suit your learning preferences.