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)

CSE 2050 Final Exam Questions with Correct Answers Graded A+

Rating
-
Sold
-
Pages
4
Grade
A+
Uploaded on
21-12-2024
Written in
2024/2025

CSE 2050 Final Exam Questions with Correct Answers Graded A+ Type operation - Answers returns the type of the expression Casting - Answers changing the type of a value Boolean expression - Answers evaluates to one of two states true or false Mutable - Answers liable to change Slicing - Answers Pulls out a part of a list or a string Tuple - Answers a sequence of immutable Python objects (like a list) Overloaded Operator - Answers Operator with multiple definitions local variable - Answers variable within a function Method - Answers looks like a function call, except that they have a variable and a dot stuck in front of them dictionary - Answers datatype consisting of a collection of pairs (key, value) Class implementation - Answers class #NAME#: __init__(self, args): - Answers special method in class function: performs operations to be used when initializing a new member of the class, no return value __str__(self): - Answers special method in class: returns a string to be used when printing a member of the class global namespace - Answers The set of names that is defined in the session Syntax errors - Answers issues with code that can be identified right away, without having to run it. Execution errors - Answers problems that occur during execution iterator - Answers a special type of object that helps the user iterate through a collection, without having to know how the collection is implemented __next__() - Answers class method that advances the iterator to the next location, and returns value at current one Time complexity - Answers how long does the program take/how fast is our code Big-O Notaton - Answers the way to write down time complexity Linked List - Answers an ordered set of data elements, each containing a link to its successor Stack - Answers like a pile of books or a stack of dishes at a buffet. Can only add new items to the top (head) of the stack, and remove from the top(head) too. Push - Answers the operation of adding an item to a stack Pop - Answers the operation of removing an item from a stack. Queue - Answers like a line of people at a bank or the queue of requests to the printer. Can only add new items at the end (tail) of the queue, and remove at the front (head). Enqueue - Answers the operation of adding an item to a queue. Dequeue the operation of removing an item from a queue Infix format - Answers operator are written between operands Postfix format - Answers operators are written after operands Doubly Linked List - Answers an ordered set of data elements, each containing a link to its successor and its predecessor Function of O(1) time complexity - Answers runs the same no matter how many iterations it goes through Quadratic Sorting Algorithms - Answers Time complexity of O(n^2) (Ex. Bubble Sort, Selection and Insertion Sort) Bubble Sort - Answers simplest sorting algorithm that works by repeatedly swapping the adjacent elements if they are in wrong order. O(n^2) Selection Sort - Answers sorts an array by repeatedly finding the minimum element (considering ascending order) from unsorted part and putting it at the beginning. O(n^2) Insertion Sort - Answers simple sorting algorithm that builds the final sorted array (or list) one item at a time O(n^2) Recursion - Answers the repeated application of a recursive procedure or definition Tree traversal - Answers going through all the nodes in a tree Merge Sort - Answers a Divide and Conquer algorithm. It divides input array in two halves, calls itself for the two halves and then merges the two sorted halves. O(n log n) QuickSort - Answers a Divide and Conquer algorithm. It picks an element as pivot and partitions the given array around the picked pivot O(n log n) Node - Answers devices or data points on a larger network

Show more Read less
Institution
CSE 2050
Course
CSE 2050

Content preview

CSE 2050 Final Exam Questions with Correct Answers Graded A+

Type operation - Answers returns the type of the expression

Casting - Answers changing the type of a value

Boolean expression - Answers evaluates to one of two states true or false

Mutable - Answers liable to change

Slicing - Answers Pulls out a part of a list or a string

Tuple - Answers a sequence of immutable Python objects (like a list)

Overloaded Operator - Answers Operator with multiple definitions

local variable - Answers variable within a function

Method - Answers looks like a function call, except that they have a variable and a dot stuck in front of
them

dictionary - Answers datatype consisting of a collection of pairs (key, value)

Class implementation - Answers class #NAME#:

__init__(self, args): - Answers special method in class function: performs operations to be used when
initializing a new member of the class, no return value

__str__(self): - Answers special method in class: returns a string to be used when printing a member of
the class

global namespace - Answers The set of names that is defined in the session

Syntax errors - Answers issues with code that can be identified right away, without having to run it.

Execution errors - Answers problems that occur during execution

iterator - Answers a special type of object that helps the user iterate through a collection, without
having to know how the collection is implemented

__next__() - Answers class method that advances the iterator to the next location, and returns value at
current one

Time complexity - Answers how long does the program take/how fast is our code

Big-O Notaton - Answers the way to write down time complexity

Linked List - Answers an ordered set of data elements, each containing a link to its successor

Written for

Institution
CSE 2050
Course
CSE 2050

Document information

Uploaded on
December 21, 2024
Number of pages
4
Written in
2024/2025
Type
Exam (elaborations)
Contains
Questions & answers

Subjects

$8.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
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.
TutorJosh Chamberlain College Of Nursing
Follow You need to be logged in order to follow users or courses
Sold
457
Member since
1 year
Number of followers
16
Documents
32174
Last sold
4 hours ago
Tutor Joshua

Here You will find all Documents and Package Deals Offered By Tutor Joshua.

3.4

74 reviews

5
26
4
16
3
14
2
1
1
17

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