SlideShare a Scribd company logo
1 of 11
Download to read offline
CaseWare International Inc.
Data Scientist Exam
Time Limit: 1 hour 30 minutes
Name: Date:
This test will be used to evaluate your design skills and logical thought processes.
Although important in our interview process, it is only used as part of the
evaluation. Do not worry if you do not finish all of the questions, just do the best
that you can.
Use whichever programming language you are most comfortable with. Feel free
to use pseudocode if you want.
You should attempt to answer all questions.
Q) Write a function that takes three arrays of integers (a1, a2 and a3) and their
common size (a_size) as parameters and returns the number of values that occur
in all three arrays. You are told that each array does not contain any duplicates.
Also, the arrays are sorted in ascending order. For example, a valid input is
a1={1,2,3,4}, a2={2,3,4,5}, a3={3,5,8,9} and a_size=4. In this case, the
function returns 1 since only one value is common to all three arrays (i.e. the
value 3). The solution should iterate over the arrays and not use built-in methods
of any language to find the intersection of arrays.
Answer:
Q) Write a function that takes a string containing a sentence and reverses the
words in the sentence. For example, the sentence “Lord of the Rings” becomes
“Rings the of Lord”. You may not use high level language constructs such as split,
join, or reverse. Assume you are using a lower level language such as C.
Answer:
Q) if (var1 == true)
{
var2 = true;
}
else
{
var2 = false;
}
Provide a one line piece of code that is functionally equivalent to the above code
block.
Answer:
Q) The FizzBuzz test. Write code to print the numbers from 1 to 100, other than
numbers that are a multiple of 3 or 5. Instead of numbers that are a multiple of 3, print
Fizz. For numbers that are a multiple of 5, print Buzz. For numbers that are a multiple
of both 3 and 5, print FizzBuzz.
Answer:
Q) Imagine you have four cards such that each side of each card has either an “A”,
“B”, “2” or “3”. The four cards are arranged so you can see one side of each card. I
propose a theory that where a card has a vowel on one side, the other side will have an
even number. Which cards do we need to turn over in order to test my theory?
Explain?
Q) Given a requirement to write a method to add 2 integers, what are some
possibilities as to how you would handle the fact that one or both numbers may be or
may be close to int_max?
Q) Given 2 rectangles in 2-dimentional space, determine if they overlap. For each
rectangle, you’re given: x1, x2, y1, y2, the x position of the left line, x position of the
right line, y position of the top line, and y positions of the bottom line.
Patterns
Find the value of “x” in each of the following patterns:
1, 4, 27, 256, x ________
1,8,27,64,125,216,x ________
-1,0,3,8,15,24,35,48,63,80,x ________
60, 30, 20, 15, 12,x ________
2, 4,12, 48, 240, 1440,x ________
17,19,23,29,31,37,x ________
4,6,10,14,22,26,x ________
32,36,9,12,4,6,x ________
13,6,10,9,7,12,4,15,x ________
25,32,37,47,58,71,79,x ________
Machine Learning Quiz
You may answer the questions with one or two sentences each.
Q) Explain the difference between supervised, unsupervised, and
semisupervised learning.
Q) What is the difference between classification, regression, and
recommendation problems?
Q) What types of predictors are in common usage today (ex k-NN, SVM, etc. -
- please name some others)
Q) What is the purpose of regularization?
Q) What is the purpose of normalizing data?
Q) What methods may be used to create ensembles?
Q) What techniques may be used for feature selection?
Q) Why is feature selection important?
Q) Specifically, what issues can be caused by redundant features?
Q) What measures may be used to evaluate classification models?
Q) WIth SVM’s, what are the support vectors?
Q) What techniques may be used for hyper-parameter tuning?

More Related Content

What's hot

Lesson 4 b special matrix multiplication
Lesson 4 b  special matrix multiplicationLesson 4 b  special matrix multiplication
Lesson 4 b special matrix multiplicationJonathan Templin
 
Real Numbers
Real NumbersReal Numbers
Real Numbersdeathful
 
8 maths-ncert-chapter-1
8 maths-ncert-chapter-18 maths-ncert-chapter-1
8 maths-ncert-chapter-1akstudy1024
 
