Programming Review

0.0(0)
Studied by 1 person
call kaiCall Kai
learnLearn
examPractice Test
spaced repetitionSpaced Repetition
heart puzzleMatch
flashcardsFlashcards
GameKnowt Play
Card Sorting

1/20

flashcard set

Earn XP

Description and Tags

Last updated 3:08 AM on 6/12/24
Name
Mastery
Learn
Test
Matching
Spaced
Call with Kai

No analytics yet

Send a link to your students to track their progress

21 Terms

1
New cards

Digital Inputs in Vex

Bump Switch, Limit Switch, Optical Shaft Encoder, Ultrasonic Range Finder

2
New cards

Digital Outputs in Vex

LED

3
New cards

Analog Inputs in Vex

Light Sensor, Potentiometer, Line Follower

4
New cards

Normally Open vs

Normally Open is off by default, pathway broken; Normally Closed is on by default

5
New cards

Syntax in Programming

Rules controlling the structure of symbols, punctuation, and words in a programming language

6
New cards

Basic Behavior

Single command to a robot (e.g., start a motor)

7
New cards

Simple Behavior

Robot performs a simple task (e.g., fan stops when sensor is activated)

8
New cards

Complex Behavior

Robot performs a complex task (e.g., automate fan control)

9
New cards

Pseudocode

Describing behaviors in short phrases without concern for syntax or specific commands

10
New cards

Comments in Programming

Notes for human programmers in code, made with // for single line or /* */ for multi-line

11
New cards

Reserved Word in Robot C

Word with specific meaning in Robot C, e.g., startMotor

12
New cards

Boolean Logic

Decisions based on true or false answers, with statements that are either true or false

13
New cards

If Else Statements

Condition-based execution where commands run if condition is true, ignored if false

14
New cards

While Statements

Repeating a section of code as long as a condition remains true

15
New cards

Timers in Robot C

Internal stopwatches running in milliseconds, cleared before use

16
New cards

Variables

Initialized with an initial value, typically declared and initialized in a single statement

17
New cards

Counters

Used to run a loop a specific number of times, changing the count value

18
New cards

Functions

Grouping lines of code, referenced in task main or other functions

19
New cards

Parts of a Function

Declaration (before task main), Definition (after main program), Call (in the main program)

20
New cards

Open Loop System

Non-feedback system depending on input or timed loop

21
New cards

Closed Loop System

Uses feedback (sensor) for self-correction, more accurate and predictable.