Computer Science, asked by gsgcm, 2 months ago

What will be the result of A="Juhi" + "Nanda"? in a QBasic Program​

Answers

Answered by allysia
3

Language:

QBasic

Question Correction:

Output of:

A="Juhi" + "Nanda"

PRINT A

Output:

error of type mismatch.

Explanation:

User has to assign the datatype in this case you're trying to add the text and not "concatenate" em.

To concatenate em you gotta add an $ after a to ensure datatype being stored is string.

Program Correction:

Output of:

A$="Juhi" + "Nanda"

PRINT A$

Output:

"JuhiNanda"

Similar questions