2.1 use inductive reasoning
2.1 use inductive reasoning2.1 use inductive reasoning
2.1 use inductive reasoningdetwilerr
 
9.4 part 2.ppt worked
9.4   part 2.ppt worked9.4   part 2.ppt worked
9.4 part 2.ppt workedJonna Ramsey
 
Chapter-1 Rational numbers Class 8th
Chapter-1 Rational numbers Class 8th Chapter-1 Rational numbers Class 8th
Chapter-1 Rational numbers Class 8th Abhishek Mishra
 
9.4 part 1 and 2 combined worked
9.4   part 1 and 2 combined worked9.4   part 1 and 2 combined worked
9.4 part 1 and 2 combined workedJonna Ramsey
 
Chapter 1 rational numbers
Chapter 1 rational numbersChapter 1 rational numbers
Chapter 1 rational numbersGIREESHA5
 
Lecture synthetic division
Lecture synthetic divisionLecture synthetic division
Lecture synthetic divisionHazel Joy Chong
 
Lesson 19
Lesson 19Lesson 19
Lesson 19NRWEG3
 
Lesson 2b - scalar multiplication
Lesson 2b - scalar multiplicationLesson 2b - scalar multiplication
Lesson 2b - scalar multiplicationJonathan Templin
 
Solving of system of linear inequalities
Solving of system of linear inequalitiesSolving of system of linear inequalities
Solving of system of linear inequalitiesRicie Anne Palisoc
 
The real Number system
The real Number systemThe real Number system
The real Number systemRawabi Alz
 
9.4 part 1.ppt worked
9.4   part 1.ppt worked9.4   part 1.ppt worked
9.4 part 1.ppt workedJonna Ramsey
 
Adding and Subtracting Polynomials - Math 7 Q2W4 LC1
Adding and Subtracting Polynomials - Math 7 Q2W4 LC1Adding and Subtracting Polynomials - Math 7 Q2W4 LC1
Adding and Subtracting Polynomials - Math 7 Q2W4 LC1Carlo Luna
 
Synthetic Division Notes
Synthetic Division NotesSynthetic Division Notes
Synthetic Division Notescmorgancavo
 

What's hot (20)

Lesson 4 b special matrix multiplication
Lesson 4 b  special matrix multiplicationLesson 4 b  special matrix multiplication
Lesson 4 b special matrix multiplication
 
Real Numbers
Real NumbersReal Numbers
Real Numbers
 
Ch01 se
Ch01 seCh01 se
Ch01 se
 
8 maths-ncert-chapter-1
8 maths-ncert-chapter-18 maths-ncert-chapter-1
8 maths-ncert-chapter-1
 
Matrix equations and inverses honors
Matrix equations and inverses honorsMatrix equations and inverses honors
Matrix equations and inverses honors
 
2.1 use inductive reasoning
2.1 use inductive reasoning2.1 use inductive reasoning
2.1 use inductive reasoning
 
9.4 part 2.ppt worked
9.4   part 2.ppt worked9.4   part 2.ppt worked
9.4 part 2.ppt worked
 
Chapter-1 Rational numbers Class 8th
Chapter-1 Rational numbers Class 8th Chapter-1 Rational numbers Class 8th
Chapter-1 Rational numbers Class 8th
 
Matrices - Discrete Structures
Matrices - Discrete StructuresMatrices - Discrete Structures
Matrices - Discrete Structures
 
9.4 part 1 and 2 combined worked
9.4   part 1 and 2 combined worked9.4   part 1 and 2 combined worked
9.4 part 1 and 2 combined worked
 
Chapter 1 rational numbers
Chapter 1 rational numbersChapter 1 rational numbers
Chapter 1 rational numbers
 
Lecture synthetic division
Lecture synthetic divisionLecture synthetic division
Lecture synthetic division
 
Lesson 19
Lesson 19Lesson 19
Lesson 19
 
Lesson 2b - scalar multiplication
Lesson 2b - scalar multiplicationLesson 2b - scalar multiplication
Lesson 2b - scalar multiplication
 
Solving of system of linear inequalities
Solving of system of linear inequalitiesSolving of system of linear inequalities
Solving of system of linear inequalities
 
