Información

Fecha de entrega Sin fecha de envío
Tiempo límite de envío Sin límite de envío

Inicia sesión

A Small Quiz about Program Query Languages


Pregunta 1: PQL Purpose

What is the primary purpose of any Program Query Language (PQL)? (Multiple answers possible.)

Pregunta 2: PQL Kind

Which kind of program query language will we use in this experiment?

Pregunta 3: Declarative Language

Define briefly, in your own words, what it means for a computer language to be declarative.

Pregunta 4: Declarative PQL

Which of the following program query languages or tools allow you to write queries in a declarative way? (Multiple answers possible.)

Pregunta 5: Static vs. Dynamic PQL

Explain in your own words the difference between a static program query language and a dynamic program query language.

Pregunta 6: Database Representation

Which program query language is an SQL-like language that reasons over a program representation stored as tables in a database? (Multiple answers possible.)

Pregunta 7: RegEx Example

Which line would the following regex match?

'\".*\"\s*\+str\(\w+\)'

(Multiple answers possible.)

Pregunta 8: AST Traversal

When using Python's AST module to visit the nodes in a program AST, how does the 'NodeVisitor' class handle traversal of the AST?

Pregunta 9: Visitor Design Pattern

Briefly explain, in your own words, what the Visitor design pattern is and how it works.

Pregunta 10: Pyttern Example

What would the pattern def ?(?*): match in Pyttern?