Functions activity
Upcoming SlideShare
Loading in...5
×
 

Functions activity

on

  • 436 views

hands on activity to learn qbasic library functions

hands on activity to learn qbasic library functions

Statistics

Views

Total Views
436
Views on SlideShare
436
Embed Views
0

Actions

Likes
0
Downloads
4
Comments
0

0 Embeds 0

No embeds

Accessibility

Upload Details

Uploaded via as Microsoft PowerPoint

Usage Rights

© All Rights Reserved

Report content

Flagged as inappropriate Flag as inappropriate
Flag as inappropriate

Select your reason for flagging this presentation as inappropriate.

Cancel
  • Full Name Full Name Comment goes here.
    Are you sure you want to
    Your message goes here
    Processing…
Post Comment
Edit your comment

Functions activity Functions activity Presentation Transcript

  • 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?