Page 107 - TechPluse_C6_Flipbook
P. 107

2.    Define relational operators with the help of an example.

                            ...........................................................................................................................................................................

                      3.    Define any one component of the BASIC-256 environment.

                            ...........................................................................................................................................................................

                 E.    Long answer type questions.

                       1.   Which of these variable names are invalid? If the name is invalid, explain why.
                            a. _myBook     b. @Tushar     c. Palak123     d. &Cost

                       2.   What are the advantages of High-level language?

                                                        Mind Boggler




                 What will be the output of the given statements?                                  Computational Thinking
                 1.   INPUT Age
                        PRINT Age
                 2.    PRINT "Enter a number:"

                       INPUT num1
                       PRINT "Entered number is: " + num1
                 3.    INPUT "Enter first number: ", num1
                      INPUT "Enter second number: ", num2

                      num3 = num1
                      num1 =num2
                      num2 = num3
                      PRINT num1
                      PRINT num2
                 4.   PRINT "Enter your name:"

                      INPUT Name
                      PRINT "Hello, " + Name + "!"
                 5.   PRINT "Enter two numbers:"
                      INPUT num1, num2

                      SUM = num1 + num2
                      PRINT "The sum of the numbers is: "; SUM
                 6.   INPUT "Enter your name: ", name
                      INPUT "Enter your age: ", age
                      PRINT name + ", you are " + age + " years old."

                 7.   NPUT "Enter your birth year: ", birthYear
                      PRINT "Your age is: ", 2025 - birthYear




                                                                                     Introduction to BASIC-256       105
   102   103   104   105   106   107   108   109   110   111   112