Math Chapter 1 - Integers
Math Chapter 1 - IntegersMath Chapter 1 - Integers
Math Chapter 1 - Integers
 
The real Number system
The real Number systemThe real Number system
The real Number system
 
9.4 part 1.ppt worked
9.4   part 1.ppt worked9.4   part 1.ppt worked
9.4 part 1.ppt worked
 
Adding and Subtracting Polynomials - Math 7 Q2W4 LC1
Adding and Subtracting Polynomials - Math 7 Q2W4 LC1Adding and Subtracting Polynomials - Math 7 Q2W4 LC1
Adding and Subtracting Polynomials - Math 7 Q2W4 LC1
 
Synthetic Division Notes
Synthetic Division NotesSynthetic Division Notes
Synthetic Division Notes
 

Similar to CaseWare Data Scientist test.

Maths notes for 4038 and 4016 paper
Maths notes for 4038 and 4016 paperMaths notes for 4038 and 4016 paper
Maths notes for 4038 and 4016 paperFabian Hkb
 
Introduction to Matrices
Introduction to MatricesIntroduction to Matrices
Introduction to Matricesholmsted
 
New approaches in linear inequalities
New approaches in linear inequalitiesNew approaches in linear inequalities
New approaches in linear inequalitiesTarun Gehlot
 
Genetic operators
Genetic operatorsGenetic operators
Genetic operatorsDEEPIKA T
 
Exponents and Exponential Notation.pptx
Exponents and Exponential Notation.pptxExponents and Exponential Notation.pptx
Exponents and Exponential Notation.pptxMaximinoEduardoSibay
 
Precalculus 1 chapter 1
Precalculus 1 chapter 1Precalculus 1 chapter 1
Precalculus 1 chapter 1oreves
 
Geometry unit 7.1
Geometry unit 7.1Geometry unit 7.1
Geometry unit 7.1Mark Ryder
 
Math 235 - Summer 2015Homework 2Due Monday June 8 in cla.docx
Math 235 - Summer 2015Homework 2Due Monday June 8 in cla.docxMath 235 - Summer 2015Homework 2Due Monday June 8 in cla.docx
Math 235 - Summer 2015Homework 2Due Monday June 8 in cla.docxandreecapon
 
Ch 1 review stations (Classwork)
Ch 1 review stations (Classwork)Ch 1 review stations (Classwork)
Ch 1 review stations (Classwork)leblance
 
3D Math Without Presenter Notes
3D Math Without Presenter Notes3D Math Without Presenter Notes
3D Math Without Presenter NotesJanie Clayton
 
Nbhm m. a. and m.sc. scholarship test september 20, 2014 with answer key
Nbhm m. a. and m.sc. scholarship test september 20, 2014 with answer keyNbhm m. a. and m.sc. scholarship test september 20, 2014 with answer key
Nbhm m. a. and m.sc. scholarship test september 20, 2014 with answer keyMD Kutubuddin Sardar
 
Nbhm m. a. and m.sc. scholarship test 2008
Nbhm m. a. and m.sc. scholarship test 2008Nbhm m. a. and m.sc. scholarship test 2008
Nbhm m. a. and m.sc. scholarship test 2008MD Kutubuddin Sardar
 
Nbhm m. a. and m.sc. scholarship test 2010
Nbhm m. a. and m.sc. scholarship test 2010Nbhm m. a. and m.sc. scholarship test 2010
Nbhm m. a. and m.sc. scholarship test 2010MD Kutubuddin Sardar
 
GCSE-Surds.pptx
GCSE-Surds.pptxGCSE-Surds.pptx
GCSE-Surds.pptxBimboBbsax
 

Similar to CaseWare Data Scientist test. (20)

Maths notes for 4038 and 4016 paper
Maths notes for 4038 and 4016 paperMaths notes for 4038 and 4016 paper
Maths notes for 4038 and 4016 paper
 
Introduction to Matrices
Introduction to MatricesIntroduction to Matrices
Introduction to Matrices
 
New approaches in linear inequalities
New approaches in linear inequalitiesNew approaches in linear inequalities
New approaches in linear inequalities
 
