0% found this document useful (0 votes)
99 views3 pages

ICT Notes

Ict notes
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
99 views3 pages

ICT Notes

Ict notes
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd

MIT App Inventor Key Notes:

1. Fill in the Blanks:


- Apps run inside the operating system of the mobile.
- Google Maps and AccuWeather are examples of Information services apps.
- In MIT App Inventor, components in Viewer will also show in the Component
List and Properties.
- The Components List section lists objects added to the interface.

2. Key Questions & Answers:

- Can you change the name of objects in MIT App Inventor?


- Yes, to give objects meaningful names explaining their function. The name
should be one word without spaces.

- What is the purpose of the Designer Window and Block Window?


- Designer Window: This is used to design the app’s interface using various
components.
- Block Window: This creates the program code that powers the app.

- What is the Block Editor, and what are its parts?


- Block Editor provides functionality to components by assigning tasks.
- Main parts:
- Built-in blocks: For general behaviour.
- Component blocks: Blocks added to the app.
- Trash: Deletes unused blocks.
- Backpack: Stores blocks for reuse, even after exiting the app.

- Process for Developing an App (e.g., by Yash for his school):


1. Gather app requirements.
2. Design the app based on the requirements.
3. Test the app.
4. If results meet the requirements, the app is ready; if not, improve or add
features.
Python Key Notes:
Python Key Notes:

1. Relational Operator:
- Used to compare values.
- Returns either True or False depending on the condition.

2. Conditional `If`:
- Tests a condition. If true, the code block inside `if` is executed.
- Syntax:
```python
if condition:
# statements
```

3. Conditional `If-Else`:
- Executes code inside `if` if the condition is true, otherwise runs code inside
`else`.
- Example:
```python
a = 10
b = 20
if a > b:
print("a is greater")
else:
print("b is greater")
```

4. `Elif` Statement:
- Checks multiple conditions. If `if` is false, `elif` is checked, and so on.
- Syntax:
```python
if condition:
# statements
elif condition:
# statements
else:
# statements
```

5. Python List Methods:


- `append()`: Adds an element to the end of the list.
- `insert()`: Inserts an item at a defined index.
- `remove()`: Removes an item from the list.
- `clear()`: Removes all items from the list.
- `reverse()`: Reverses the order of the list.

6. `input()` Function:
- Used to get user input.
- Example:
```python
name = input("Please Enter Your Name: ")
print("Name:", name)
```

7. Python List:
- A collection of ordered, changeable elements.
- Allows duplicate values.
- Can contain items of different data types.
- Syntax: `[item1, item2, ...]`

8. List Operations:
- Accessing elements: Use the index (starts at 0).
``` python
list1 = ['apple', 'banana', 'cherry']
print(list1[0]) # Outputs: apple
```
- Adding elements:
```python
list1.append("orange")
list1.insert(1, "grape")
```
- Deleting elements:
```python
list1.remove("banana")
list1.pop(1) # Removes item at index 1
list1.pop() # Removes last item
```

---

You might also like