
Mid-Term Review
Quiz
•
Computers
•
University
•
Hard
Zach Hopton
Used 3+ times
FREE Resource
14 questions
Show all answers
1.
MULTIPLE SELECT QUESTION
1 min • 1 pt
Which of the following would correctly match Swiss license plates, which had the format of two capital letters followed by any digit, 1–6 times? For example: ZH22106, AG1, SO200
^([A-Z][A-Z])?\d{1,6}$
^\w+[123456789]+$
^[A-Z][A-Z]\d{1,6}$
^[A-Z]{2}\d{1,6}$
2.
MULTIPLE SELECT QUESTION
1 min • 1 pt
I'm in a directory containing all the SAC yearbooks. How could I count the number of times that a German sentence is followed by a sentence in Italian?
ggrep -Ph "<s" *.txt|ggrep -P -A 1 "de"|ggrep -Pc "it"
ggrep -Ph "<s" *.txt|ggrep -P -o -A 1 "de"|ggrep -Pc "it"
ggrep -Ph "<s" *.txt|ggrep -P -A 1 "de"
ggrep -Ph "<s" *.txt|ggrep -P -B 1 "it"|ggrep -Pc "de"
3.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
Still in the SAC yearbooks directory: How many different token forms of the lemma “avoir” are in the corpus?
ggrep -Ph "avoir" *.txt|sort|uniq|wc
ggrep -Ph "\tavoir$" *.txt|sort|uniq|wc
ggrep -Ph "\tavoir$" *.txt|uniq|wc
ggrep -Ph "\tavoir$" *.txt|sort|uniq –c|sort -rn
4.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
In the SAC corpus, what are the three most common lemmas with the tag “NN”?
ggrep -Phi "\tNN\t" *.txt|ggrep -Po "\b[^\t]+$"|sort|uniq -c|sort -rn|head -n 3
ggrep -Phi "NN" *.txt|ggrep -Po "\b[^\t]+$"|sort|uniq -c|sort -rn|head -n 3
ggrep -Phi "\tNN\t" *.txt|ggrep -Po "\b[^\t]+$"|sort|uniq|wc
ggrep -Phi "\tNN\t" *.txt|ggrep -Po "\b[^\t]+$"|sort|uniq –c|head –n 3
5.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which of the following is a valid use of the range function in a for-loop?
for i in range(3, 7):
for i in range(7):
for i in range(5, 15, 2)
All of the above.
6.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
What is the output of the following code snippet?
0 1 2
1 2
0
0 1
7.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
Consider the following code. How many times is "Python" printed?
5
3
6
0
Create a free account and access millions of resources
Similar Resources on Wayground
10 questions
Wrażenia globlne w Linxie
Quiz
•
10th Grade - University
13 questions
MONGO
Quiz
•
University
10 questions
Que Tanto Sabes de Tecnologia
Quiz
•
KG - University
18 questions
Строка CMD
Quiz
•
University
10 questions
PYTHON PROGRAMMING
Quiz
•
University
10 questions
Part 2 - Command Line
Quiz
•
University
9 questions
Command Line
Quiz
•
12th Grade - Professi...
15 questions
NSCC-CODE TO COIN
Quiz
•
University
Popular Resources on Wayground
10 questions
Video Games
Quiz
•
6th - 12th Grade
20 questions
Brand Labels
Quiz
•
5th - 12th Grade
15 questions
Core 4 of Customer Service - Student Edition
Quiz
•
6th - 8th Grade
15 questions
What is Bullying?- Bullying Lesson Series 6-12
Lesson
•
11th Grade
25 questions
Multiplication Facts
Quiz
•
5th Grade
15 questions
Subtracting Integers
Quiz
•
7th Grade
22 questions
Adding Integers
Quiz
•
6th Grade
10 questions
Exploring Digital Citizenship Essentials
Interactive video
•
6th - 10th Grade
Discover more resources for Computers
20 questions
Definite and Indefinite Articles in Spanish (Avancemos)
Quiz
•
8th Grade - University
7 questions
Force and Motion
Interactive video
•
4th Grade - University
36 questions
Unit 5 Key Terms
Quiz
•
11th Grade - University
7 questions
Figurative Language: Idioms, Similes, and Metaphors
Interactive video
•
4th Grade - University
15 questions
Properties of Equality
Quiz
•
8th Grade - University
38 questions
WH - Unit 3 Exam Review*
Quiz
•
10th Grade - University
21 questions
Advise vs. Advice
Quiz
•
6th Grade - University
12 questions
Reading a ruler!
Quiz
•
9th Grade - University
