Reproduced Core Elements of a program

Source: Internet
Author: User

Original link http://ocw.mit.edu/courses/electrical-engineering-and-computer-science/ 6-00sc-introduction-to-computer-science-and-programming-spring-2011/unit-1/ lecture-2-core-elements-of-a-program/

Check yourself

What is a "type"?

Types is classifications of objects, which was what Python, as a OOP language, deals with. They determine how those objects is dealt with (for example, adding. intergers resultes in an interger, both strings re Sults in a concatenated string, and an Interger and a string results in an error).

What's an ' expression '?

An expression was composed of objects (or operands[n. The number on which an operation was to being done operand]) and operators, a nd can is interpreted into a value.

What is a type conversion? [Type conversion]

A type conversion turns one type of object into another. For example, applying str to the integer 3 results in the string ' 3 '.

What is a keyword?

Keywords is words that has special meanings within a language. Many editors would display them in special colors. These words cannot be used as variables.

What's the difference between a straight line program and a branching program?

A Stratight Line program simply goes through and carries out each step. A branching program would do differenct things depending in conditions set within the program.

What is a conditional?

A Conditional statement starts with an if statement, and can also include elif and else satements.

Basically the content of some completely beginners, at the beginning of this problem at the time completely do not know how to answer, because this is this ...

Reproduced Core Elements of a program

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.