100% satisfaction guarantee Immediately available after payment Both online and in PDF No strings attached 4.6 TrustPilot
logo-home
Exam (elaborations)

L4 COMP 348 Functions (C) Question and answers already passed 2025/2026

Rating
-
Sold
-
Pages
9
Grade
A+
Uploaded on
29-09-2025
Written in
2025/2026

L4 COMP 348 Functions (C) Question 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 langua

Show more Read less
Institution
L4 COMP 348 Functions
Course
L4 COMP 348 Functions









Whoops! We can’t load your doc right now. Try again or contact support.

Written for

Institution
L4 COMP 348 Functions
Course
L4 COMP 348 Functions

Document information

Uploaded on
September 29, 2025
Number of pages
9
Written in
2025/2026
Type
Exam (elaborations)
Contains
Questions & answers

Subjects

Content preview

L4 COMP 348 Functions (C) Question
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?

Get to know the seller

Seller avatar
Reputation scores are based on the amount of documents a seller has sold for a fee and the reviews they have received for those documents. There are three levels: Bronze, Silver and Gold. The better the reputation, the more your can rely on the quality of the sellers work.
LEWISSHAWN55 Yale University
View profile
Follow You need to be logged in order to follow users or courses
Sold
87
Member since
2 year
Number of followers
46
Documents
7240
Last sold
1 month ago
THE SHOP FOR EXAMS,TESTBANKS,AQA, WHAT YOU STUDY AND WISH TO PASS THEN COME AND CHECK FOR YOUR NEED ......

WANT TO PASS YOUR EXAMS??? IF YES CHECK OUT MY ACCOUNT FOR ALL YOUR EXAMS NEED BE IT NURSING,REALTORS, HUMAN RESOURCE,MATHS,BIOLOGY,WGU,ICT, YOU BETTER CHECK MY ACCOUNT FOR MORE IF YOU GET WHAT U WANT THEN FEEL FREE TO PURCHASE AT A BETTER PRICE........

3.1

10 reviews

5
5
4
0
3
0
2
1
1
4

Recently viewed by you

Why students choose Stuvia

Created by fellow students, verified by reviews

Quality you can trust: written by students who passed their tests and reviewed by others who've used these notes.

Didn't get what you expected? Choose another document

No worries! You can instantly pick a different document that better fits what you're looking for.

Pay as you like, start learning right away

No subscription, no commitments. Pay the way you're used to via credit card and download your PDF document instantly.

Student with book image

“Bought, downloaded, and aced it. It really can be that simple.”

Alisha Student

Frequently asked questions