0% found this document useful (0 votes)
456 views4 pages

Qbasic Question

This document discusses questions and answers related to the QBASIC programming language. It includes questions about drawing the QBASIC window, listing operators used in QBASIC, differentiating the LET, INPUT, and PRINT statements, writing sample programs using these statements, distinguishing different types of programming statements like assignment, input/output, and conditional statements, writing examples of conditional statements, and differentiating operator types in QBASIC. The document provides explanations, examples, and links to practice questions for various concepts in the QBASIC language.

Uploaded by

atharva101106
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
456 views4 pages

Qbasic Question

This document discusses questions and answers related to the QBASIC programming language. It includes questions about drawing the QBASIC window, listing operators used in QBASIC, differentiating the LET, INPUT, and PRINT statements, writing sample programs using these statements, distinguishing different types of programming statements like assignment, input/output, and conditional statements, writing examples of conditional statements, and differentiating operator types in QBASIC. The document provides explanations, examples, and links to practice questions for various concepts in the QBASIC language.

Uploaded by

atharva101106
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
You are on page 1/ 4

QBASIC QUESTION & ANSWERS

1 Question : Draw the QB64 window and mark the components

2 Question: List out the various operators used in QB64

3 Question : Differentiate the LET, INPUT and PRINT statement.


1. 2. 1. LET Statement:
 The LET statement is used to assign a value to a variable.
However, in modern programming languages, including QB64,
the use of LET is optional. You can simply use the assignment
operator (=) without the LET keyword to assign values to
variables.
Example:

2. INPUT Statement:
 The INPUT statement is used for receiving input from the user. It
prompts the user to enter a value, which is then stored in a
variable.
Example:
In this example, the user is prompted to enter their age, and the value
entered is stored in the variable age.

3. PRINT Statement:
 The PRINT statement is used to display output to the screen. It
can be used to print variables, constants, or expressions.
Example:

This example prints the message "The value of x is" followed by the
value stored in the variable x.

4 Question: Write programs in QBasic using PRINT, LET, INPUT and REM
commands.

REM THIS IS TO PRINT THE BIO DATA


LET X = 10
INPUT “Enter your age: ”; age
PRINT “Your have entered:”; age
END
5 Question: Give distinguish the different types of Programming statements.

1. Assignment Statements:
 Used to assign values to variables. The assignment operator = is
typically used for this purpose. Example: x = 10

2. Input/Output Statements:
 INPUT: Used to receive input from the user.
 PRINT: Used to display output to the screen.
Example:

INPUT "Enter your name: "; name PRINT "Hello, "; name

3. Condition Statements:
 IF...THEN...ELSE: Used for conditional branching.
 .
Examples:
6 Question: Write the working of conditional statements.

7 Question: What are Differentiate the different types of operators used in QB634.
 . Practice and complete the 20 questions from this link
https://www.studyadda.com/question-bank/6th-class/computers-science/break-the-
codes/introduction-to-qbasic/4338

You might also like