
Mid-Term Review
Quiz
•
Computers
•
University
•
Practice Problem
•
Hard
Zach Hopton
Used 3+ times
FREE Resource
Enhance your content in a minute
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
Access all questions and much more by creating a free account
Create resources
Host any resource
Get auto-graded reports

Continue with Google

Continue with Email

Continue with Classlink

Continue with Clever
or continue with

Microsoft
%20(1).png)
Apple
Others
Already have an account?
Similar Resources on Wayground
10 questions
Node.js
Quiz
•
University
10 questions
PHP Introduction - Assignment 1
Quiz
•
University
10 questions
margaret hamilton
Quiz
•
University
18 questions
Fiber Optic
Quiz
•
University
10 questions
Software Testing
Quiz
•
University
10 questions
C++ Array Quiz
Quiz
•
University
15 questions
Computer Applications in Banking and Finance Quiz
Quiz
•
University
15 questions
Computer Science Quiz
Quiz
•
University
Popular Resources on Wayground
5 questions
This is not a...winter edition (Drawing game)
Quiz
•
1st - 5th Grade
25 questions
Multiplication Facts
Quiz
•
5th Grade
10 questions
Identify Iconic Christmas Movie Scenes
Interactive video
•
6th - 10th Grade
20 questions
Christmas Trivia
Quiz
•
6th - 8th Grade
18 questions
Kids Christmas Trivia
Quiz
•
KG - 5th Grade
11 questions
How well do you know your Christmas Characters?
Lesson
•
3rd Grade
14 questions
Christmas Trivia
Quiz
•
5th Grade
20 questions
How the Grinch Stole Christmas
Quiz
•
5th Grade
Discover more resources for Computers
26 questions
Christmas Movie Trivia
Lesson
•
8th Grade - Professio...
20 questions
christmas songs
Quiz
•
KG - University
20 questions
Holiday Trivia
Quiz
•
9th Grade - University
15 questions
Holiday Movies
Quiz
•
University
14 questions
Christmas Trivia
Quiz
•
3rd Grade - University
20 questions
Christmas Trivia
Quiz
•
University
8 questions
5th, Unit 4, Lesson 8
Lesson
•
KG - Professional Dev...
20 questions
Disney Trivia
Quiz
•
University
