and answers already passed 2025/2026
What type of language is C - correct answer ✔Imperative and proedural
Imperative languages use what and what can they do - correct answer ✔Series of statements, which
can modify the state of the program
Difference between imperative and declarative languages - correct answer ✔Declarative languages
indicate what output you would like to see, and imperative languages tell the computer how to produce
its output
What do procedural languages do - correct answer ✔Indicate that programming logic can be encoded
as procedures or sub-routines that can be called from other locations in the code
Type of language that is the most basic form of structured orogramming - correct answer ✔Procedural
programming
What do OO languages have more than procedural languages - correct answer ✔They couple data with
the methods that operate on them
Can imperative languages couple data with the methods that operate on them - correct answer ✔No
Is C an OOP - correct answer ✔No
Does main in C belong to a class - correct answer ✔No
True or false: C source code is typically distributed across multiple source files - correct answer ✔True
, The code in C is organized around what - correct answer ✔Logical functionality
Functions in C associated with a certain task are organized into what - correct answer ✔A single source
file
Examples in C of functions associated with a certain task that are organized into a single source file -
correct answer ✔IO functions, database functions, graphics functions
Are source files compiled separately? Then what? - correct answer ✔Yes, then linked together into a
single executable
What is the advantage of having source files compiled separately and then linked together into a single
executable? - correct answer ✔This allows changes to large programs to be made much more
efficiently
Use of makefiles - correct answer ✔When large applications require a lot of files, it is a very complex
build environment. Makefiles use a special syntax to define how C/C++ source files should be compiled
and linked into a single application or library
Gcc invocation to compile several source files into a single executable - correct answer ✔gcc file1.c
file2.c myApp.c
Can you use this invocation with large or smaller orograms? And why?
gcc file1.c file2.c myApp.c - correct answer ✔Inly smaller programs, bc it compiles several source files
into a single executable. Large programs have too many source files.
Which of the three files contains a main function in this invocation?