CS – 1P Using Electronic Voting System (EVS) questioning in the Instructional Design for CS-1P.

Slides:



Advertisements
Similar presentations
Decision Structures - If / Else If / Else. Decisions Often we need to make decisions based on information that we receive. Often we need to make decisions.
Advertisements

Chapter 4 - Control Statements
JAVA Revision Lecture Electronic Voting System Marina De Vos.
While loops.
CS 101 Introductory Programming - Lecture 7: Loops In C & Good Coding Practices Presenter: Ankur Chattopadhyay.
CSI 1306 PROGRAMMING IN VISUAL BASIC PART 2. Part 2  1. Strings  2. Translating Conditional Branch Instructions  3. Translation Set 2  4. Debugging.
Control Flow Copyright © Software Carpentry 2010 This work is licensed under the Creative Commons Attribution License See
CS0007: Introduction to Computer Programming
CS-1010 Dr. Mark L. Hornick 1 Selection Statements and conditional expressions.
CS001 Introduction to Programming Day 3 Sujana Jyothi
1 CIS 205 Practice Test George Lamperti A word that has a predefined meaning in a C++ program and cannot be used as a variable name is known as.
Week 5 while loops; logic; random numbers; tuples Special thanks to Scott Shawcroft, Ryan Tucker, and Paul Beck for their work on these slides. Except.
Iteration & Branching CSC 171 FALL 2001 LECTURE 5.
Selection Statements choice of one among several blocks of code Java supports 3 kinds of selection statements: if statement – selects one block or leaves.
Program Design and Development
1 Lecture 7:Control Structures I (Selection) Introduction to Computer Science Spring 2006.
Chapter 1 Program Design
Internet & World Wide Web How to Program, 5/e © by Pearson Education, Inc. All Rights Reserved.
1.2 – Open Sentences and Graphs
1 Chapter 4 Simple Selections and Repetitions INTRODUCTION The majority of challenging and interesting algorithms necessitate the ability to make.
UNIT II Decision Making And Branching Decision Making And Looping
Chapter Seven Advanced Shell Programming. 2 Lesson A Developing a Fully Featured Program.
Unit 5 while loops; logic; random numbers; tuples Special thanks to Roy McElmurry, John Kurkowski, Scott Shawcroft, Ryan Tucker, Paul Beck for their work.
Chapter 2 Control. "The Practice of Computing Using Python", Punch & Enbody, Copyright © 2013 Pearson Education, Inc. Repetition, quick overview.
CS0004: Introduction to Programming Relational Operators, Logical Operators, and If Statements.
Outlines Chapter 3 –Chapter 3 – Loops & Revision –Loops while do … while – revision 1.
Control Structures II Repetition (Loops). Why Is Repetition Needed? How can you solve the following problem: What is the sum of all the numbers from 1.
CSCI 3328 Object Oriented Programming in C# Chapter 5: C# Control Statement – Part II – Exercises 1 Xiang Lian The University of Texas Rio Grande Valley.
Operators Precedence - Operators with the highest precedence will be executed first. Page 54 of the book and Appendix B list C's operator precedence. Parenthesis.
CMP-MX21: Lecture 5 Repetitions Steve Hordley. Overview 1. Repetition using the do-while construct 2. Repetition using the while construct 3. Repetition.
Advanced Program Design. Review  Step 1: Problem analysis and specification –Specification description of the problem’s inputs and output –Analysis generalize.
Repetition and Iteration ANSI-C. Repetition We need a control instruction to allows us to execute an statement or a set of statements as many times as.
Repetition. Loops Allows the same set of instructions to be used over and over again Starts with the keyword loop and ends with end loop. This will create.
Random Numbers Random numbers are extremely useful: especially for games, and also for calculating experimental probabilities. Formula for generating random.
A: A: double “4” A: “34” 4.
Higher Computing Software Development -So Far- 5/10/10.
11 PART 2 ARRAYS. 22 PROCESSING ARRAY ELEMENTS Reassigning Array Reference Variables The third statement in the segment below copies the address stored.
 Variables can store data of different types, and different data types can do different things.  PHP supports the following data types:  String  Integer.
