Programming Misconceptions

Slides:



Advertisements
Similar presentations
Chapter 4: Control Structures I (Selection)
Advertisements

While loops.
CS 101 Introductory Programming - Lecture 7: Loops In C & Good Coding Practices Presenter: Ankur Chattopadhyay.
Marking Schema question1: 40 marks question2: 40 marks question3: 20 marks total: 100 marks.
 Computer Science 1MD3 Introduction to Programming Winter 2014.
ALGORITHMS - PART 2 CONDITIONAL BRANCH CONTROL STRUCTURE
CS107 Introduction to Computer Science Lecture 3, 4 An Introduction to Algorithms: Loops.
CS107: Introduction to Computer Science Lecture 2 Jan 29th.
The lambda calculus David Walker CS 441. the (untyped) lambda calculus a language of functions e ::= x | \x.e | e1 e2 v ::= \x.e there are several different.
Static Single Assignment CS 540. Spring Efficient Representations for Reachability Efficiency is measured in terms of the size of the representation.
Bernstein’s Conditions. Techniques to Exploit Parallelism in Sequential Programming Hierarchy of levels of parallelism: Procedure or Methods Statements.
 Recap – Python Basics. Python  Python is an interpreter which reads and executes a python script.  A python script is a text file, which contains.
Chapter 4 Control Structures I. Objectives ► Examine relational and logical operators ► Explore how to form and evaluate logical (Boolean) expressions.
1 CS 201 Compiler Construction Lecture 5 Code Optimizations: Copy Propagation & Elimination.
CS 536 Spring Global Optimizations Lecture 23.
Reduction in Strength CS 480. Our sample calculation for i := 1 to n for j := 1 to m c [i, j] := 0 for k := 1 to p c[i, j] := c[i, j] + a[i, k] * b[k,
Program Design and Development
Prof. Fateman CS 164 Lecture 221 Global Optimization Lecture 22.
Basic Building Blocks of Programming. Variables and Assignment Think of a variable as an empty container Assignment symbol (=) means putting a value into.
1 Arithmetic in C. 2 Type Casting: STOPPED You can change the data type of the variable in an expression by: (data_Type) Variable_Name Ex: int a = 15;
©The McGraw-Hill Companies, Inc. Permission required for reproduction or display. 4 th Ed Chapter Chapter 6 Repetition Statements.
Internet & World Wide Web How to Program, 5/e © by Pearson Education, Inc. All Rights Reserved.
Prof. Bodik CS 164 Lecture 16, Fall Global Optimization Lecture 16.
True or False Unit 3 Lesson 7 Building Blocks of Decision Making With Additions & Modifications by Mr. Dave Clausen True or False.
COMP 1001: Introduction to Computers for Arts and Social Sciences Programming in Scratch Monday, May 16, 2011.
ASP.NET Programming with C# and SQL Server First Edition Chapter 3 Using Functions, Methods, and Control Structures.
Principles of programming languages 5: An operational semantics of a small subset of C Department of Information Science and Engineering Isao Sasano.
Property of Jack Wilson, Cerritos College1 CIS Computer Programming Logic Programming Concepts Overview prepared by Jack Wilson Cerritos College.
Q and A for Chapter 7 Students of CS104, and me, your benevolent professor, Victor T. Norman, PhD.
Internet & World Wide Web How to Program, 5/e © by Pearson Education, Inc. All Rights Reserved.
Introduction to: Programming CS105 Lecture: Yang Mu.
 2008 Pearson Education, Inc. All rights reserved JavaScript: Control Statements I.
If…Else Assessment By: Yinyu Zhou, Kyle Toler, and Ben Howard.
CS 100 Introduction to Computing Seminar October 7, 2015.
Chapter 4 Control Structures I. Chapter Objectives Learn about control structures Examine relational and logical operators Explore how to form and evaluate.
More on Loop Optimization Data Flow Analysis CS 480.
Language Find the latest version of this document at
Controlling Computers with Programs When you create a computer program you are creating a set of instructions that tell the computer exactly and completely.
Variables  A piece of memory set aside to store data  When declared, the memory is given a name  by using the name, we can access the data that sits.
Chapter 7: Repetition Structure (Loop) Department of Computer Science Foundation Year Program Umm Alqura University, Makkah Computer Programming Skills.
Intelligent Numerical Computation1 Numerical Analysis Basic structures of a flowchart Solving a nonlinear equation with one variable Bisection method Newton.
IST 210: PHP LOGIC IST 210: Organization of Data IST210 1.
PH2150 Scientific Computing Skills Control Structures in Python In general, statements are executed sequentially, top to bottom. There are many instances.
IST 210: PHP Logic IST 210: Organization of Data IST2101.
Chapter 7 JavaScript: Control Statements, Part 1
Information and Computer Sciences University of Hawaii, Manoa
ECE 4110–5110 Digital System Design
EQUATION IN TWO VARIABLES:
CS 115 Lecture Flags.
ALGORITHMS CONDITIONAL BRANCH CONTROL STRUCTURE
Variables A piece of memory set aside to store data
Pick up the handout on your way in!!
6-2 Solving Systems using Substitution
Arrays, For loop While loop Do while loop
Loop Control Structure.
Looping and Repetition
Computers & Programming Languages
CS 115 Lecture Flags.
Computers & Programming Languages
Introduction to Object-Oriented Programming with Java--Wu
3 Control Statements:.
Algorithm and Ambiguity
Computer Science Core Concepts
ICT Gaming Lesson 3.
Programming Concepts and Database
Understanding Conditions
Equations and Their Solutions
Flow of Control Flow of control is the order in which a program performs actions. Up to this point, the order has been sequential. A branching statement.
Looping and Repetition
The return Statement © 2018 Kris Jordan.
Presentation transcript:

Programming Misconceptions

Agenda Programming misconceptions: definition and history Misconceptions on which (programming) language (Some) Examples and categories of programming misconceptions Effect of programming misconceptions on CS Education Origins of programming misconceptions A lot is done. What do we need to do still?

A programming misconception An incorrect understanding of a concept or a set of concepts, which leads to making mistakes in writing or reading programs

Participants: 178 school-age children

M23: Diffculties in understanding the sequentiality of statements

M9: A variable can hold multiple values at a time

M150: Diffculties understanding the effect of input calls on execution

M14: A variable is a pairing of a name to a changeable value M14: A variable is a pairing of a name to a changeable value. It is not stored inside the computer

M15: Primitive assignment stores equations or unresolved expressions

M30: Adjacent code executes within loop

M17: Natural-language semantics of variable names affects which value gets assigned to which variable

M31: Control goes back to start when condition is false

M33: Loops terminate as soon as condition changes to false

M11: Primitive assignment works in opposite direction

M26: A false condition ends program if no else branch exists