Type the program and run it.
What is the output of this program?CLSREAD num1num2 = ABS(num1)PRINT num2ENDDATA 12
What is the output of this program?CLSREAD num1num2 = ABS(num1)PRINT num2ENDDATA – 4
What does ABS function do?
What is the output of this program?CLSREAD numPRINT SQR(num)ENDDATA 9
What does SQR function do?
Write the output of this program.CLSREAD numPRINT FIX(num)ENDDATA 7
Write the output of this program.CLSREAD numPRINT FIX(num)ENDDATA – 16
What does FIX function do?
Write the output of this program.CLSREAD numPRINT FIX(num)ENDDATA 7.3
Write the output of this program.CLSREAD numPRINT FIX(num)ENDDATA 7.9
What does FIX function do?
Write the output of this program.CLSREAD numPRINT FIX(num)ENDDATA – 7.9
What does FIX function do?
Write the output of this program.CLSREAD numPRINT INT(num)ENDDATA 5.3
What does INT function do?
Write the output of this program.CLSREAD numPRINT INT(num)ENDDATA – 23.12
What does INT function do?
Upcoming SlideShare
Loading in...5
×

Functions activity

285

Published on

hands on activity to learn qbasic library functions

Published in: Education, Technology
0 Comments
0 Likes
Statistics
Notes
  • Be the first to comment

  • Be the first to like this

No Downloads
Views
Total Views
285
On Slideshare
0
From Embeds
0
Number of Embeds
0
Actions
Shares
0
Downloads
7
Comments
0
Likes
0
Embeds 0
No embeds

No notes for slide

Transcript of "Functions activity"

  1. 1. Type the program and run it.
  2. 2. What is the output of this program?CLSREAD num1num2 = ABS(num1)PRINT num2ENDDATA 12
  3. 3. What is the output of this program?CLSREAD num1num2 = ABS(num1)PRINT num2ENDDATA – 4
  4. 4. What does ABS function do?
  5. 5. What is the output of this program?CLSREAD numPRINT SQR(num)ENDDATA 9
  6. 6. What does SQR function do?
  7. 7. Write the output of this program.CLSREAD numPRINT FIX(num)ENDDATA 7
  8. 8. Write the output of this program.CLSREAD numPRINT FIX(num)ENDDATA – 16
  9. 9. What does FIX function do?
  10. 10. Write the output of this program.CLSREAD numPRINT FIX(num)ENDDATA 7.3
  11. 11. Write the output of this program.CLSREAD numPRINT FIX(num)ENDDATA 7.9
  12. 12. What does FIX function do?
  13. 13. Write the output of this program.CLSREAD numPRINT FIX(num)ENDDATA – 7.9
  14. 14. What does FIX function do?
  15. 15. Write the output of this program.CLSREAD numPRINT INT(num)ENDDATA 5.3
  16. 16. What does INT function do?
  17. 17. Write the output of this program.CLSREAD numPRINT INT(num)ENDDATA – 23.12
  18. 18. What does INT function do?
  1. A particular slide catching your eye?

    Clipping is a handy way to collect important slides you want to go back to later.

×