197k views
3 votes
Critical Thinking Questions

You learned that there are many different programming languages, just like there are many different spoken languages throughout the world. And programming languages have certain syntax, or rules, they have to follow in order for the computer to understand the commands. Give one example of syntax for one of the programming languages listed in the unit. Then give two examples of syntax from a language you know. Describe what will happen if you do not follow these rules in your language.
What are the four main components of programming languages, and why is each one needed?
Give your own examples for how list and dictionary data structures could keep track of some common information you might need. Your examples should be different from the ones in the unit.
Why would a programmer use a flowchart?
Finish identifying the data types of each of the following pieces of data:

TABLE Identify data types
Data Data Type
“Hermione” String
13.5
-6
“18 Mingle Lane”
False
-20.4
“Bonjour”
12345

User Sgmonda
by
4.8k points

1 Answer

2 votes

Answer:

I only have three answered but I hope this helps.

Step-by-step explanation:

1. You learned that there are many different programming languages, just like there are many different spoken languages throughout the world. And programming languages have certain syntax, or rules, they have to follow in order for the computer to understand the commands. Give one example of syntax for one of the programming languages listed in the unit. Then give two examples of syntax from a language you know. Describe what will happen if you do not follow these rules in your language.

In python, when we declare a float or an integer, we declare like this:

a=2 for int

b=2.0 for float

4. Why would a programmer use a flowchart?

Programmers use flowcharts because the help the programmer see where the data will end up. Flow charts help programmers figure out where a potential problem area is and helps them with debugging or cleaning up code that is not working.

5. Finish identifying the data types of each of the following pieces of data:

Data Data Type

“Hermione” String

13.5 Float

-6 Integer

“18 Mingle Lane” String

False Boolean

-20.4 Float

“Bonjour” String

12345 Integer

User Steven Holtzen
by
5.0k points