Science, asked by swapni52, 2 months ago

Sample Programs of QBASIC for CLASS 4
SAMPLE PROGRAM: 1—Write QBASIC program to print your name, class and section
REM TO PRINT THE NAME, CLASS ANS SECTION
CLS
PRINT “MY NAME IS (type your name)”
PRINT “CLASS 4”
PRINT “SECTION: B/C”
END
SAMPLE PROGRAM: 2—Write QBASIC program to print names of any 4 colours
REM TO PRINT THE NAMES OF ANY 4 COLOURS
CLS
PRINT “1. RED”
PRINT “2. BLUE”
PRINT “3. GREEN”
PRINT “4. YELLOW”
END
SAMPLE PROGRAM: 3—Write QBASIC program to print names of any 4 flowers
REM TO PRINT THE NAMES OF ANY 4 FLOWERS
CLS
PRINT “1. ROSE”
PRINT “2. LOTUS”
PRINT “3. JASMINE”
PRINT “4. LILY”
END
SAMPLE PROGRAM: 4—Write QBASIC program to print names of any 4 animals
REM TO PRINT THE NAMES OF ANY 4 ANIMALS
CLS
PRINT “1. DOG”
PRINT “2. CAT”
PRINT “3. TIGER”
PRINT “4. LION”
END
SAMPLE PROGRAM: 5—Write QBASIC program to print names of any 4 birds
REM TO PRINT THE NAMES OF ANY 4 BIRDS
CLS
PRINT “1. PARROT”
PRINT “2. PIGEON”
PRINT “3. CROW”
PRINT “4. SPARROW”
ENDSAMPLE PROGRAM: 6—Write QBASIC program to print the pattern of a particular word
REM TO PRINT THE PATTERN OF THE WORD “APPLE”
CLS
PRINT “A”
PRINT “AP”
PRINT “APP”
PRINT “APPL”
PRINT “APPLE”
END
SAMPLE PROGRAM: 6—Write QBASIC program to print the pattern of a particular word
REM TO PRINT THE PATTERN OF THE WORD “GREAT”
CLS
PRINT “GREAT”
PRINT “GREA”
PRINT “GRE”
PRINT “GR”
PRINT “G”
END​

Answers

Answered by prajwalchaudhari
1

Answer:

REM TO PRINT THE NAME, CLASS ANS SECTION

CLS

PRINT “MY NAME IS (type your name)”

PRINT “CLASS 4”

PRINT “SECTION: B/C”

END

SAMPLE PROGRAM: 2—Write QBASIC program to print names of any 4 colours

REM TO PRINT THE NAMES OF ANY 4 COLOURS

CLS

PRINT “1. RED”

PRINT “2. BLUE”

PRINT “3. GREEN”

PRINT “4. YELLOW”

END

SAMPLE PROGRAM: 3—Write QBASIC program to print names of any 4 flowers

REM TO PRINT THE NAMES OF ANY 4 FLOWERS

CLS

PRINT “1. ROSE”

PRINT “2. LOTUS”

PRINT “3. JASMINE”

PRINT “4. LILY”

END

Similar questions