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)

D278 PRE-ASSESSMENT SCRIPTING AND PROGRAMMING COMPREHENSIVE EXAM 2026 QUESTIONS WITH SOLUTIONS GRADED A+

Rating
-
Sold
-
Pages
17
Grade
A+
Uploaded on
14-02-2026
Written in
2025/2026

D278 PRE-ASSESSMENT SCRIPTING AND PROGRAMMING COMPREHENSIVE EXAM 2026 QUESTIONS WITH SOLUTIONS GRADED A+

Institution
D278
Course
D278

Content preview

D278 PRE-ASSESSMENT SCRIPTING AND
PROGRAMMING COMPREHENSIVE EXAM 2026
QUESTIONS WITH SOLUTIONS GRADED A+


◉ A program determines if a user's age is high enough to run for U.S.
president. The minimum age requirement is 35.


How should the item that holds the minimum age be declared?
A Constant integer minAge
B Variable integer minAge
C Constant integer 35
D Variable integer 35. Answer: Constant integer minAge


◉ What kind of operator is the == in the expression i == 20?
A Assignment
B Arithmetic
C Equality
D Logical. Answer: Equality


◉ What is the purpose of parentheses () in a programming expression?
A To print expressions

,B To group expressions
C To run expressions
D To compose expressions. Answer: To group expressions


◉ Which data type is used for items that are measured in length?
A Integer
B Float
C String
D Boolean. Answer: B


◉ Which data type should be used to keep track of how many planes are
in a hangar?
A Integer
B Float
C String
D Boolean. Answer: A


◉ A function should convert hours and minutes to seconds, such as
converting 1 hour and 10 minutes to 4,200 seconds.


What should be the input to the function?
A Hours only

, B Minutes only
C Hours and minutes
D Hours, minutes, and seconds. Answer: C


◉ What is a valid user-defined function name?
A A reserved word
B Any valid identifier
C Any variable name
D A floating-point number. Answer: B


◉ What is the loop variable initialization in the following pseudocode?


y=0
s = 100.0
while y < 10
s = s + (s * 5.0)
y=y+1


Ay=0
By=y+1
C s = 100.0
D s = s + ( s * 5.0). Answer: A

Written for

Institution
D278
Course
D278

Document information

Uploaded on
February 14, 2026
Number of pages
17
Written in
2025/2026
Type
Exam (elaborations)
Contains
Questions & answers

Subjects

$12.99
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
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.
FocusFile7 Harvard University
Follow You need to be logged in order to follow users or courses
Sold
147
Member since
10 months
Number of followers
4
Documents
39899
Last sold
2 days ago
FocusFile7

Welcome to FocusFile, your inspiring hub for academic excellence! Just like your favorite café where every sip brings comfort, FocusFile is designed to be your go to space for clear thinking, deep focus, and study success. Here at FocusFile, I believe learning isn’t just about cramming it’s about clarity, growth, and building the confidence to conquer any challenge. That’s why you’ll find a handpicked collection of top notch, easy to digest study materials, smart summaries, and guides tailored to a wide range of subjects and learning styles. Whether you're gearing up for exams, brushing up on class notes, or just need that extra push, FocusFile has you covered. From quick-reference sheets to deep-dive notes, there’s something here for every learner whether you're a visual thinker, a bullet-point lover, or someone who thrives on quick, impactful insights. Think of FocusFile as your academic sanctuary, a place where productivity meets peace of mind. So grab your favorite drink, settle in, and let’s sharpen your focus and fuel your success, one file at a time. Thanks for making FocusFile your study partner. Let’s unlock your full potential together!

Read more Read less
3.8

18 reviews

5
6
4
4
3
7
2
0
1
1

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