Semgrep Basics

Which of the following is a pattern operator that can be used to match one of two patterns?
Metavariable
Pattern either
If .. Else operator
None of the above
Which of the following is an example of a pattern either rule?
Pattern: "foo"
Pattern: "bar"
Pattern: "foo or bar"
None of the above
Which of the following is a Semgrep operator that can be used to match zero or more of the same item?
Pattern-inside
Ellipsis operator
pattern-not-inside
Pattern either
"metadata" block is required in every Semgrep rule.
True
False
Which field in a Semgrep rule defines the pattern to be matched in the code?
Find
Match
Rule
Pattern
{"name":"Semgrep Basics", "url":"https://www.quiz-maker.com/QPREVIEW","txt":"Which of the following is a pattern operator that can be used to match one of two patterns?, Which of the following is an example of a pattern either rule?, Please enter your email address","img":"https://www.quiz-maker.com/3012/images/ogquiz.png"}
Make your own Survey
- it's free to start.