ADVANCED TOPICS IN COMPILER DESIGN
CODE GENERATION FOR OBJECT ORIENTED LANGUAGES
Question
[CLICK ON ANY CHOICE TO KNOW THE RIGHT ANSWER]
|
____ function accepts input from user and store it into a variable
|
ReadKey()
|
|
ReadLine()
|
|
Read()
|
|
WriteLine()
|
Explanation:
Detailed explanation-1: -We use the printf() function to prompt the user to enter an integer, and the scanf() function reads the user’s input and stores it in the num variable.
Detailed explanation-2: -Accepting input from the user is one way to create more dynamic programs and applications. To do so in Python, developers must use the input() function.
Detailed explanation-3: -The result is stored in the inputData variable.
Detailed explanation-4: -Use the input() function to get Python user input from keyboard. Press the enter key after entering the value. The program waits for user input indefinetly, there is no timeout. The input function returns a string, that you can store in a variable. More items
There is 1 question to complete.