1answer.
Ask question
Login Signup
Ask question
All categories
  • English
  • Mathematics
  • Social Studies
  • Business
  • History
  • Health
  • Geography
  • Biology
  • Physics
  • Chemistry
  • Computers and Technology
  • Arts
  • World Languages
  • Spanish
  • French
  • German
  • Advanced Placement (AP)
  • SAT
  • Medicine
  • Law
  • Engineering
german
3 years ago
5

QBasic commands any 10 with examples

Computers and Technology
1 answer:
Mkey [24]3 years ago
3 0

Answer:

I haven't used qbasic in a quarter of a century, so my apologies if any of these are outdated.

I listed 13 here as I don't know what are being qualified as "commands" (I'm sure print is in there, but INT? LEN? these might be interpreted not so much as commands as functions)

PRINT prints text on the screen.

PRINT "How much wood would a woodcuhck chuck?"

INPUT gets text from the user

INPUT woodchuckwood$

INT casts a value as an integer

w = INT(woodchuckwood)

OPEN opens a file for input/output

OPEN "woodchuck.consumption" FOR OUTPUT AS #f

OPEN "woodchuck.consumption" FOR INPUT AS #f

CLS clears the screen

CLS

LOCATE specifies the cursor's location on the screen

LOCATE 10, 10

INKEY$ reads a character from the input buffer

a$ = INKEY$

LEN returns the length of a string

l = LEN(a$)

CHR$ takes an int and returns it's ascii value

$enter = CHR$(13)

ASC() returns the ascii value of a character:

$space = ASC(" ")

DO...LOOP repeats a loop until a condition is met:

x = 0

DO

   x = x + 1

LOOP UNTIL x = 10

SHARED declares global values as being accessible locally

SHARED $username

SHELL executes an os command

SHELL "dir /w"

You might be interested in
Where are the values the computer is directly working with at a particular moment in time stored?
pav-90 [236]

On the CPU register (?) The CPU registers are registers with small amounts of high-speed memory contained within the CPU. They are used by the processor to store small amounts of data that are needed during processing

Hope this helps and that you have a good day

4 0
3 years ago
write a function that returns a list, where each member of list contains previous day’s value multiplied by 2.​
sergeinik [125]

Answer:

Explanation:

The following code is written in Java, the function takes in a list with the previous day's values. The function then uses that list, loops through it and multiplies each individual value by 2 and returns the modified list. The first red  square represents the test case for the function, while the second red square in the image represents the output.

 public static ArrayList<Integer> doubleIt(ArrayList<Integer> mylist) {

       for (int x = 0; x<mylist.size(); x++) {

           mylist.set(x, mylist.get(x)*2);

       }

       return mylist;

   }

5 0
3 years ago
Duplicating objects creates copies that _______________. A. Move differently than the original object B. Erase the original obje
ira [324]

c. look and act like the original object.

6 0
3 years ago
What will be the output of the following program? #include #include #include int value = 5; int main(){ pid_t pid; pid=fork(); i
adoni [48]

Answer:

The output of this program is:

I am the child process.

I am the parent process, value=5

Explanation:

The output of any given program is the generated result after a program execution.

At the end of writing any program, the output is gotten when the programmer hits the enter button to run the program.

Check attachment for output of the program.

8 0
3 years ago
Which are examples of types of audio media that can support a presentation? Check all that apply.
MariettaO [177]

Answer:

music recordings movies sound bites

Explanation:

photographs are not audio (sound)

podcasts are series of a radio or TV show

4 0
3 years ago
Other questions:
  • A _____________ is some text or data that is stored on your computer and used by a website to track how you use that site. quest
    8·2 answers
  • Which statement is an example of an opinion from an online source?
    14·2 answers
  • Write a function that iteratively appends random 1's and 0's to an array to form a binary number. The function returns the binar
    13·1 answer
  • Using the drop-down menus, correctly complete the sentences.
    5·2 answers
  • True or false. Embedding only part of a font is called presetting.
    14·1 answer
  • I NEED SOME MAJOR HELP W/ THIS!!! PLSSS. WHOEVER HELPS GETS 80 POINTS!!! I NEED IT DONE SOON! TYY &lt;3;)
    13·1 answer
  • Joshua needs to join in two cells together which of the following would perform the function
    14·1 answer
  • IN C++ PLEASE!!!! Define a function FilterStr() that takes a string parameter and returns "Good" if the character at index 4 in
    7·1 answer
  • Which statement about the Weather Bar in the Outlook calendar is true?
    12·1 answer
  • someone please do this for and send a screeshot or picture please its really important for my examsss :D​
    9·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!