Mit6 006 f11_quiz1
Mit6 006 f11_quiz1Mit6 006 f11_quiz1
Mit6 006 f11_quiz1
 
Genetic operators
Genetic operatorsGenetic operators
Genetic operators
 
algo1
algo1algo1
algo1
 
Exponents and Exponential Notation.pptx
Exponents and Exponential Notation.pptxExponents and Exponential Notation.pptx
Exponents and Exponential Notation.pptx
 
Precalculus 1 chapter 1
Precalculus 1 chapter 1Precalculus 1 chapter 1
Precalculus 1 chapter 1
 
Computer Science Exam Help
Computer Science Exam Help Computer Science Exam Help
Computer Science Exam Help
 
Lec 06
Lec 06Lec 06
Lec 06
 
Geometry unit 7.1
Geometry unit 7.1Geometry unit 7.1
Geometry unit 7.1
 
Math 235 - Summer 2015Homework 2Due Monday June 8 in cla.docx
Math 235 - Summer 2015Homework 2Due Monday June 8 in cla.docxMath 235 - Summer 2015Homework 2Due Monday June 8 in cla.docx
Math 235 - Summer 2015Homework 2Due Monday June 8 in cla.docx
 
Ch 1 review stations (Classwork)
Ch 1 review stations (Classwork)Ch 1 review stations (Classwork)
Ch 1 review stations (Classwork)
 
R for Statistical Computing
R for Statistical ComputingR for Statistical Computing
R for Statistical Computing
 
3D Math Without Presenter Notes
3D Math Without Presenter Notes3D Math Without Presenter Notes
3D Math Without Presenter Notes
 
Programming Exam Help
Programming Exam Help Programming Exam Help
Programming Exam Help
 
Nbhm m. a. and m.sc. scholarship test september 20, 2014 with answer key
Nbhm m. a. and m.sc. scholarship test september 20, 2014 with answer keyNbhm m. a. and m.sc. scholarship test september 20, 2014 with answer key
Nbhm m. a. and m.sc. scholarship test september 20, 2014 with answer key
 
Nbhm m. a. and m.sc. scholarship test 2008
Nbhm m. a. and m.sc. scholarship test 2008Nbhm m. a. and m.sc. scholarship test 2008
Nbhm m. a. and m.sc. scholarship test 2008
 
Nbhm m. a. and m.sc. scholarship test 2010
Nbhm m. a. and m.sc. scholarship test 2010Nbhm m. a. and m.sc. scholarship test 2010
Nbhm m. a. and m.sc. scholarship test 2010
 
GCSE-Surds.pptx
GCSE-Surds.pptxGCSE-Surds.pptx
GCSE-Surds.pptx
 

Recently uploaded

Keeping your build tool updated in a multi repository world
Keeping your build tool updated in a multi repository worldKeeping your build tool updated in a multi repository world
Keeping your build tool updated in a multi repository worldRoberto Pérez Alcolea
 
Machine Learning Software Engineering Patterns and Their Engineering
Machine Learning Software Engineering Patterns and Their EngineeringMachine Learning Software Engineering Patterns and Their Engineering
Machine Learning Software Engineering Patterns and Their EngineeringHironori Washizaki
 
VictoriaMetrics Q1 Meet Up '24 - Community & News Update
VictoriaMetrics Q1 Meet Up '24 - Community & News UpdateVictoriaMetrics Q1 Meet Up '24 - Community & News Update
VictoriaMetrics Q1 Meet Up '24 - Community & News UpdateVictoriaMetrics
 
SensoDat: Simulation-based Sensor Dataset of Self-driving Cars
SensoDat: Simulation-based Sensor Dataset of Self-driving CarsSensoDat: Simulation-based Sensor Dataset of Self-driving Cars
SensoDat: Simulation-based Sensor Dataset of Self-driving CarsChristian Birchler
 
Introduction to Firebase Workshop Slides
Introduction to Firebase Workshop SlidesIntroduction to Firebase Workshop Slides
Introduction to Firebase Workshop Slidesvaideheekore1
 
Salesforce Implementation Services PPT By ABSYZ
Salesforce Implementation Services PPT By ABSYZSalesforce Implementation Services PPT By ABSYZ
Salesforce Implementation Services PPT By ABSYZABSYZ Inc
 
