WorksheetsPage 1
Total questions: 9
Worksheet time: 17mins
A team must choose a language for developing firmware that balances low-level control with high-level simplicity. Which choice best justifies selecting C for this task?
It is purely high-level, hiding hardware details fully
It is mid-level, combining efficiency with portability
It is scripting-only, optimized for rapid prototyping
It is graphical, offering visual block programming
A legacy project lists B language as its predecessor and Unix origins in the 1970s. Which inference about C’s lineage is most defensible?
C derived from B at Bell Labs
C originated from Ada at CERN
C evolved from Pascal under Microsoft
C was rewritten from COBOL for banking
You plan to migrate a toolchain across diverse platforms with minimal code changes. Which argument for C best addresses portability planning?
C is highly portable across systems
C runs only on Unix variants
C requires proprietary compilers
C depends on embedded interpreters
A developer is considering C for a project that requires efficient memory management. Which feature of C best supports this requirement?
C allows manual memory allocation and deallocation
C automatically manages memory through garbage collection
C restricts access to memory for safety
C uses a virtual machine for memory management
In C, what is the primary purpose of the 'main' function?
To handle exceptions
To serve as the entry point of the program
To declare libraries
To define global variables
What role does the 'void' keyword play in function prototypes in C programming?
It signifies that the function does not return a value
It permits the use of variable-length arguments
It indicates a pointer type
It represents a fixed value
Which data type in C is used to store a single character?
double
float
char
int
What is the size of an 'int' data type in C on a typical 32-bit system?
2 bytes
4 bytes
8 bytes
1 byte
What is the purpose of the 'return' statement in a C function?
To create a loop
To declare a variable
To return a value to the caller
To exit the program immediately
