
Skill Courses – Upsell
Part 1: Data Representation & Logic (25 points)
- Binary & Hexadecimal Conversion:
- Convert the decimal number 187 to its 8-bit binary equivalent and then to its hexadecimal equivalent. Show your work.
- Convert the binary number
11010110to its decimal equivalent. - Convert the hexadecimal number
5Fto its decimal and 8-bit binary equivalent.
- Two’s Complement:
- Represent the decimal number -45 using 8-bit two’s complement.
- What decimal number is represented by the 8-bit two’s complement binary
10101011?
- Boolean Logic:
- Construct a truth table for the Boolean expression:
(A AND B) OR (NOT C). - Simplify the following Boolean expression using Boolean algebra laws:
A OR (A AND B). Justify each step.
- Construct a truth table for the Boolean expression:
Part 2: Algorithmic Thinking (30 points)
- Pseudocode for a Simple Algorithm:
- Write pseudocode for an algorithm that takes a list of integers as input and returns the largest odd number in the list. If there are no odd numbers, the algorithm should return -1.
- Flowchart Design:
- Draw a flowchart that illustrates the process of determining if a given year is a leap year. (A leap year occurs every four years, except for years divisible by 100 but not by 400).
- Draw a flowchart that illustrates the process of determining if a given year is a leap year. (A leap year occurs every four years, except for years divisible by 100 but not by 400).
- Algorithm Analysis (Conceptual):
- Consider an algorithm that searches for a specific item in an unsorted list. Briefly explain, in your own words, why a sequential search (checking each item one by one) is necessary for an unsorted list, and why a binary search would not be efficient or applicable in this scenario.
Part 3: Introduction to Programming Concepts (45 points)
- Variable Scope & Data Types (Conceptual):
- Explain the difference between a “local” and a “global” variable in programming. Provide a simple (imaginary) code snippet or scenario where each would be appropriately used.
- Identify three common programming data types (e.g., integer, string, boolean) and provide an example of real-world information that would best be represented by each.
- Conditional Statements & Loops (Pseudocode/Conceptual):
- Write pseudocode for a program that asks the user for a positive integer
N. The program should then print all numbers from 1 toN, but for multiples of 3, print “Fizz” instead of the number, and for multiples of 5, print “Buzz”. For numbers which are multiples of both 3 and 5, print “FizzBuzz”. - Describe a scenario where a
whileloop would be more appropriate than aforloop in a programming task.
- Write pseudocode for a program that asks the user for a positive integer
- Basic Function Design (Conceptual):
- Design a simple function, in pseudocode, called
calculate_areathat takes two parameters:lengthandwidth. The function should calculate and return the area of a rectangle. How would you call this function to calculate the area of a rectangle with length 10 and width 5?
- Design a simple function, in pseudocode, called
Submission Instructions
- Submit your answers as a single PDF document through the course learning management system (LMS).
- For questions requiring pseudocode, ensure it is clear, well-structured, and easy to understand.
- For questions requiring diagrams (like flowcharts), you may draw them digitally or neatly by hand and embed an image in your PDF.
- Clearly label each part and question.
Grading Rubric
- Correctness: Accuracy of answers, calculations, and conversions.
- Clarity & Completeness: Well-explained concepts, thorough answers, and logical flow.
- Pseudocode & Flowchart Quality: Readability, logical correctness, and adherence to standard conventions.
- Adherence to Instructions: Following all submission guidelines.
Optional Add-ons (for more advanced courses/assignments):
- Implementation Task: “Implement the
calculate_areafunction in Python (or Java, C++, etc.) and demonstrate its usage.” - Complexity Analysis: “Analyze the time complexity of your odd number finding algorithm using Big O notation.”
- Object-Oriented Concepts: “Design a simple class representing a ‘Book’ with attributes like ‘title’, ‘author’, and ‘ISBN’.”
- Data Structures: “Explain the difference between an array and a linked list, and describe a scenario where each would be preferred.”
- Networking/Security: “Briefly explain the concept of a ‘firewall’ in computer networking.”
This dummy content provides a solid foundation. You can adjust the difficulty, specific topics, and expected output based on the actual course level and learning objectives.
Give me an intro for this
Here are a few options for an introduction to the Computer Science assignment, ranging in tone and focus. Choose the one that best fits your course’s style!
Option 1 (Standard & Direct)
Welcome to your first major assignment for CSC 101! This assignment is designed to reinforce the foundational computer science concepts we’ve covered, including data representation, algorithmic thinking, and an introduction to programming paradigms. By tackling these problems, you’ll solidify your understanding of how computers process information and how we construct logical solutions to real-world challenges.
Option 2 (Slightly More Engaging)
Dive into the building blocks of computing with this comprehensive assignment for CSC 101! From understanding how numbers are stored in binary to crafting the logic behind simple programs, this task will challenge you to apply the core concepts we’ve discussed. Get ready to explore data representation, develop your algorithmic problem-solving skills, and take your first steps into fundamental programming concepts.
Option 3 (Concise & Action-Oriented)
This CSC 101 assignment is your opportunity to apply the fundamental principles of computer science. You’ll demonstrate your grasp of data representation, hone your algorithmic thinking, and familiarize yourself with basic programming paradigms. Let’s get started on strengthening your computing foundation!
Course included
No courses!
