True basic review practice questions
This presentation is the property of its rightful owner.
Sponsored Links
1 / 13

True BASIC Review Practice Questions PowerPoint PPT Presentation


  • 64 Views
  • Uploaded on
  • Presentation posted in: General

True BASIC Review Practice Questions. string$s strings nums nums $ phone# phone_number # ofphones number_of_phones will&tell completion%. Which of these are valid variable names? jimbo 5tars st4rs star5 st4r5 5t4r5 star$ st4r$ 5tar$ $tar5. string$s strings nums nums $

Download Presentation

True BASIC Review Practice Questions

An Image/Link below is provided (as is) to download presentation

Download Policy: Content on the Website is provided to you AS IS for your information and personal use and may not be sold / licensed / shared on other websites without getting consent from its author.While downloading, if for some reason you are not able to download a presentation, the publisher may have deleted the file from their server.


- - - - - - - - - - - - - - - - - - - - - - - - - - E N D - - - - - - - - - - - - - - - - - - - - - - - - - -

Presentation Transcript


True basic review practice questions

True BASIC Review Practice Questions


True basic review practice questions

  • string$s

  • strings

  • nums

  • nums$

  • phone#

  • phone_number

  • #ofphones

  • number_of_phones

  • will&tell

  • completion%

Which of these are valid variable names?

jimbo

5tars

st4rs

star5

st4r5

5t4r5

star$

st4r$

5tar$

$tar5


True basic review practice questions

  • string$s

  • strings

  • nums

  • nums$

  • phone#

  • phone_number

  • #ofphones

  • number_of_phones

  • will&tell

  • completion%

Which of these are valid variable names?

jimbo

5tars

st4rs

star5

st4r5

5t4r5

star$

st4r$

5tar$

$tar5


True basic review practice questions

What is the output of this program?

DATA 1, 2

READ X

DATA 3, 4

READ Y

DATA 5, 6

PRINT "X=";X

PRINT "Y=";Y

PRINT

READ X, Y

DATA 7, 8

PRINT "X=";X

PRINT "Y=";Y

END


True basic review practice questions

OUTPUT

X= 1

Y= 2

X= 3

Y= 4

What is the output of this program?

DATA 1, 2

READ X

DATA 3, 4

READ Y

DATA 5, 6

PRINT "X=";X

PRINT "Y=";Y

PRINT

READ X, Y

DATA 7, 8

PRINT "X=";X

PRINT "Y=";Y

END


True basic review practice questions

What is the output of this program?

FOR X = 1 TO 5

SELECT CASE X

CASE IS < 1

PRINT "banana"

CASE 1 TO 2

PRINT "apple"

CASE 1 TO 3

PRINT "pear"

CASE 3,5

PRINT "orange"

CASE ELSE

PRINT "kiwi"

END SELECT

NEXT X

END


True basic review practice questions

OUTPUT

apple

apple

pear

kiwi

orange

What is the output of this program?

FOR X = 1 TO 5

SELECT CASE X

CASE IS < 1

PRINT "banana"

CASE 1 TO 2

PRINT "apple"

CASE 1 TO 3

PRINT "pear"

CASE 3,5

PRINT "orange"

CASE ELSE

PRINT "kiwi"

END SELECT

NEXT X

END


True basic review practice questions

What is the output of this program?

LET string$ = "a"

LET num = 4

IF(num < 4) THEN PRINT "A" ELSE PRINT "B"

IF(string$ <> "a") THEN

PRINT "C"

ELSEIF(string$ <> "b") THEN

PRINT "D"

ELSEIF(string$ <> "c") THEN

PRINT "E"

ELSE

PRINT "F"

END IF

END


True basic review practice questions

What is the output of this program?

LET string$ = "a"

LET num = 4

IF(num < 4) THEN PRINT "A" ELSE PRINT "B"

IF(string$ <> "a") THEN

PRINT "C"

ELSEIF(string$ <> "b") THEN

PRINT "D"

ELSEIF(string$ <> "c") THEN

PRINT "E"

ELSE

PRINT "F"

END IF

END

OUTPUT

B

D


True basic review practice questions

What is the output of this program?

LET X = 1

PRINT "a ";X

FOR X = 5 TO 10 STEP 2

PRINT "b ";X

NEXT X

PRINT "c ";X

LET X = 3

DO

PRINT "d ";X

LOOP UNTIL X < 5

END


True basic review practice questions

OUTPUT

a 1

b 5

b 7

b 9

c 11

d 3

What is the output of this program?

LET X = 1

PRINT "a ";X

FOR X = 5 TO 10 STEP 2

PRINT "b ";X

NEXT X

PRINT "c ";X

LET X = 3

DO

PRINT "d ";X

LOOP UNTIL X < 5

END


True basic review practice questions

What is the output of this program?

DATA "alpha", "bravo", "charlie", "delta", "echo"

DATA "foxtrot", "golf", "hotel", "india", "juliet"

DIM phonetic$(26)

FOR J = 1 TO 10

READ phonetic$(J)

NEXT J

FOR J = 5 TO 1 STEP -1

PRINT phonetic$(INT(J/2)+1)

NEXT J

END


True basic review practice questions

What is the output of this program?

DATA "alpha", "bravo", "charlie", "delta", "echo"

DATA "foxtrot", "golf", "hotel", "india", "juliet"

DIM phonetic$(26)

FOR J = 1 TO 10

READ phonetic$(J)

NEXT J

FOR J = 5 TO 1 STEP -1

PRINT phonetic$(INT(J/2)+1)

NEXT J

END

OUTPUT

charlie

charlie

bravo

bravo

alpha


  • Login