Written by students who passed Immediately available after payment Read online or as PDF Wrong document? Swap it for free 4.6 TrustPilot
logo-home
Exam (elaborations)

D684 Introduction to Computer Science Exam ( Questions With Complete Solutions )

Rating
-
Sold
-
Pages
44
Grade
A+
Uploaded on
07-09-2025
Written in
2025/2026

D684 Introduction to Computer Science Exam ( Questions With Complete Solutions ) 1. Why variables are used in computer programs - ANSWER It is used to store and manipulate data, make code flexible and reusable, allow computer programs to react to user input and calculated values 2. Programming Language Paradigms - ANSWER These are different styles or models of programming. Each one has its own rules and approach to solving problems. 3. Imperative Paradigm - ANSWER This style is all about giving the computer exact instructions on what to do — step by step. 4. Characteristics of Imperative Paradigm - ANSWER Focus on how to do things, uses variables, loops, and control flow, direct manipulation of program state. 5. Examples of Imperative Paradigm - ANSWER C, Java, Python (partially imperative). 6. Procedural Paradigm - ANSWER This is a type of imperative programming that groups instructions into procedures (functions). 7. Characteristics of Procedural Paradigm - ANSWER Code is broken into procedures or functions, focus on reusability and logical organization, still step-by-step, but cleaner. 8. Examples of Procedural Paradigm - ANSWER C, Pascal, BASIC, Fortran. 9. Object-Oriented Paradigm - ANSWER Objects — which combine data and actions into one unit. 10. Describe Object-Oriented Paradigm - ANSWER It organizes programs into objects that have properties (data) and methods (actions). Each object is responsible for its own behavior. 11. Characteristics of Object-Oriented Paradigm - ANSWER Uses classes and objects, supports encapsulation, inheritance, and polymorphism, focuses on reusable code and modular design. 12. Examples of Object-Oriented Paradigm - ANSWER Java, Python, C++, Ruby, C#. 13. Declarative Paradigm - ANSWER In the declarative paradigm, you tell the computer what you want, not how to do it.

Show more Read less
Institution
D684 Introduction To Computer Science
Course
D684 Introduction to Computer Science

Content preview

D684 Introduction to Computer
Science Exam ( Questions With
Complete Solutions )


1. Why variables are used in computer programs -
ANSWER ✔ It is used to store and manipulate data,
make code flexible and reusable, allow computer
programs to react to user input and calculated values


2. Programming Language Paradigms - ANSWER ✔
These are different styles or models of programming.
Each one has its own rules and approach to solving
problems.


3. Imperative Paradigm - ANSWER ✔ This style is all
about giving the computer exact instructions on what to
do — step by step.

,4. Characteristics of Imperative Paradigm - ANSWER ✔
Focus on how to do things, uses variables, loops, and
control flow, direct manipulation of program state.


5. Examples of Imperative Paradigm - ANSWER ✔ C,
Java, Python (partially imperative).


6. Procedural Paradigm - ANSWER ✔ This is a type of
imperative programming that groups instructions into
procedures (functions).


7. Characteristics of Procedural Paradigm - ANSWER ✔
Code is broken into procedures or functions, focus on
reusability and logical organization, still step-by-step,
but cleaner.


8. Examples of Procedural Paradigm - ANSWER ✔ C,
Pascal, BASIC, Fortran.

,9. Object-Oriented Paradigm - ANSWER ✔ Objects —
which combine data and actions into one unit.


10. Describe Object-Oriented Paradigm - ANSWER ✔ It
organizes programs into objects that have properties
(data) and methods (actions). Each object is responsible
for its own behavior.


11. Characteristics of Object-Oriented Paradigm -
ANSWER ✔ Uses classes and objects, supports
encapsulation, inheritance, and polymorphism, focuses
on reusable code and modular design.


12. Examples of Object-Oriented Paradigm - ANSWER
✔ Java, Python, C++, Ruby, C#.


13. Declarative Paradigm - ANSWER ✔ In the
declarative paradigm, you tell the computer what you
want, not how to do it.

, 14. Describe Declarative Paradigm - ANSWER ✔
Instead of giving step-by-step instructions, you declare
facts, rules, or relationships, and the system works out
the logic to reach the answer.


15. Characteristics of Declarative Paradigm - ANSWER
✔ Focuses on what to do, not how to do it, less concern
with control flow (no for-loops or step-by-step logic),
often used in math, databases, and AI.


16. Examples of Declarative Languages - ANSWER ✔
SQL, HTML, Prolog, Haskell (Functional), Lisp
(Functional).


17. Two basic models within Declarative Paradigm -
ANSWER ✔ Functional Model, Logic Model.


18. Describe Functional Model - ANSWER ✔ You build
programs using pure functions — like in math — and
avoid changing data.

Written for

Institution
D684 Introduction to Computer Science
Course
D684 Introduction to Computer Science

Document information

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

Subjects

$14.49
Get access to the full document:

Wrong document? Swap it for free Within 14 days of purchase and before downloading, you can choose a different document. You can simply spend the amount again.
Written by students who passed
Immediately available after payment
Read online or as PDF

Get to know the seller
Seller avatar
TheComputingAcademyQnA

Get to know the seller

Seller avatar
TheComputingAcademyQnA Teachme2-tutor
Follow You need to be logged in order to follow users or courses
Sold
-
Member since
8 months
Number of followers
0
Documents
22
Last sold
-
TheComputingAcademyQnA

Welcome to ComputingAcademy – your trusted hub for Q&A documents, solved past papers, and study guides in Computing and Information Technology. Whether you are preparing for exams, revising difficult concepts, or looking for quick solutions, you will find clear, accurate, and well-structured answers to help you succeed. What you will find here: Detailed Question & Answer documents Exam-focused solutions to boost grades Easy-to-follow explanations in IT, Computer Science, Programming, and Networking Reliable study resources created with students in mind Who this is for: Computing and IT students Exam preparation Quick reference and revision At ComputingAcademy, learning computing is simplified.

Read more Read less
0.0

0 reviews

5
0
4
0
3
0
2
0
1
0

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

Working on your references?

Create accurate citations in APA, MLA and Harvard with our free citation generator.

Working on your references?

Frequently asked questions