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)

Computer Methods in Chemical Engineering 2nd Edition

Rating
-
Sold
-
Pages
7
Grade
A+
Uploaded on
06-09-2024
Written in
2024/2025

Computer Methods in Chemical Engineering 2nd Edition

Institution
Course

Content preview

Computer Methods in Chemical Engineering 2nd
Edition SOLUTION MANUAL by Nayef Ghasem


What is a "program"? - ANSWER: A set of instructions, typically written by a human,
that are to be executed by a computer.

What is an "IDE"? - ANSWER: An integrated development environment (IDE) is an
application that helps facilitate the editing , building, and debugging of software.

What is "quality assurance"? - ANSWER: Checking that software does what its
specifications indicate it is supposed to do.

What is a "software bug"? - ANSWER: An error (or flaw/failure) in software code that
causes an incorrect or unintended result.

What is "TDD"? - ANSWER: (Test-Driven Development) Write the test first, then
code.

What is a "package"? - ANSWER: It is a set of classes and functions that extend the
standard Python library of types and functions.

What is "pseudocode", why can it be helpful? - ANSWER: A notation resembling a
simplified programming language, used in program design. It helps by getting all the
ideas on paper to then build the actual code.

What is a "module", why can it be helpful? - ANSWER: A file that defines a collection
of useful functions and variables that, have a common theme/purpose. It can be use
to call multiple functions from different modules.

What is a "statement" in a program? - ANSWER: Commands in a program that a
computer understands.

What is an "expression"? - ANSWER: An expression is built out of operands and
operators.

What are the rules for a valid variable name? - ANSWER: Variable names can use
letters, numbers, and underscores

must begin with a letter or underscore

no dashes or other punctuation

, Python is case sensitive: x is different from X

True or False:
q == Q - ANSWER: False

Explain how x = x**2 is a valid expression for any value of x - ANSWER: The right
hand side is executing the value of x^2 and its assigning it to a x. Therefore x is now
being assign its previous value but to the second power.

What is an "operand"? - ANSWER: Operands are usually types, which are a set of
values and operations on those values.

operands: -2, 3.14159, "hi!"

Give examples of three "types" and describe each of them in a few words. -
ANSWER: int - is a type for integers

float - is a type for numbers with decimals

string - is a type for words or statements

Give an example of unary operator and in a few words explain what it does. -
ANSWER: not - is a unary operator that only acts on one operand (bool types)

Give an example of a binary operator and in a few words explain what it does. -
ANSWER: and - is a binary operator because it combines two bools into one.

What does the // operator do? - ANSWER: // - it is used for floor division. It rounds
the result of a division down to an integer.

What does -8//3 calculate to? - ANSWER: -8/3 = -2.66667

-8//3 = -3

What does 8%-3 calculate to? - ANSWER: 8/-3 = 2 remainder -1

8%-3 = -1

What is a "relational operator" (include an example)? - ANSWER: Relational
operators compares types by creating boolean values.

An example is ==.
The == operator checks for equality and outputs a boolean value of True or False.

What is the order of precedence (in decreasing order) of the boolean operators and,
not & or? - ANSWER: The boolean operators have the following precedence:

Connected book

Written for

Course

Document information

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

Subjects

$18.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
kushboopatel6867
5.0
(1)

Get to know the seller

Seller avatar
kushboopatel6867 Chamberlain College Nursing
Follow You need to be logged in order to follow users or courses
Sold
3
Member since
1 year
Number of followers
0
Documents
1282
Last sold
7 months ago
EXCELLENT HOMEWORK HELP AND TUTORING ,

EXCELLENT HOMEWORK HELP AND TUTORING ,ALL KIND OF QUIZ AND EXAMS WITH GUARANTEE OF A EXCELLENT HOMEWORK HELP AND TUTORING ,ALL KIND OF QUIZ AND EXAMS WITH GUARANTEE OF A Am an expert on major courses especially; psychology,Nursing, Human resource Management and Mathemtics Assisting students with quality work is my first priority. I ensure scholarly standards in my documents and that's why i'm one of the BEST GOLD RATED TUTORS in STUVIA. I assure a GOOD GRADE if you will use my work.

Read more Read less
5.0

1 reviews

5
1
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