30 Questions
Which of the following is NOT considered an input device for a computer?
Printer
What is the origin of the word 'computer'?
From the word 'calculate', meaning 'to measure'.
What function do output devices in a computer system perform?
Convert computer data into human-understandable information.
How is a general-purpose computer defined?
A device that can solve problems quickly and accurately with proper instructions.
In the context of computing, what does the Central Processing Unit (CPU) primarily do?
Receive data from input devices and process it.
Which of the following is not an example of an input device for a computer system?
Webcam
Why is C language considered a middle-level language?
Because it is perfect for writing both operating systems and customer billing systems
What is the role of a compiler?
Converts whole program at a time
How does an interpreter convert a program?
It converts program line by line
What is the main function of an assembler?
To translate assembly language programs
What is a flowchart commonly used for in programming?
As a graphical representation of an algorithm
Why would a programmer use Turbo C IDE shortcuts?
To speed up coding using built-in shortcuts
What is the primary purpose of header files in C language?
To include predefined standard library functions
What is the syntax to include a header file from a system/default directory?
#include
What is the purpose of decision making statements in C programming?
To control the flow of program
What is the extension of a header file in C?
.h
What is the purpose of the stdio.h header file?
For input and output operations
What is the format to include a header file from the same directory as the source file?
#include "filename.h"
What is the purpose of the link section in a C program?
To include header files from libraries
Which part of a C program contains function definitions declared in the Global Declaration section?
Subprograms
What is the role of the #define preprocessor directive?
To define symbolic constants
In a C program, where does the execution start?
In the main function
What is the mandatory function in every C program?
main function
What is the purpose of the Global Declaration section?
To declare global variables and function declarations
What is the purpose of the default clause in a switch statement?
To handle unexpected inputs
What is the primary function of a loop in programming?
To execute a block of code multiple times
What type of loop is a while loop?
Entry controlled loop
What is the purpose of the break statement in a switch block?
To exit the switch block
What is the difference between an if statement and a while loop?
An if statement executes a block of code only once, while a while loop executes a block of code multiple times
What is the syntax of a while loop?
while (condition) { // body of the while }
Explore the versatility of C language for developing operating systems and application software, such as customer billing systems. Understand the concept of C being a middle-level language bridging the gap between system and application programming.
Make Your Own Quizzes and Flashcards
Convert your notes into interactive study material.
Get started for free