Podcast
Questions and Answers
What is a computer program primarily defined as?
What is a computer program primarily defined as?
Which of the following best describes the role of programmers in creating software?
Which of the following best describes the role of programmers in creating software?
Which programming principles are emphasized in the course objectives?
Which programming principles are emphasized in the course objectives?
What percentage does the project contribute to the overall assessment of the course?
What percentage does the project contribute to the overall assessment of the course?
Signup and view all the answers
Which book is NOT listed as a recommended resource for the course?
Which book is NOT listed as a recommended resource for the course?
Signup and view all the answers
What is the threshold needed to pass the final exam?
What is the threshold needed to pass the final exam?
Signup and view all the answers
Which programming topic is NOT explicitly mentioned as part of the course?
Which programming topic is NOT explicitly mentioned as part of the course?
Signup and view all the answers
What aspect of programming does the course focus on as essential 'core' knowledge?
What aspect of programming does the course focus on as essential 'core' knowledge?
Signup and view all the answers
What is the primary purpose of program documentation?
What is the primary purpose of program documentation?
Signup and view all the answers
Which of the following statements about program documentation is false?
Which of the following statements about program documentation is false?
Signup and view all the answers
How does program documentation differ from a user manual?
How does program documentation differ from a user manual?
Signup and view all the answers
Which component is NOT typically included in program documentation?
Which component is NOT typically included in program documentation?
Signup and view all the answers
What type of information might program documentation include regarding a tax program?
What type of information might program documentation include regarding a tax program?
Signup and view all the answers
Why is it important for documentation to include limitations of a program?
Why is it important for documentation to include limitations of a program?
Signup and view all the answers
In which scenario would it be least important to have program documentation?
In which scenario would it be least important to have program documentation?
Signup and view all the answers
Which best describes the audience for program documentation?
Which best describes the audience for program documentation?
Signup and view all the answers
What is the main purpose of header documentation?
What is the main purpose of header documentation?
Signup and view all the answers
What type of documentation is found throughout the code?
What type of documentation is found throughout the code?
Signup and view all the answers
Which of the following is an example of inline documentation?
Which of the following is an example of inline documentation?
Signup and view all the answers
What is a common misconception students have about backing up their work?
What is a common misconception students have about backing up their work?
Signup and view all the answers
What is a runtime error?
What is a runtime error?
Signup and view all the answers
What should a programmer do before implementing a common task in Python?
What should a programmer do before implementing a common task in Python?
Signup and view all the answers
What is one of the primary reasons for storing backup files in a separate location?
What is one of the primary reasons for storing backup files in a separate location?
Signup and view all the answers
Which option is NOT a feature included in the header documentation of a word processor?
Which option is NOT a feature included in the header documentation of a word processor?
Signup and view all the answers
Study Notes
Introduction to Programming
- A computer program is a set of instructions that tells a computer what to do
- Programmers don't use machine language when writing computer programs
Escape Codes
- Escape codes use the backslash character () followed by a specific character to create formatting or special actions within text
-
\a
: Alarm - causes the program to beep -
\n
: Newline - moves the cursor to the beginning of the next line -
\t
: Tab - moves the cursor forward one tab stop -
\'
: Single quote - prints a single quote -
\"
: Double quote - prints a double quote -
\\
: Backslash - prints one backslash
Extra Practice
- Modify examples in the text to use descriptors and escape codes to create valid Python statements
- Try finding simple examples online
- Hand trace the code (execute on paper) without running the program
- Compare the actual and expected results after running the program
- Write a program that right-aligns text into three columns of data
- The program should prompt the user for the maximum width of each column
Program Documentation (Comments)
- Purpose is to provide information about a program to other programmers, rather than user manuals
- Documentation is written inside the program file
- Helps programmers understand different parts of the program, their functions, and any limitations
Types of Documentation
- Header documentation: Explains the program's overall features at the beginning of the file
- Inline documentation: Provides detailed descriptions of specific functionalities within the program
Built-in Python Functions
- These functions are a built-in part of Python, such as
print
andinput
- Check if a function already exists for a common task before implementing it yourself
- Refer to the list of prewritten Python functions at http://docs.python.org/library/functions.html
- Some assignments may have specific instructions on which functions you are allowed to use
Program Errors
- Syntax errors: Errors in the grammar rules of the language
- Runtime errors: Occur when there are no syntax errors, but the program can't complete execution (e.g. divide by zero, user input mismatch)
Backing up Your Work
- Backup regularly after completing significant milestones in your program development
- Store backup files in a separate directory/folder or on a separate device for added safety
- Consider using online methods like email attachments for backups
- Time spent backing up files is insignificant compared to the time needed to re-write code if the original is lost
Course Info
- MSc Advanced Programming
- 6 ECTS
- Lecturers: PhD Edmond Jajaga
- Objectives:
- Demonstrate advanced understanding of Object Oriented Analysis and Design
- Design and implement software using principles like modularity, encapsulation, information hiding, abstraction, and polymorphism
- Cover core application development toolset members with Python as a focus
- Focus on: Network Programming, Internet Client Programming, Concurrent and Parallel Programming, GUI or Web, and Database Programming
Assessment
- Project (3 members): 50% of final grade
- Final Exam: 50% of final grade (40p/100p threshold)
- Conference paper presentation: 10% of final grade
Lecturer's Info
- Edmond Jajaga: PhD in CS, Software Engineer, with experience in various companies
- Public Profiles: Google Scholar, Research Gate, and LinkedIn
Course Resources
- Online Resources: Moodle
- Recommended Books:
- “Python: Visual QuickStart guide” (3rd Ed), Toby Donaldson
- “Python crash course”, Eric Matthes
- “Core PYTHON Applications Programming” Third Edition, Wesley J. Chun
- “Design Patterns: Elements of Reusable Object-Oriented Software”, Erich Gamma, Richard Helm, Ralph Johnson, and John Vlissides
How To Use The Course Resources
- Use resources as support and supplement for the class
- Class attendance is still essential, resources aren't meant as a substitute
Feedback
- Let the lecturer know if the pace of the course is too slow or fast
- If you have trouble reading slides or handwriting, or hearing the lecturer in class
Studying That Suits You
Use AI to generate personalized quizzes and flashcards to suit your learning preferences.
Description
This quiz focuses on the basics of programming and the use of escape codes. Learn how to format text and implement special actions with specific characters in your code. Test your understanding of these concepts through practical examples and exercises.