Post Quantum Cryptography – The Impact on Identity
Post Quantum Cryptography – The Impact on IdentityPost Quantum Cryptography – The Impact on Identity
Post Quantum Cryptography – The Impact on Identityteam-WIBU
 
Tech Tuesday Slides - Introduction to Project Management with OnePlan's Work ...
Tech Tuesday Slides - Introduction to Project Management with OnePlan's Work ...Tech Tuesday Slides - Introduction to Project Management with OnePlan's Work ...
Tech Tuesday Slides - Introduction to Project Management with OnePlan's Work ...OnePlan Solutions
 
Effectively Troubleshoot 9 Types of OutOfMemoryError
Effectively Troubleshoot 9 Types of OutOfMemoryErrorEffectively Troubleshoot 9 Types of OutOfMemoryError
Effectively Troubleshoot 9 Types of OutOfMemoryErrorTier1 app
 
Strategies for using alternative queries to mitigate zero results
Strategies for using alternative queries to mitigate zero resultsStrategies for using alternative queries to mitigate zero results
Strategies for using alternative queries to mitigate zero resultsJean Silva
 
What’s New in VictoriaMetrics: Q1 2024 Updates
What’s New in VictoriaMetrics: Q1 2024 UpdatesWhat’s New in VictoriaMetrics: Q1 2024 Updates
What’s New in VictoriaMetrics: Q1 2024 UpdatesVictoriaMetrics
 
Zer0con 2024 final share short version.pdf
Zer0con 2024 final share short version.pdfZer0con 2024 final share short version.pdf
Zer0con 2024 final share short version.pdfmaor17
 
Amazon Bedrock in Action - presentation of the Bedrock's capabilities
Amazon Bedrock in Action - presentation of the Bedrock's capabilitiesAmazon Bedrock in Action - presentation of the Bedrock's capabilities
Amazon Bedrock in Action - presentation of the Bedrock's capabilitiesKrzysztofKkol1
 
Best Angular 17 Classroom & Online training - Naresh IT
Best Angular 17 Classroom & Online training - Naresh ITBest Angular 17 Classroom & Online training - Naresh IT
Best Angular 17 Classroom & Online training - Naresh ITmanoharjgpsolutions
 
Simplifying Microservices & Apps - The art of effortless development - Meetup...
Simplifying Microservices & Apps - The art of effortless development - Meetup...Simplifying Microservices & Apps - The art of effortless development - Meetup...
Simplifying Microservices & Apps - The art of effortless development - Meetup...Rob Geurden
 
UI5ers live - Custom Controls wrapping 3rd-party libs.pptx
UI5ers live - Custom Controls wrapping 3rd-party libs.pptxUI5ers live - Custom Controls wrapping 3rd-party libs.pptx
UI5ers live - Custom Controls wrapping 3rd-party libs.pptxAndreas Kunz
 
Ronisha Informatics Private Limited Catalogue
Ronisha Informatics Private Limited CatalogueRonisha Informatics Private Limited Catalogue
Ronisha Informatics Private Limited Catalogueitservices996
 
Patterns for automating API delivery. API conference
Patterns for automating API delivery. API conferencePatterns for automating API delivery. API conference
Patterns for automating API delivery. API conferencessuser9e7c64
 
The Role of IoT and Sensor Technology in Cargo Cloud Solutions.pptx
The Role of IoT and Sensor Technology in Cargo Cloud Solutions.pptxThe Role of IoT and Sensor Technology in Cargo Cloud Solutions.pptx
The Role of IoT and Sensor Technology in Cargo Cloud Solutions.pptxRTS corp
 
eSoftTools IMAP Backup Software and migration tools
eSoftTools IMAP Backup Software and migration toolseSoftTools IMAP Backup Software and migration tools
eSoftTools IMAP Backup Software and migration toolsosttopstonverter
 

Recently uploaded (20)

Keeping your build tool updated in a multi repository world
Keeping your build tool updated in a multi repository worldKeeping your build tool updated in a multi repository world
Keeping your build tool updated in a multi repository world
 
