Podcast
Questions and Answers
Who developed C language?
Who developed C language?
- Rasmus Lerdorf
- James Gosling
- Dennis Ritchie (correct)
- Steve Jobs
What is an example of repetition in C?
What is an example of repetition in C?
- for
- while
- do...while
- All of the above (correct)
The C-preprocessors are specified with which symbol?
The C-preprocessors are specified with which symbol?
- !
- # (correct)
- @
- $
The switch expression can be which types?
The switch expression can be which types?
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?
A function which calls itself is called a ___ function.
A function which calls itself is called a ___ function.
Which statement executes at least one time in C?
Which statement executes at least one time in C?
What will evaluate the result in integer only?
What will evaluate the result in integer only?
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?
Which of the following is not a standard header file in C?
Which of the following is not a standard header file in C?
What is the correct extension for a C header file?
What is the correct extension for a C header file?
Which statement about the C programming language is true?
Which statement about the C programming language is true?
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};?
How many keywords are there in the C programming language?
How many keywords are there in the C programming language?
What process is used to compile a C source file?
What process is used to compile a C source file?
What is the purpose of using a flowchart in programming?
What is the purpose of using a flowchart in programming?
Flashcards
Developer of C language
Developer of C language
Dennis Ritchie developed the C programming language.
C keywords case
C keywords case
C keywords are in lower case letters.
C repetition example
C repetition example
Examples of repetition in C include 'for', 'while', and 'do...while' loops.
C preprocessor symbol
C preprocessor symbol
Signup and view all the flashcards
Switch expression type
Switch expression type
Signup and view all the flashcards
Pointer value access
Pointer value access
Signup and view all the flashcards
Flowchart process symbol
Flowchart process symbol
Signup and view all the flashcards
Integer result function
Integer result function
Signup and view all the flashcards
C program execution start point
C program execution start point
Signup and view all the flashcards
Switch statement rule
Switch statement rule
Signup and view all the flashcards
Switch case output
Switch case output
Signup and view all the flashcards
C program extension
C program extension
Signup and view all the flashcards
C header file extension
C header file extension
Signup and view all the flashcards
Array element example
Array element example
Signup and view all the flashcards
C language keyword count
C language keyword count
Signup and view all the flashcards
C program compilation
C program compilation
Signup and view all the flashcards
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.