CS50
Harvard University
Here are the best resources to pass CS50. Find CS50 study guides, notes, assignments, and much more.
71 results
Exam (elaborations)
Harvard CS50 Week 1: Data Types & Variables Questions And Answers.
Harvard CS50 Week 1: Data Types & Variables Questions And Answers. 
 
 
What is an "int?" - CORRECT ANSWER -The int data type is used for variables that will store integers 
- Integers always take up 4 bytes of memory(32 bits). Range of information that can be stored is limited to 32 bits 
 
What is an "unsigned int?" - CORRECT ANSWER - qualifier that effectively doubles the range of positive variables of that type at the expense of negative values 
 
What is a "char?" - CORRECT ANSWER - u...
Exam (elaborations)
CS50 Python Practice Exam Test.
CS50 Python Practice Exam Test. 
 
 
Which increment operator does not exist in python 
-++ or -- 
-Must use += or -= 
How to code for loop in python 
for i in range(#): 
Data types in python 
-Bool 
-Float 
-Int 
-Str 
-range'-tuple 
-dict 
-set 
What is a tuple? 
-a fixed-length, immutable sequence of Python objects 
What is a dictionary python 
-The built-in datatypes in Python is called dictionary. It defines one-to-one relationship between keys and values. Dictionaries contain pair of keys...
Exam (elaborations)
CS50 Review Practice Test.
CS50 Review Practice Test. 
 
 
Boolean 
A single value of either TRUE or FALSE 
Function 
A amount of code to do one specific task 
Variable 
Its storage a value like a bucket 
Conditionals - IF ....THEN ....ELSE 
Statements that only run under certain conditions: if then, else... 
Input 
Data that is entered into the computer system or instructions 
Algorithm 
a step-by-step procedure for solving a problem 
Output 
Data that has been processed by the alghoritm into a useful format. 
Loop 
a pr...
Exam (elaborations)
Code C Study Guide Test.
Code C Study Guide Test. 
 
 
#include <cs50.h> 
#include <stdio.h> - CORRECT ANSWER in all c50 code 
 
[data type] [variable] = get_[variable type]("[display]") - CORRECT ANSWER input syntax 
 
[data type] [variable] = [variable] - CORRECT ANSWER assigning variable syntax 
 
in all statements - CORRECT ANSWER ; 
 
printf("%[data type letter]", [variable]) - CORRECT ANSWER display variable 
 
int main(void){[all code]} - CORRECT ANSWER in all c programs 
 
if ([boolean statement]...
Exam (elaborations)
Understanding Technology – Multimedia Questions And Answers.
Understanding Technology – Multimedia Questions And Answers. 
 
 
file formats for recorded music - CORRECT ANSWER aac, midi, mp3, wav 
 
midi - CORRECT ANSWER way of storing musical notes for certain songs 
 
file formats - CORRECT ANSWER a way of storing 0s and 1s on disk so that a certain software knows how to interpret it 
 
sampling frequency - CORRECT ANSWER number of times per seconds we take a digital snapshot of what a person would hear 
 
bit depth - CORRECT ANSWER Number of bits use...
Exam (elaborations)
CS50, lecture 7: SQL Written Exam A Graded Answers.
CS50, lecture 7: SQL Written Exam A Graded Answers. 
 
 
schema - CORRECT ANSWER decide on the _________, or format, of our data in advance by choosing the columns 
 
database - CORRECT ANSWER a file or program that stores data 
 
flat-file database - CORRECT ANSWER a database that only contains one table of data; example: CSV files 
 
KeyError - CORRECT ANSWER error raised when a dictionary key is not found 
 
canonicalize - CORRECT ANSWER standardizing data (e.g. all uppercase, strip whitespac...
Exam (elaborations)
Harvard CS50: AI With Python Review Practice Exam Questions.
Harvard CS50: AI With Python Review Practice Exam Questions. 
 
 
Agent - CORRECT ANSWER entity that perceives its environment and acts upon that environment. 
 
state - CORRECT ANSWER a configuration of the agent and its environment. 
 
initial state - CORRECT ANSWER the state in which the agent begins. 
 
actions - CORRECT ANSWER choices that can be made in a given state. 
 
Transition Model - CORRECT ANSWER a description of what state results from performing any applicable action in any state...
Exam (elaborations)
CS50, lecture 2: Arrays Questions And Answers.
CS50, lecture 2: Arrays Questions And Answers. 
 
 
command line argument 
an input to a program on the command-line as extra words after the program's name in the command itself (run in terminal) 
Preprocessing 
Compiling step 1 of 4; a text substitution tool that instructs the compiler to do required __________ before the actual compilation; commands start with hash symbol (#) 
 
Compiling 
Compiling step 2 of 4; takes our source code (e.g. human-written code in C), and converts it to anothe...
Exam (elaborations)
Harvard CS50 Flask Written Exam.
Harvard CS50 Flask Written Exam. 
 
 
Flask - CORRECT ANSWER For python. Framework 
 
Why is flask important? - CORRECT ANSWER Easier to find information 
 
Where can you find flask? - CORRECT ANSWER
Exam (elaborations)
CS50, lecture 5: Data Structures Study Practice Test Quiz.
CS50, lecture 5: Data Structures Study Practice Test Quiz. 
 
 
Data structures 
more complex ways to organize data in memory, allowing us to store information in different layouts. 
linked list 
A linear data structure, much like an array, that consists of nodes, where each node contains data as well as a link to the next node, but that does not use contiguous memory. 
 
With ______ _________, we can store a list of values that can easily be grown by storing values in different parts of memory....
Exam (elaborations)
Cs50 week 1 Questions And Answers.
Cs50 week 1 Questions And Answers. 
 
 
Argument - CORRECT ANSWER costumization within a function 
 
n- - CORRECT ANSWER hits return on your keyboard 
 
While - CORRECT ANSWER do over and over when ______ is the case 
 
True - CORRECT ANSWER is always true, no matter what, so "while (true)" leads to a forever loop 
 
For - CORRECT ANSWER functions like 'while' but for defiente loops 
 
For loop - CORRECT ANSWER (int i = __; i <> __; i++) when i is less than a certain number, lets you...
Exam (elaborations)
CS50 QUESTIONS AND ANSWERS.
CS50 QUESTIONS AND ANSWERS. 
 
 
Define "Function." - CORRECT ANSWER o Functions are action verbs that tell you to do some sort of action (ex. pick up, call, open to, etc) 
 
Define "conditionals." - CORRECT ANSWER o Conditionals are like a crossroad where we use "if" and "then" statements/concepts 
 
What are Boolean expressions? - CORRECT ANSWER o Boolean expressions are "yes"/"no" questions 
 
What can help us write, run, and translate our code? - CORRECT ANSWER Tools called IDEs,...
Exam (elaborations)
CS50 Harvard EDX Written Exam Questions and Answers.
CS50 Harvard EDX Written Exam Questions and Answers. 
 
 
What is a byte? - CORRECT ANSWER 8 bits 
 
what does the computer use physically to represent or store values? (a tiny little switch) - CORRECT ANSWER transistor 
 
functions - CORRECT ANSWER verbs or actions that tell the computer what to do 
 
conditions - CORRECT ANSWER forks in the road, either this or that 
 
boolean expression - CORRECT ANSWER questions in code with yes or no answers (true/false) 
 
loop - CORRECT ANSWER a cycle doi...
Exam (elaborations)
Harvard CS50 Week 1: Data Types & Variables Questions and Answers.
Harvard CS50 Week 1: Data Types & Variables Questions and Answers. 
 
 
What is an "int?" - CORRECT ANSWER -The int data type is used for variables that will store integers 
- Integers always take up 4 bytes of memory(32 bits). Range of information that can be stored is limited to 32 bits 
 
What is an "unsigned int?" - CORRECT ANSWER - qualifier that effectively doubles the range of positive variables of that type at the expense of negative values 
 
What is a "char?" - CORRECT ANSWER - u...
Exam (elaborations)
Harvard CS50 Week 0 Notes Study Guide.
Harvard CS50 Week 0 Notes Study Guide. 
 
 
Problem Solving - CORRECT ANSWER What is computer science on a fundamental level? 
 
It is the process of taking some input (details about are problem) and generate some output (the solution). - CORRECT ANSWER What is Problem Solving in CS terms? 
 
The numbers 0-9. Once we count up past 9, we carry a 1 to the left and start at 0 again (i.e. the number "10") - CORRECT ANSWER What numbers are represented in the base 10 (otherwise known as decimal) sys...
Exam (elaborations)
CS50 STUDY GUIDE EXAM QUESTIONS.
CS50 STUDY GUIDE EXAM QUESTIONS. 
 
 
Binary Numbers - CORRECT ANSWER 0, 1 
 
1 - CORRECT ANSWER 001 
 
2 - CORRECT ANSWER 010 
 
3 - CORRECT ANSWER 011 
 
4 - CORRECT ANSWER 100 
 
5 - CORRECT ANSWER 101 
 
6 - CORRECT ANSWER 110 
 
7 - CORRECT ANSWER 111 
 
8 - CORRECT ANSWER 1000 
 
9 - CORRECT ANSWER 1001 
 
10 - CORRECT ANSWER 1010 
 
15 - CORRECT ANSWER 1111 
 
33 - CORRECT ANSWER 100001
Summary
Fundamentals of Computing: Mastering Computational Thinking and Scratch Programming
Unlock the world of computing with our comprehensive guide on computational thinking, problem-solving techniques, and basic programming concepts using Scratch. Dive into the essence of breaking down complex problems, identifying patterns, and creating step-by-step solutions through algorithm design. Explore the visual programming language Scratch, discovering the power of sprites, blocks, scripts, and events. This resource establishes a solid foundation for anyone seeking a thorough understandin...
Class notes
All Basics Of CS50
"CS50" is an introductory computer science course at Harvard University, designed to provide students with a comprehensive understanding of computer science and programming concepts. Below is an in-depth description of CS50, covering various aspects of the course: 
 
Course Overview: 
 
Name: CS50: Introduction to Computer Science 
Institution: Harvard University 
Duration: Typically runs for a semester 
Course Content: 
 
CS50 covers a wide range of computer science topics, starting from the ...
Class notes
CS50 Notes 152
CS50, also known as "Introduction to Computer Science," is a renowned course offered at Harvard University. Led by Professor David J. Malan, this course provides a comprehensive and in-depth introduction to the field of computer science, equipping students with fundamental programming skills, problem-solving techniques, and a broader understanding of computational thinking. 
 
The course notes in CS50 cover a wide range of topics, catering to both beginners and those with some programming expe...
Class notes
CS50 Notes
CS50, also known as "Introduction to Computer Science," is a renowned course offered at Harvard University. Led by Professor David J. Malan, this course provides a comprehensive and in-depth introduction to the field of computer science, equipping students with fundamental programming skills, problem-solving techniques, and a broader understanding of computational thinking. 
 
The course notes in CS50 cover a wide range of topics, catering to both beginners and those with some programming expe...