I_am_sharing__GRADE_7_CBSE_WORKSHEET_edited__with_you

Page 1: Multiple Choice and Short Answer Questions

I. MULTIPLE CHOICE QUESTIONS

  1. Which function repeats consecutively until Arduino is turned off?a) Loop()b) Setup()c) delay()ANS: Loop()

  2. Which function is used to remove all elements from the set?a) clear()b) update()c) remove()ANS: clear()

  3. On the palette under which selection will you find a Button?a) User Interfaceb) sensorsc) LayoutANS: User Interface

II. SHORT ANSWER TYPE QUESTIONS

  1. Steps to start a new project in App Inventor:

    • Open App Inventor and sign in with your Google account.

    • Click on "Create Apps!" and select "Start a New Project".

    • Enter a project name (e.g., "MyFirstApp") without spaces.

  2. Open the Designer Window:

    • Drag and drop components (Buttons, Labels, TextBoxes) onto the screen.

Page 2: Continuing Short Answer Questions

  1. Switch to the Blocks Editor:

    • Click on the "Blocks" button.

    • Use the Blocks Editor to add logic using drag-and-drop code blocks.

  2. Test Your App:

    • Using Emulator: Connect via Emulator.

    • Using Phone: Install MIT AI2 Companion app and connect via Wi-Fi or USB.

  3. Save and Export Your App:

    • Click Build > App (APK) to generate the app.

    • Download and install on your Android device.

III. LONG ANSWER TYPE QUESTIONS

  1. Arduino Components and Their Uses:

    • Arduino Controller: A microcontroller board like Arduino Uno.

    • Jumper Wires: Used to make connections.

    • Resistors: Limit current flow to protect components like LEDs.

Page 3: Arduino Functions and Programming

  1. setup() and loop() Functions in Arduino:

    • setup() Function: Initializes components once.

      • Example:

        void setup() {
        pinMode(13, OUTPUT);
        }
    • loop() Function: Executes main logic continuously.

      • Example:

        void loop() {
        digitalWrite(13, HIGH);
        delay(1000);
        digitalWrite(13, LOW);
        delay(1000);
        }
  2. Program to display odd numbers from 51 to 61 using loops:

    • For Loop:

      print("Odd numbers from 51 to 61 using for loop:")
      for i in range(51, 62, 2):
      print(i)
    • While Loop:

      print("Odd numbers from 51 to 61 using while loop:")
      i = 51
      while i <= 61:
      print(i)
      i += 2

Page 4: Sets in Python

  1. Define set and its operations:

    • A set is an unordered collection of unique elements, used for storing multiple values without duplicates.

    • Creating a set:

      my_set = {1, 2, 3, 4, 5}

Page 5: (Content Not Provided)

robot