100% satisfaction guarantee Immediately available after payment Both online and in PDF No strings attached
logo-home
CSE 2050_ Week 1 Questions with 100% Actual correct answers | verified | latest update | Graded A+ | Already Passed | Complete Solution $7.99   Add to cart

Exam (elaborations)

CSE 2050_ Week 1 Questions with 100% Actual correct answers | verified | latest update | Graded A+ | Already Passed | Complete Solution

 5 views  0 purchase
  • Course
  • Institution

CSE 2050_ Week 1 Questions with 100% Actual correct answers | verified | latest update | Graded A+ | Already Passed | Complete Solution

Preview 2 out of 6  pages

  • June 24, 2024
  • 6
  • 2023/2024
  • Exam (elaborations)
  • Questions & answers
avatar-seller
CSE 2050: Week 1
File path - ANS-The location of a file in a file system. Looks something like a\b\c\d
where a contains b contains c contains d, and where are currently at directory/file d

File - ANS-A document that is stored on your computer; the file extension (.py, .exe,
.jpeg) tells you the format and tells your computer how to interpret the data

Directory - ANS-a folder that contains other directories and files

Hierarchical File System - ANS-(HFS).A system in which data is stored hierarchically in
directories and subdirectories (as in MiDOS), or folders within folders (as in Macintosh).
Most operating systems have hierarchical file systems.

Root Directory - ANS-the top of the hierarchical file system

Subdirectory - ANS-Aka child directory, a directory/folder contained in another directory
or folder

Parent Directory - ANS-The directory that contains your current file / directory; is 1 level
closer to the root directory

Terminal - ANS-A text based interface to the computer; used to navigate file systems,
communicate with the Operating System, run programs

Integrated Development Environment (IDE) - ANS-Provides a developer with a way to
create a program, run the program, and debug the program all within one application; in
CSE 2050, we mainly use VS Code

VS Code - ANS-a free, open-source IDE created by Microsoft; installed on lab
computers for this class; Visual Studio is a bulkier version of VS Code with more
functionality, but in this class we will be using VS Code

Gradescope - ANS-Website where homework, lab, and exam code will be submitted;
the auto-grader is responsible for your lab, but exams and homeworks will be partially or
fully manually graded by TAs and Professors

Function Definition - ANS-statement that creates a new function, specifying its name,
parameters, and the statements it executes. ex:

, def my_func(param1, param2):#this line is the function definition
""" Docstring goes here, my_func does XXX, params do XXX"""
#Body of the function goes here
return returnVal # this terminates the function
NOTE: Python uses indentation to determine scope, no curly braces!

Default parameters - ANS-allows some parameters to be optional, but must go last in
the parameter list; If the caller does pass an argument, the parameter takes the value
passed in by the caller (the normal way functions work); If the caller chooses not to fill
that argument slot, the parameter takes its default value

def say_hello(name="world"): # defualt val is "world"
def add(num1, num2, num3 = 0, num4=0): #can add 2 to 4 nums

Formatted string - ANS-Aka f-string, a template which allows to insert variable values
into a string; uses curly braces to insert var names; ex:
name = 'Alice'
num_days = 10
print(f"{name} has been in Wonderland for {num_days} days.")
# will print "Alice has been in Wonderland for 10 days."

Docstring - ANS-A special comment located at the beginning of a function or program
whose goal is to explain the code, its inputs and outputs; enclosed in triple quotes ''' like
this ''' or """ like that """

How to Save Code - ANS-Ctrl+S on windows, Cmd+S on MacOS; Used to save your
code to the most recent version; your code may not work as expected if you do not save
it! Worst case scenario you lose your progress

LeetCode - ANS-Website for coding interview preparation; most technical coding
interviews will take problems from the repository on this website or make slight
modifications; Most of the topics in LeetCode will be introduced in CSE 2050; practicing
your skills here is a great way to help with the course and your career

Atomic Type - ANS-fundamental datatypes in Python that cannot be broken down into
smaller types; Python has bool, int, float

bool - ANS-variable that can either be True or False; True == 1 whereas False == 0

int - ANS-integer (whole number) data type in Python

The benefits of buying summaries with Stuvia:

Guaranteed quality through customer reviews

Guaranteed quality through customer reviews

Stuvia customers have reviewed more than 700,000 summaries. This how you know that you are buying the best documents.

Quick and easy check-out

Quick and easy check-out

You can quickly pay through credit card or Stuvia-credit for the summaries. There is no membership needed.

Focus on what matters

Focus on what matters

Your fellow students write the study notes themselves, which is why the documents are always reliable and up-to-date. This ensures you quickly get to the core!

Frequently asked questions

What do I get when I buy this document?

You get a PDF, available immediately after your purchase. The purchased document is accessible anytime, anywhere and indefinitely through your profile.

Satisfaction guarantee: how does it work?

Our satisfaction guarantee ensures that you always find a study document that suits you well. You fill out a form, and our customer service team takes care of the rest.

Who am I buying these notes from?

Stuvia is a marketplace, so you are not buying this document from us, but from seller Hkane. Stuvia facilitates payment to the seller.

Will I be stuck with a subscription?

No, you only buy these notes for $7.99. You're not tied to anything after your purchase.

Can Stuvia be trusted?

4.6 stars on Google & Trustpilot (+1000 reviews)

79223 documents were sold in the last 30 days

Founded in 2010, the go-to place to buy study notes for 14 years now

Start selling

Recently viewed by you


$7.99
  • (0)
  Add to cart