Question
What is the main purpose of programming?
A program is a collection of:
Which of the following is an example of a high-level programming language?
The process of converting source code into machine code is called:
Which of the following is NOT a basic programming construct?
A logical step-by-step solution to a problem is known as a:
The process of entering data into a program is known as:
In C, which function is used to take input from the user?
Which function is used to display output on the screen?
Which operator is used for output in C?
Which of the following correctly declares a character variable?
What is the correct way to declare a string in C?
Which format specifier is used for character output in printf()?
Which function is used to find the length of a string in C?
Strings in C are terminated with:
Which data type is used for integer values in C?
The format specifier for an integer is:
The expression int a = 5/2; gives the result:
Which data type is used to store decimal values?
The correct way to declare a float variable is:
What will printf('%f', 3.5/2); output?
Which of the following steps is NOT part of the program development cycle?
The process of finding and removing logical or syntax errors is called:
Which step comes immediately before testing in the development cycle?
Writing a program’s logic using flowcharts or pseudocode is part of:
Writing comments in code helps in:
What type of testing ensures that individual modules of code work correctly?
Commercial software testing mainly focuses on:
A user manual for a commercial program is an example of:
Which of the following correctly declares and assigns a variable in C?
Option A Option B
a) To design hardware b) To instruct the computer to perform tasks
a) Data only b) Hardware components
a) Assembly language b) Machine code
a) Debugging b) Compiling
a) Sequence b) Selection
a) Program b) Flowchart
a) Input b) Output
a) printf() b) read()
a) display() b) write()
a) → b) <<
a) string c; b) char c;
a) string name = 'Divya'; b) char name[] = 'Divya';
a) %s b) %d
a) strlen() b) strlength()
a) Null character ‘\0’ b) Space
a) int b) char
a) %d b) %i
a) 2.5 b) 2
a) int b) float
a) float num = 3.14; b) int num = 3.14;
a) 1.5 b) 1
a) Problem definition b) Coding
a) Compiling b) Debugging
a) Coding b) Documenting
a) Coding b) Design
a) Making the code execute fastb) Documentation and readability
a) System testing b) Unit testing
a) Speed of compilation b) Meeting customer requirements and reliability
a) Internal documentation b) External documentation
a) int x; x = 10; b) x = 10;
Option C Option D
c) To test computer speed d) To manage operating systems
c) Instructions written in a programming language d) Algorithms without syntax
c) C language d) Binary code
c) Testing d) Interpreting
c) Iteration d) Printing
c) Algorithm d) Statement
c) Processing d) Debugging
c) scanf() d) cin
c) print() d) printf()
c) >> d) None (C uses functions like printf)
c) int c; d) text c;
c) text name = 'Divya'; d) str name = 'Divya';
c) %c d) %f
c) length() d) size()
c) Dot (.) d) Tab
c) float d) double
c) Both a and b d) %f
c) 3 d) Error
c) char d) short
c) double num = 3; d) char num = '3.14';
c) 1.750000 d) 2
c) Debugging d) Marketing
c) Execution d) Documentation
c) Designing d) Analysis
c) Debugging d) Execution
c) Debugging automatically d) Compilation
c) Integration testing d) User acceptance testing
c) Reducing code size only d) Hardware maintenance
c) Source code d) Error log
c) declare x = 10; d) int = 10;
Correct Answer BTL Level
b) To instruct the computer to perform tasks Understanding
c) Instructions written in a programming language Remembering
c) C language Remembering
b) Compiling Understanding
d) Printing Analyzing
c) Algorithm Understanding
a) Input Remembering
c) scanf() Remembering
d) printf() Remembering
d) None (C uses functions like printf) Understanding
b) char c; Remembering
b) char name[] = 'Divya'; Understanding
c) %c Remembering
a) strlen() Remembering
a) Null character ‘\0’ Understanding
a) int Remembering
c) Both a and b Understanding
b) 2 Analyzing
b) float Remembering
a) float num = 3.14; Understanding
c) 1.750000 Applying
d) Marketing Understanding
b) Debugging Analyzing
a) Coding Remembering
b) Design Understanding
b) Documentation and readability Understanding
b) Unit testing Analyzing
b) Meeting customer requirements and reliability Evaluating
b) External documentation Remembering
a) int x; x = 10; Applying