MCQ IN COMPUTER SCIENCE & ENGINEERING

COMPUTER SCIENCE AND ENGINEERING

ALGORITHMS

Question [CLICK ON ANY CHOICE TO KNOW THE RIGHT ANSWER]
INPUT age IF age < 18 OUTPUT you can’t come in SWallow in
A
The code above checks to see when your birthday is
B
The code above checks to see if you’re old enough to enter
C
The code above checks to see if your birthday is coming up
D
The code above checks to see if you’re male or female
Explanation: 

Detailed explanation-1: -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-2: -name = input() age = int(input()) print("The name of the person is", name, end=’ ‘) print("and the age is", age, end=’. ‘)

There is 1 question to complete.