Python and Pandas for Data Engineering Week4

docx

School

Grand Rapids Community College *

*We aren’t endorsed by this school

Course

247

Subject

Computer Science

Date

Dec 6, 2023

Type

docx

Pages

4

Uploaded by ConstableWildcatMaster401

Report
Congratulations! You passed! Grade received 93.33% Latest Submission Grade 93.33% To pass 80% or higher Go to next item 1. Question 1 What type of software is VIM? 1 / 1 point A text editor A word processor An out-of-the-box IDE An distributed version control system Correct Yes, VIM is a text editor 2. Question 2 When using the 'step into' command of a debugger, what is the behaviour when the current code calls a funtion? 1 / 1 point Step into the code of the function, and step out again once the function is returned. Display the return value of the function and continue in the current code. Continue the normal execution of the code. Cease the debugging process. Correct Yes, this is what 'step into' does. 3. Question 3 After searching for a term in VIM, which key will take you to the next match? 1 / 1 point ? / : n Correct Yes, this will move the cursor to the next matching term. 4. Question 4 What is the .vimrc file used for? 1 / 1 point Setting up debugging settings in Visual Studio Code. Storing VIM configurations Telling Git which files to ignore. Correct Yes, the .vimrc is read everytime an instance of VIM is opened. 5. Question 5 Which language does Visual Studio Code have built-in support? 0 / 1 point Python Java
JavaScript C++ Incorrect No, but there are Python plugins. 6. Question 6 Which of these situations does a version control system support? 1 / 1 point Multiple contributors working on the same code base. Correct Yes, this is a feature of version control. Allow access to previous versions of a codebase. Correct Yes, with Version Control systems, you can move back in a codebases history. Highlight code syntax to make it easier to read. Handle Big Data Transformations. 7. Question 7 Which Git command is used to apply the commits from one branch to another? 1 / 1 point checkout stash diff merge Correct Yes, merge is used to bring the commits from one branch to another 8. Question 8 Which method is used to return a value from a dictionary? 1 / 1 point get() loc[] pop() set() Correct Yes, get() will not error even if the key is missing 9. Question 9 What key is used to switch to the Normal mode in VIM? 1 / 1 point x : w Esc Correct Yes, Esc will switch from any mode to Normal mode. 10. Question 10 The pip command is used to: 1 / 1 point Create a Python virtual environment. Open a text editor
Manage Python package installation Setup a project for version control. Correct Yes, pip is used to install, update, and uninstall Python packages. 11. Question 11 Virtual environments allow you to: 1 / 1 point Delay calculating the results of data transformations to improve performance. Have multiple per-project Python package installations on the same machine Share code across virtual machines. Distribute calculations across multiple machines. Correct Yes, each virtual environment will have it's own installations. 12. Question 12 Which statement will allow you to use the Pandas module with the name 'pd' in your code? 1 / 1 point `import pd from pandas` `pd == pandas` `import pandas as pd` `from pandas import *` Correct Yes, this will import pandas aliased as 'pd' 13. Question 13 A break statement is used to 1 / 1 point Exit a loop End a funtion Delete a dictionary key-value pair Pause execution Correct Yes, break will cause the current loop to end. 14. Question 14 Yield statements are used to: 1 / 1 point Return a value from a function Return a value from a generator. Skip one iteration of a loop. Serve as a non-operational place holder for stubbing out functions and classes. Correct Yes, a yield statement returns a value while retaining the generators state. 15. Question 15 What does the Pandas DataFrame describe method return? 1 / 1 point The data type of the DataFrame The number of dimensions of the DataFrame The shape of the DataFrame Descriptive statistics
Your preview ends here
Eager to read complete document? Join bartleby learn and gain access to the full version
  • Access to all documents
  • Unlimited textbook solutions
  • 24/7 expert homework help
Correct Yes, that's right!