Machine Learning Software Engineering Patterns and Their Engineering
Machine Learning Software Engineering Patterns and Their EngineeringMachine Learning Software Engineering Patterns and Their Engineering
Machine Learning Software Engineering Patterns and Their Engineering
 
VictoriaMetrics Q1 Meet Up '24 - Community & News Update
VictoriaMetrics Q1 Meet Up '24 - Community & News UpdateVictoriaMetrics Q1 Meet Up '24 - Community & News Update
VictoriaMetrics Q1 Meet Up '24 - Community & News Update
 
SensoDat: Simulation-based Sensor Dataset of Self-driving Cars
SensoDat: Simulation-based Sensor Dataset of Self-driving CarsSensoDat: Simulation-based Sensor Dataset of Self-driving Cars
SensoDat: Simulation-based Sensor Dataset of Self-driving Cars
 
Introduction to Firebase Workshop Slides
Introduction to Firebase Workshop SlidesIntroduction to Firebase Workshop Slides
Introduction to Firebase Workshop Slides
 
Salesforce Implementation Services PPT By ABSYZ
Salesforce Implementation Services PPT By ABSYZSalesforce Implementation Services PPT By ABSYZ
Salesforce Implementation Services PPT By ABSYZ
 
Post Quantum Cryptography – The Impact on Identity
Post Quantum Cryptography – The Impact on IdentityPost Quantum Cryptography – The Impact on Identity
Post Quantum Cryptography – The Impact on Identity
 
Tech Tuesday Slides - Introduction to Project Management with OnePlan's Work ...
Tech Tuesday Slides - Introduction to Project Management with OnePlan's Work ...Tech Tuesday Slides - Introduction to Project Management with OnePlan's Work ...
Tech Tuesday Slides - Introduction to Project Management with OnePlan's Work ...
 
Effectively Troubleshoot 9 Types of OutOfMemoryError
Effectively Troubleshoot 9 Types of OutOfMemoryErrorEffectively Troubleshoot 9 Types of OutOfMemoryError
Effectively Troubleshoot 9 Types of OutOfMemoryError
 
Strategies for using alternative queries to mitigate zero results
Strategies for using alternative queries to mitigate zero resultsStrategies for using alternative queries to mitigate zero results
Strategies for using alternative queries to mitigate zero results
 
What’s New in VictoriaMetrics: Q1 2024 Updates
What’s New in VictoriaMetrics: Q1 2024 UpdatesWhat’s New in VictoriaMetrics: Q1 2024 Updates
What’s New in VictoriaMetrics: Q1 2024 Updates
 
Zer0con 2024 final share short version.pdf
Zer0con 2024 final share short version.pdfZer0con 2024 final share short version.pdf
Zer0con 2024 final share short version.pdf
 
Amazon Bedrock in Action - presentation of the Bedrock's capabilities
Amazon Bedrock in Action - presentation of the Bedrock's capabilitiesAmazon Bedrock in Action - presentation of the Bedrock's capabilities
Amazon Bedrock in Action - presentation of the Bedrock's capabilities
 
Best Angular 17 Classroom & Online training - Naresh IT
Best Angular 17 Classroom & Online training - Naresh ITBest Angular 17 Classroom & Online training - Naresh IT
Best Angular 17 Classroom & Online training - Naresh IT
 
Simplifying Microservices & Apps - The art of effortless development - Meetup...
Simplifying Microservices & Apps - The art of effortless development - Meetup...Simplifying Microservices & Apps - The art of effortless development - Meetup...
Simplifying Microservices & Apps - The art of effortless development - Meetup...
 
UI5ers live - Custom Controls wrapping 3rd-party libs.pptx
UI5ers live - Custom Controls wrapping 3rd-party libs.pptxUI5ers live - Custom Controls wrapping 3rd-party libs.pptx
UI5ers live - Custom Controls wrapping 3rd-party libs.pptx
 
Ronisha Informatics Private Limited Catalogue
Ronisha Informatics Private Limited CatalogueRonisha Informatics Private Limited Catalogue
Ronisha Informatics Private Limited Catalogue
 
Patterns for automating API delivery. API conference
Patterns for automating API delivery. API conferencePatterns for automating API delivery. API conference
Patterns for automating API delivery. API conference
 
