Questions and Answers
What is one of the main objectives of the Programming 1 course?
Which of the following is NOT part of the course outlines?
What percentage of the total marks is allocated to the final exam?
Which data type would typically be used to represent a whole number in Java?
Signup and view all the answers
In which chapter would you learn about control statements?
Signup and view all the answers
Which of the following is a recommended reading for the course?
Signup and view all the answers
How many quizzes are mentioned in the assessment mark distribution?
Signup and view all the answers
What will students learn to do with errors in Java?
Signup and view all the answers
Which chapter focuses on methods and functions in Java?
Signup and view all the answers
What is the total mark distribution for Lab attendance and exercises?
Signup and view all the answers
Study Notes
Programming Languages
- Programming languages are classified into three main types: Machine Language, Assembly Language, and High-Level Language.
- Machine Language: Comprised of binary code, native to computers; tedious to write and difficult to read or modify.
-
Assembly Language: Converts human-readable instructions into machine code through an assembler. Example instruction:
ADD R1, R2, R3
. -
High-Level Languages: Resemble human languages, making them easier to read and write. Example statement in high-level language:
area = 5 * 5 * 3.1415;
.
Popular High-Level Languages
- COBOL: COmmon Business Oriented Language.
- FORTRAN: FORmula TRANslation.
- BASIC: Beginner All-purpose Symbolic Instructional Code.
- Pascal: Named after mathematician Blaise Pascal.
- Ada: Named after mathematician Ada Lovelace.
- C: Developed from the earlier language B.
- C++: Object-oriented language designed from C.
- C#: Java-like language developed by Microsoft.
- Java: A widely-used high-level programming language.
Compilers
- A compiler translates high-level language (source code) into machine or low-level language (target code).
- An important function of a compiler is to identify and report errors in the source code.
Definition of Programming
- Programming is a structured plan aimed at achieving a clear objective, detailing tasks, responsibilities, timelines, and resources.
Computer Programs
- Computer programs (software) instruct computers on operations to perform. Without these, computers remain non-functional.
- Programs must be written using programming languages, as computers do not understand human languages; examples include Calculator and BMI programs.
Course Information
- Instructor: Dr. Peer Fatima, Assistant Professor at the Department of Computer Science at Yanbu.
- Course: Programming 1.
- Resources provided via BLACKBOARD, including lecture notes, practical specifications, and marking results.
Course Objectives
- Understand key concepts of programming languages.
- Develop and write programs using Java.
- Solve problems algorithmically.
- Use primitive data types, control statements, loops, and arrays in programming.
- Trace and correct Java errors.
Assessment Breakdown
- Lab attendance and exercises: 10 marks.
- Quizzes (1 and 2): 10 marks.
- Midterm: 30 marks.
- Lab Exam: 10 marks.
- Final Exam: Written (30 marks) and lab (10 marks).
- Total possible marks: 100.
Course Outline
- Chapter 0: Overview
- Chapter 1: Flowchart
- Chapter 2: Introduction to Computer Programming
- Chapter 3: Variables and Data Types
- Chapter 4: Operators
- Chapter 5: Condition Statements
- Chapter 6: Loops
- Chapter 7: Arrays
- Chapter 8: Methods/Functions
Studying That Suits You
Use AI to generate personalized quizzes and flashcards to suit your learning preferences.
Description
Explore the classification of programming languages into Machine, Assembly, and High-Level languages. Learn about popular high-level languages such as COBOL, FORTRAN, and Java, and their distinct characteristics. Test your knowledge on language differences and applications in this engaging quiz.