Cse unit 2

¡Supera tus tareas y exámenes ahora con Quizwiz!

Broadcast

A command used to trigger or start an event or procedure in a program

One dimensional arrays

A linear list of elements that are all the same type, such as strings, integers, floats

Conditionals

A programming statement that evaluates a true/false Boolean expression to determine the next steps in a program

Algorithm

A set of steps to accomplish a task

Arrays

A type of data structure that can store a fixed number of elements, as long as they are all the same data type

Two dimensional arrays

An array that has both rows and columns

Why are arrays an essential concept in programs

Arrays are essential because an array can store a fixed number if elements of the same data type. These elements can be used to do certain tasks such as adding and subtracting. You can also use the elements in the array to make your reboot move.

What are some ways that concepts in blocks are represented in languages like python and JavaScript

Loops are indented in text where as in blocks they are put inside a loop block. In blocks, certain math procedures are shown with different blocks but in text you just have to type out the sign of the function. You can put more and and ors in text than you can in blocks. You can manipulate the code more and do more things in text than you can in blocks.

Boolean

One of two values, such as true or false, that allows a computer to know what step in the conditional statement process to execute next

Nested loops

Putting a function or a loop inside another loop

Decrementing

Reduced in number by one

Procedural abstraction

The process of applying or using a procedure and only knowing what the procedure does, without knowing how it does it

Variable

The smallest unit of data storage that a program can use

Arguments

The values that a program provides to a function or subroutine

Debugging

To identify errors or bugs in computer hardware or programs and fix them

What challenges are there in programming a vehicle to navigate an environment even if the environment is well defined

When you go to turn, you have to make sure you are turning the correct way and the correct number of degrees. If you go to turn a degree you cant just say to turn, you have to tell it to turn and go forward because turning is just rotating the bot as opposed to actually moving it. Also when going straight you need to make sure that you're going the correct number of spaces forward.

What are some advantages to programming in a text based language compared to a block based programming language

You can add things into a text based language that you cant add to a block based program. You can copy and paste lines in three text based, but you can't copy and pasted a block on the vex coding system that we use. You can also set expressions to < or =, or > or = which you can not do in the blocks. You can put more and and ors in text than you can in blocks. You can manipulate the code more and do more things in text than you can in blocks.

Loops

a sequence of instructions that continually repeats until a condition is met

integrated development environment

a software application that brings together the tools necessary to writ, test, and debug computer programs while they are developed


Conjuntos de estudio relacionados

Negotiation All Chapters with T/F

View Set

Prep U Respiratory Chapter 9: Nursing Management: Patients With Upper Respiratory Tract Disorders

View Set

Soliloquy and Figures of Speech in Romeo and Juliet, Part 4

View Set

ARDS, Acute Respiratory Failure, ABGs

View Set

Behavioral Neuroscience: Hormones and Sexual Behavior

View Set