Study guides, Class notes & Summaries

Looking for the best study guides, study notes and summaries about ? On this page you'll find 202 study documents about .

Page 4 out of 202 results

Sort by

Python exam review questions and answers 2024
  • Python exam review questions and answers 2024

  • Exam (elaborations) • 13 pages • 2024
  • how do we add a list to a list? - list[2] = [1, 2, 3] how do we ad elements of a list to a list? - list[2:2] = [1,2,3] how do we delete elements from a list? - del list[1] what's another way of deleting elements from a list, besides del? - list[1] = [] what does 3 * [0] return? - [0,0,0] if you really want to copy a list, what can you do? - list2 = list1[:] difference between append and extend? - append adds whole argument as single element, while extend adds each item of argument as el...
    (0)
  • $10.49
  • + learn more
Python Exam Questions, PART 1 : 65 Questions  with Complete Solutions 2024
  • Python Exam Questions, PART 1 : 65 Questions with Complete Solutions 2024

  • Exam (elaborations) • 5 pages • 2024
  • 1. Which of the following data types are supported in Python? - The following data type are *Supported*: 1 - Numbers 2 - String 3 - List 4 - Tuples 5 - Dictionary 2. Which of the following data types are *not* supported in Python? - Slice 3. What is the output of print(str) if str = 'Hello World!'? - Hello World! 4. What is the output of print(str[0]) if str = 'Hello World!'? - H 5. What is the output of print(str[2:5]) if str = 'Hello World!'? - llo 6. What is the output of p...
    (0)
  • $7.99
  • + learn more
Python Exam one Quick Questions with Complete  solutions
  • Python Exam one Quick Questions with Complete solutions

  • Exam (elaborations) • 22 pages • 2024
  • What is the output of: 11.0//2 - 5.0 Floor division to the nearest whole number Returns a float What is the output of: 11//2 - 5 Return an int What is the output of: 11/2 - 5.5 Returns a float What is the output of: 11/2.0 - 5.0 What is the output of: 20%2 - 0 What is the output of: 21%2 - 1 What is the output of: 11%3 - 2 x = 'Texas A&M University' x [-3] = ? - i x = 'Texas A&M University' x [3] = ? - a x = 'Texas A&M University' len(x) = ? - 20 x = 'Texas A&M Unive...
    (0)
  • $12.99
  • + learn more
Python Exam functions Questions with complete  Solutions
  • Python Exam functions Questions with complete Solutions

  • Exam (elaborations) • 3 pages • 2024
  • Functions - ## A function is a sequence of instructions with a name. ## When a function is called, the instructions are executed. ## When the execution of the instructions is complete, the function may return a value to the calling program. Function round - price = round(6.8275, 2) ## The function round is called with arguments 6.8275 ## and 2. ## round returns the number 6.83, which becomes the ## value of price. ## The computations within round are hidden from the ## calling program...
    (0)
  • $5.49
  • + learn more
Python Exam Chapters 1-5 Questions with Answers  merged
  • Python Exam Chapters 1-5 Questions with Answers merged

  • Exam (elaborations) • 13 pages • 2024
  • Which of the following are operators, and which are values? * 'hello' -88.8 - / + 5 - The operators are +,-,*,and /. The values are 'hello' ,-88.8, and 5. Which of the following is a variable , and which is a string ? spam 'spam' - The variable is spam; the string is 'spam'. Strings always start and end with quotes. Name three data types. - The three data types are integers, floating point numbers, and strings. What is an expression made up of ? What do all expressions do ? -...
    (0)
  • $11.49
  • + learn more
Python Exam Challenge Questions with merged  Solution 2024
  • Python Exam Challenge Questions with merged Solution 2024

  • Exam (elaborations) • 6 pages • 2024
  • 1. Which of the following is correct about Python? a. Python is a high-level, interpreted, interactive and object-oriented scripting language. b. Python is designed to be highly readable. c. It uses English keywords frequently where as other languages use punctuation, and it has fewer syntactical constructions than other languages. d. All of the above - d. All of the above. 2. Is Python case sensitive when dealing with identifiers? a. yes b. no c. it depends on context d. it depends...
    (0)
  • $7.99
  • + learn more
Python Exam 3 Review Questions and Answers
  • Python Exam 3 Review Questions and Answers

  • Exam (elaborations) • 4 pages • 2024
  • This term refers to an individual item in a list - Element This is a number that identifies an item in a list - index This is the first index in a list - 0 This is the last index in a list - The size of the list minus one This will happen if you try to use an index that is out of range for a list - an IndexError will occur This function returns the length of a list - len When the * operator's left operand is a list and its right oberand is an integer, the operator becoms this - the repet...
    (0)
  • $7.99
  • + learn more
Python Exam 2 Study Questions with Complete  solutions for new updates
  • Python Exam 2 Study Questions with Complete solutions for new updates

  • Exam (elaborations) • 6 pages • 2024
  • Functions - group of statements that exist within a program for the purpose of performing a specific task Divide and conquer - Instead of writing 1 large program, break it down into individual tasks. individuals or teams can works independently on separate tasks. Advantages of divide and conquer - Simpler for programmers code reuse better testing faster development void function - executes statements, nothing is put into it by the program, and it sends nothing back to the main pro...
    (0)
  • $7.99
  • + learn more
Python Exam 2 Revision Questions and Answers  2024
  • Python Exam 2 Revision Questions and Answers 2024

  • Exam (elaborations) • 11 pages • 2024
  • If a file with the specified name already exists when the file is opened and the file is opened in 'w' mode, then an alert will appear on the screen. - False When a piece of data is read from a file, it is copied from the file into the program - false closing a file disconnects the communication between the file and the program - true In python, there is nothing that can be donee if the program tries to access a file to read that does not exist - false Python allows the programmer...
    (0)
  • $10.49
  • + learn more
Python Exam 2 Challenge Questions and Answers
  • Python Exam 2 Challenge Questions and Answers

  • Exam (elaborations) • 20 pages • 2024
  • Which of the following is the correct extension of the Python file? .py Does python code need to be compiled or interpreted? Python code is both compiled and interpreted Which of the following is used to define a block of code in Python language? Indentation Which keyword is used for function in Python language? def Which of the following functions is a built-in function in python? print() Which of the following is not python's built-in function re() Which of the following is not a ...
    (0)
  • $7.99
  • + learn more