Podcast
Questions and Answers
Who developed C language?
Who developed C language?
What is an example of repetition in C?
What is an example of repetition in C?
The C-preprocessors are specified with which symbol?
The C-preprocessors are specified with which symbol?
The switch expression can be which types?
The switch expression can be which types?
Signup and view all the answers
Which operator is used to access the value pointed to by a pointer?
Which operator is used to access the value pointed to by a pointer?
Signup and view all the answers
A function which calls itself is called a ___ function.
A function which calls itself is called a ___ function.
Signup and view all the answers
Which statement executes at least one time in C?
Which statement executes at least one time in C?
Signup and view all the answers
What will evaluate the result in integer only?
What will evaluate the result in integer only?
Signup and view all the answers
What will be the output of the given C code when i is set to 5?
What will be the output of the given C code when i is set to 5?
Signup and view all the answers
Which of the following is not a standard header file in C?
Which of the following is not a standard header file in C?
Signup and view all the answers
What is the correct extension for a C header file?
What is the correct extension for a C header file?
Signup and view all the answers
Which statement about the C programming language is true?
Which statement about the C programming language is true?
Signup and view all the answers
What are the elements in the array represented by the following code: int arr = {5};?
What are the elements in the array represented by the following code: int arr = {5};?
Signup and view all the answers
How many keywords are there in the C programming language?
How many keywords are there in the C programming language?
Signup and view all the answers
What process is used to compile a C source file?
What process is used to compile a C source file?
Signup and view all the answers
What is the purpose of using a flowchart in programming?
What is the purpose of using a flowchart in programming?
Signup and view all the answers
Study Notes
Introduction to Programming [CA413]
- Exam Date and Time: January 24, 2024 (1:15 PM - 4:30 PM)
- Exam Duration: 195 minutes
- Section 1 Duration: 40 minutes
- Total Marks: 70
Section I
-
Question 1: Who developed C language?
- Dennis Ritchie
-
Question 2: All keywords in C are in what case?
- Lower Case letters
-
Question 3: What is an example of repetition in C?
-
for
,while
,do...while
-
-
Question 4: The C-preprocessors are specified with what symbol?
-
#
-
-
Question 5:
scanf()
is a predefined function in which header file?-
stdio.h
-
-
Question 6: What will be the final value of
x
in the following C code?#include <stdio.h> void main() { int x = 5*9/3 + 9; printf("%d",x); }
- 24
-
Question 7: The switch expression can be integer, character or float only.
- False
-
Question 8: Which operator is used to access the value pointed to by a pointer?
-
->
-
-
Question 9: What symbol is used to represent the process in a flowchart?
- Parallelogram
-
Question 10: Which function evaluates the result in integer only?
-
strcmp()
-
-
Question 11: A function that calls itself is called a
- Recursive Function
-
Question 12: Which statement executes at least once?
-
do...while
-
-
Question 13: What is the output of the given
switch
code?-
fivesixsevendefault
-
-
Question 14: Which of the following are not standard header files in C?
-
conio.h
-
Question 15:
.c
is the extension for the C program source file.- True
-
Question 16: The extension of header files in C
-
.h
-
-
Question 17: The execution of a program begins with
main()
.- True
-
Question 18: What are the elements present in the array?
int arr[5] = {5};
-
5, 0, 0, 0, 0
-
-
Question 19: How many keywords are there in C language?
- 32
-
Question 20: The C source file is processed by the
- Compiler
Section II
- Detailed questions and instructions for the rest of the exam.
- Includes programming tasks related to flowcharts, switch statements, loops, structure of C programs, file types, identifiers, and numerical computation using arrays.
Section III
- Detailed questions and instructions for further programming tasks.
- Including array declarations, function calls, operators and programming logic for specific calculations.
Studying That Suits You
Use AI to generate personalized quizzes and flashcards to suit your learning preferences.
Related Documents
Description
Prepare for the Introduction to Programming CA413 exam with this comprehensive quiz. Covering essential concepts of the C programming language, it includes questions on keywords, preprocessor directives, and basic syntax. Test your knowledge and boost your confidence ahead of the exam on January 24, 2024.