Practice Quiz: Slow Code Post author:Devendra Kumar Post published: Post comments:0 Comments 6. Which of the following is NOT considered an expensive operation? Answers Parsing a fileDownloading data over the networkGoing through a listUsing a dictionary 7. Which of the following may be the most expensive to carry out in most automation tasks in a script? Answers LoopsListsVectorHash 8. Which of the following statements represents the most sound advice when writing scripts? Answers Aim for every speed advantage you can get in your codeUse expensive operations oftenStart by writing clear code, then speed it up only if necessaryUse loops as often as possible 9. In Python, what is a data structure that stores multiple pieces of data, in order, which can be changed later? Answers A hashDictionariesListsTuples 10. What command, keyword, module, or tool can be used to measure the amount of time it takes for an operation or program to execute? (Check all that apply) Answers timekcachegrindcProfilebreak Previous Next Please Share This Share this content Opens in a new window Opens in a new window Opens in a new window Opens in a new window Opens in a new window Opens in a new window Opens in a new window Opens in a new window Opens in a new window Opens in a new window Opens in a new window Devendra Kumar Project Management Apprentice at Google You Might Also Like Practice Quiz: Updating Deployments Week 1 – The Fundamentals Of Agile – Shuffle Q/A 1 Leave a Reply Cancel replyCommentEnter your name or username to comment Enter your email address to comment Enter your website URL (optional) Save my name, email, and website in this browser for the next time I comment.