Shell script – part 2 CS 302. Special shell variable $0.. $9  Positional parameters or command line arguments  For example, a script myscript take 2.
Expressions Methods if else Statements Loops Potpourri.
Clearly Visual Basic: Programming with Visual Basic 2008 Chapter 11 So Many Paths … So Little Time.
Conditional statements and boolean expressions Arithmetic, relational and logical operators.
Control Flow (Python) Dr. José M. Reyes Álamo. 2 Control Flow Sequential statements Decision statements Repetition statements (loops)
While loops. Iteration We’ve seen many places where repetition is necessary in a problem. We’ve been using the for loop for that purpose For loops are.
Chapter 4: Variables, Constants, and Arithmetic Operators Introduction to Programming with C++ Fourth Edition.
Control Flow (Python) Dr. José M. Reyes Álamo. 2 Control Flow Sequential statements Decision statements Repetition statements (loops)
C++ Programming: From Problem Analysis to Program Design, Fifth Edition Chapter 2: Control Structures (Selection & Repetition)
Visual Basic/ Visual Studio Brandon Large. Connecting to prior knowledge In your notes write down what the two main parts of the computer are. The “software”
CS 536 © CS 536 Spring Introduction to Programming Languages and Compilers Charles N. Fischer Lecture 15.
Repetition Statements
Control Flow (Python) Dr. José M. Reyes Álamo.
CS0007: Introduction to Computer Programming
p5.js mouse, keyboard and if’s
Introduction To Repetition The for loop
Welcome to Computer Science Jeopardy
EGR 2261 Unit 4 Control Structures I: Selection
Loops CS140: Introduction to Computing 1 Savitch Chapter 4 Flow of Control: Loops 9/18/13 9/23/13.
Java I.
Nate Brunelle Today: Repetition, Repetition
` Structured Programming & Flowchart
Intro to Computer Science CS1510 Dr. Sarah Diesburg
Introduction to Programming Using Python PART 2
Language Constructs Construct means to build or put together. Language constructs refers to those parts which make up a high level programming language.
'Boolean' data type.
Chapter8: Statement-Level Control Structures April 9, 2019
The structure of programming
Chapter 3 Debugging Section 3.4
Data Types Every variable has a given data type. The most common data types are: String - Text made up of numbers, letters and characters. Integer - Whole.
Data Types and Maths Programming Guides.
Millennium High School Agenda Calendar
Presentation transcript:

CS – 1P Using Electronic Voting System (EVS) questioning in the Instructional Design for CS-1P

CS – 1P What are the correct values for E and F after executing the code? 3, 4 3, 5 -1, 10 0, 9 Never finishes Don't know None of these E, F : Integer; E := 4; F := 3; while E > 0 loop if F > 5 then F := F + 1; else F := F + 2; end if; E := E - 1; end loop;

CS – 1P Changing what in the state, each time we draw the wheel, would make the wheel appear to move? Radius Angle The extremities Hub other

CS – 1P What should Largest be initialised to? First array value Diff, now Ans 1 Diff, now Ans 2 Diff, now Ans 3 Diff, now Ans 4 other don't know

CS – 1P We require a Boolean expression that has the value True if either of the Integer variables P or Q is zero, and has the value False otherwise. Which of the following expressions meet this requirement? 1. P and Q /= 0 2. P or Q = 0 3. P = 0 or Q = 0 1 1,2 1,3 1,2,3 2 2,3 3 None Dunno

CS – 1P Consider the plan "Draw all of the horizontal lines and then draw all of the vertical lines“ At the ***highest level***, what kind of action is this? Repetitive Conditional Sequential Don't know

CS – 1P ***At the top level***, what kind of activity is this? Repetitive, I know in advance how many repetitions Repetitive, I don't know how many repetitions in advance Two-armed Conditional One-armed Conditional Sequential I don't know

CS – 1P What part of the sentence do I need to store in variables in order to write this program? The whole sentence in an array Only one character in the sentence need be stored at any one time Just 4 consecutive characters in the sentence at any one time Some other choice Haven't a clue Problem: Work out whether the string "help" appears in a sentence typed at the keyboardProblem: Work out whether the string "help" appears in a sentence typed at the keyboard