The Role of IoT and Sensor Technology in Cargo Cloud Solutions.pptx
The Role of IoT and Sensor Technology in Cargo Cloud Solutions.pptxThe Role of IoT and Sensor Technology in Cargo Cloud Solutions.pptx
The Role of IoT and Sensor Technology in Cargo Cloud Solutions.pptx
 
eSoftTools IMAP Backup Software and migration tools
eSoftTools IMAP Backup Software and migration toolseSoftTools IMAP Backup Software and migration tools
eSoftTools IMAP Backup Software and migration tools
 

CaseWare Data Scientist test.

  • 1. CaseWare International Inc. Data Scientist Exam Time Limit: 1 hour 30 minutes Name: Date: This test will be used to evaluate your design skills and logical thought processes. Although important in our interview process, it is only used as part of the evaluation. Do not worry if you do not finish all of the questions, just do the best that you can. Use whichever programming language you are most comfortable with. Feel free to use pseudocode if you want. You should attempt to answer all questions.
  • 2. Q) Write a function that takes three arrays of integers (a1, a2 and a3) and their common size (a_size) as parameters and returns the number of values that occur in all three arrays. You are told that each array does not contain any duplicates. Also, the arrays are sorted in ascending order. For example, a valid input is a1={1,2,3,4}, a2={2,3,4,5}, a3={3,5,8,9} and a_size=4. In this case, the function returns 1 since only one value is common to all three arrays (i.e. the value 3). The solution should iterate over the arrays and not use built-in methods of any language to find the intersection of arrays. Answer:
  • 3. Q) Write a function that takes a string containing a sentence and reverses the words in the sentence. For example, the sentence “Lord of the Rings” becomes “Rings the of Lord”. You may not use high level language constructs such as split, join, or reverse. Assume you are using a lower level language such as C. Answer:
  • 4. Q) if (var1 == true) { var2 = true; } else { var2 = false; } Provide a one line piece of code that is functionally equivalent to the above code block. Answer:
  • 5. Q) The FizzBuzz test. Write code to print the numbers from 1 to 100, other than numbers that are a multiple of 3 or 5. Instead of numbers that are a multiple of 3, print Fizz. For numbers that are a multiple of 5, print Buzz. For numbers that are a multiple of both 3 and 5, print FizzBuzz. Answer:
  • 6. Q) Imagine you have four cards such that each side of each card has either an “A”, “B”, “2” or “3”. The four cards are arranged so you can see one side of each card. I propose a theory that where a card has a vowel on one side, the other side will have an even number. Which cards do we need to turn over in order to test my theory? Explain?
  • 7. Q) Given a requirement to write a method to add 2 integers, what are some possibilities as to how you would handle the fact that one or both numbers may be or may be close to int_max?
  • 8. Q) Given 2 rectangles in 2-dimentional space, determine if they overlap. For each rectangle, you’re given: x1, x2, y1, y2, the x position of the left line, x position of the right line, y position of the top line, and y positions of the bottom line.
  • 9. Patterns Find the value of “x” in each of the following patterns: 1, 4, 27, 256, x ________ 1,8,27,64,125,216,x ________ -1,0,3,8,15,24,35,48,63,80,x ________ 60, 30, 20, 15, 12,x ________ 2, 4,12, 48, 240, 1440,x ________ 17,19,23,29,31,37,x ________ 4,6,10,14,22,26,x ________ 32,36,9,12,4,6,x ________ 13,6,10,9,7,12,4,15,x ________ 25,32,37,47,58,71,79,x ________
  • 10. Machine Learning Quiz You may answer the questions with one or two sentences each. Q) Explain the difference between supervised, unsupervised, and semisupervised learning. Q) What is the difference between classification, regression, and recommendation problems? Q) What types of predictors are in common usage today (ex k-NN, SVM, etc. - - please name some others) Q) What is the purpose of regularization? Q) What is the purpose of normalizing data? Q) What methods may be used to create ensembles?
  • 11. Q) What techniques may be used for feature selection? Q) Why is feature selection important? Q) Specifically, what issues can be caused by redundant features? Q) What measures may be used to evaluate classification models? Q) WIth SVM’s, what are the support vectors? Q) What techniques may be used for hyper-parameter tuning?