Wh-Questions
Preguntas con palabras interrogativas
En programación, cuando haces un `console.log()` genérico, solo ves el valor. Pero cuando haces un query específico con parámetros — `SELECT name WHERE age > 25 AND city = 'Madrid'` — obtienes información filtrada. Las Wh-Questions son queries con parámetros: buscan información ESPECÍFICA, no solo un sí/no.
Las Wh- words son como los parámetros de una función: `What` busca la identidad, `Where` busca la ubicación, `When` busca el tiempo, `Who` busca la persona, `Why` busca la razón, `How` busca el método o manera. Cada una 'pregunta' por un tipo de dato diferente.
La estructura es: `WH-WORD + DID + SUJETO + VERBO (base) + ?`. El 'did' actúa como el dispatcher que ejecuta la query, y la Wh- word es el filtro que especifica qué información quieres devolver. Es como una función con un parámetro requerido: no puedes hacer la query sin especificar qué buscas.
WH- + DID + SUJETO + VERBO (base) + COMPLEMENTO + ? What + did + you + eat + for lunch + ? Where + did + she + go + yesterday + ? When + did + they + arrive + ? Who + did + he + meet + at the party + ? Why + did + you + leave + early + ? How + did + she + learn + English + ?
Debugging lab
Corrige o completa la línea. 7 ejercicios por tema.
- 2.6.7.1
What did you did for work?
- 2.6.7.2
Where she went on vacation?
- 2.6.7.3
When did they arrived?
- 2.6.7.4
Why you didn't come to class?
- 2.6.7.5
How did she learned to cook?
- 2.6.7.6
Who did met you at the airport?
- 2.6.7.7
What time did he went to bed?
- 2.6.7.8
How many money did you spend?
- 2.6.7.9
Which book did you read yesterday?
- 2.6.7.10
Who did you give the book?
- 2.6.7.11
Why she was late yesterday?