MCQ IN COMPUTER SCIENCE & ENGINEERING

COMPUTER SCIENCE AND ENGINEERING

ALGORITHMS

Question [CLICK ON ANY CHOICE TO KNOW THE RIGHT ANSWER]
What is the variable name in this Pseudocode?STARTPRINT “Whats your name?"READ agE
A
age
B
Age
C
READ
D
agE
Explanation: 

Detailed explanation-1: -We declare another variable called age and make sure it is stored as an integer (a whole number)

Detailed explanation-2: -You can simply use python f-strings. name = input(’Enter your name ‘) age = input (’Enter your age ‘) print(f’My name is name. Im´ age years old.

Detailed explanation-3: -name = input() age = int(input()) print("The name of the person is", name, end=’ ‘) print("and the age is", age, end=’. ‘)

Detailed explanation-4: -println("Enter your name :"); String st=s. nextLine(); System. out. println("Enter your age :"); int age=s.

There is 1 question to complete.