Docsity

CS 6601 ASSIGNMENT 6 COMPLETE STUDY GUIDE WITH SOLVED QUESTIONS, Exams of Java Programming

Toggle sidebar
bg1
CS 6601 ASSIGNMENT 6 COMPLETE STUDY
GUIDE WITH SOLVED QUESTIONS
โ—‰ steps of programming.
Answer: design, implement, test
โ—‰ Von Neumann Architecture.
Answer:
โ—‰ module.
Answer: set of python commands we can use immediatly
โ—‰ statement.
Answer: performs a task, but does not return a value
โ—‰ expression.
Answer: performs a task AND outputs a value
โ—‰ comment.
Answer: clarifies the intent of the code and is ignored by Python
when the program is run
pf3
pf4
pf5

Partial preview of the text

Download CS 6601 ASSIGNMENT 6 COMPLETE STUDY GUIDE WITH SOLVED QUESTIONS and more Exams Java Programming in PDF only on Docsity!

CS 6601 ASSIGNMENT 6 COMPLETE STUDY

GUIDE WITH SOLVED QUESTIONS

โ—‰ steps of programming. Answer: design, implement, test โ—‰ Von Neumann Architecture. Answer: โ—‰ module. Answer: set of python commands we can use immediatly โ—‰ statement. Answer: performs a task, but does not return a value โ—‰ expression. Answer: performs a task AND outputs a value โ—‰ comment. Answer: clarifies the intent of the code and is ignored by Python when the program is run

Answer: finds the remainder of two divided numbers โ—‰ **. Answer: raises one number to the other โ—‰ //. Answer: divides two numbers without giving remainders โ—‰ problems solved by version control. Answer: (1) nothing gets lost, (2) multiple people can collaborate, (3) it is convenient, (4) you can correct mistakes โ—‰ commit. Answer: saves a file to the computer hard drive โ—‰ push. Answer: sends a file to the server (i.e. Github) โ—‰ pull.

โ—‰ function to get rid of spaces around string. Answer: variable.strip() โ—‰ function to make sure user entered a number. Answer: variable.isdigit() โ—‰ function. Answer: set of commands to complete a single task โ—‰ argument. Answer: value passed to a function โ—‰ parameter. Answer: variable that stores the argument โ—‰ why we use functions. Answer: 1. divide and conquer problem solving

  1. abstraction (doesn't matter how it works)
  2. reusable
  3. shareable
  4. more secure
  5. simplifies code

โ—‰ rule #1: do what before you program?. Answer: Think โ—‰ rule #2: a program is a.... Answer: human-readable essay that runs on a computer โ—‰ rule #3: the best way to get better at programming is to.... Answer: practice โ—‰ rule #4: be ___________ with your code. Answer: consistant โ—‰ rule #5: what should you do with your code?. Answer: test it, thoroughly and often โ—‰ rule #6: if your code was hard to write, it will be .... Answer: hard to read โ—‰ rule #8: a function.... Answer: does one thing