you would be correct for Q6 but the strings in those brackets are not the strings we use for the problem every time. they are just what is printed to the console to ask for user input, not the actual strings that need to be evaluated. In Q7 it asks for integers so you can't answer that question with those strings
when the program is run for Question 6 with just some example strings:
Console:
--------------------
Give me a string: "hello"
Give me another string: "12345"
Give me a third string: "goodb"
Yes
Question 7 with some example integers:
-------------------
Give me a number: 9
Give me another number: 8
Give me another number: 8
No
The answer of question 6 is No, question 7 is No