29.3k views
0 votes
Plz help

In response to a line of code reading name = input(“What is your name?”), the user enters the word Joshi. What will be the variable name assigned to the data Joshi?
a.
input

b.
name

c.
one

d.
What is your name?

2 Answers

1 vote

Answer:

b. name

Step-by-step explanation:

Not sure what language this is, but it looks like input( ) is a function that displays whatever you pass in, and then gets the responding user input.

Therefore, when you assign the function to a variable named "name", whatever the user input is will be assigned to it.

var name;

name = input("What is your name?");

print(name); //This would print the user's input.

User Robject
by
3.3k points
2 votes

Answer:

name

Step-by-step explanation:

name =

is an assignment to the variable called 'name'.

User Jalmaas
by
3.4k points