From 3af038bf7be0a906bece4c910d7635042c73cda9 Mon Sep 17 00:00:00 2001 From: Evgenii Date: Fri, 22 Jan 2021 12:57:42 +0100 Subject: [PATCH] Formatting part 2 (#1023) * - formatting#2 --- README.md | 148 ++++++------ .../agile-methodologies-quiz.md | 6 +- bash/bash-quiz.md | 12 +- bash/{questionimages => images}/Q30/A.png | Bin bash/{questionimages => images}/Q30/B.png | Bin bash/{questionimages => images}/Q30/C.png | Bin bash/{questionimages => images}/Q30/D.png | Bin .../Q30/question.png | Bin c++/c++quiz.md | 96 ++++---- c-(programming-language)/c-quiz.md | 4 - dotnet-framework/dotnet-framework-quiz.md | 74 +++--- git/git-quiz.md | 4 +- google-analytics/google-analytics-quiz.md | 2 +- java/java-quiz.md | 28 +-- javascript/javascript-quiz.md | 3 +- jquery/jquery-quiz.md | 3 - json/{questionimages => images}/Q51/Q51.jpeg | Bin json/json-quiz.md | 54 ++--- machine-learning/machine-learning-quiz.md | 18 +- matlab/matlab-quiz.md | 223 ++++-------------- maven/maven-quiz.md | 2 +- microsoft-azure/microsoft-azure-quiz.md | 3 +- microsoft-excel/microsoft-excel-quiz.md | 39 --- microsoft-power-bi/microsoft-power-bi-quiz.md | 6 +- .../microsoft-power-point-quiz.md | 53 +---- microsoft-word/microsoft-word-quiz.md | 52 +--- mongodb/mongodb-quiz.md | 94 +------- mysql/mysql-quiz.md | 136 ++--------- nosql/nosql-quiz.md | 8 +- ...bjective-c_quiz.md => objective-c-quiz.md} | 38 +-- oop/object-oriented-programming-quiz.md | 8 +- php/php-quiz.md | 29 ++- python/python-quiz.md | 11 +- r/r-quiz.md | 1 - rest-api/rest-api-quiz.md | 3 +- t-sql/t-sql-quiz.md | 10 + wordpress/wordpress-quiz.md | 16 +- 37 files changed, 361 insertions(+), 823 deletions(-) rename bash/{questionimages => images}/Q30/A.png (100%) rename bash/{questionimages => images}/Q30/B.png (100%) rename bash/{questionimages => images}/Q30/C.png (100%) rename bash/{questionimages => images}/Q30/D.png (100%) rename bash/{questionimages => images}/Q30/question.png (100%) rename json/{questionimages => images}/Q51/Q51.jpeg (100%) rename objective-c/{objective-c_quiz.md => objective-c-quiz.md} (94%) diff --git a/README.md b/README.md index f2feec6a95..aeab511c32 100755 --- a/README.md +++ b/README.md @@ -1,8 +1,9 @@ -Linkedin Quiz Answers, Skill Assessments Test -------- +## Linkedin Quiz Answers, Skill Assessments Test -[![All Contributors](https://img.shields.io/badge/all_contributors-233-orange.svg?style=flat-square)](#contributors-) + +[![All Contributors](https://img.shields.io/badge/all_contributors-232-orange.svg?style=flat-square)](#contributors-) + > This repository is for those looking for answers to the LinkedIn assessment quiz questions or willing to help others by contributing to the tests. Or possibly you would like to create your first pull request and be added as a contributor. Whatever is your goal - you are always welcome here! @@ -10,85 +11,85 @@ Linkedin Quiz Answers, Skill Assessments Test :point_right: If you want to improve your skills on another test platform [**Pluralsight IQ Skill**](https://www.pluralsight.com/product/skill-iq) find **questions and answers** in **@Timo Körner** [repository](https://github.com/tik9/pluralsight-skill-test): -| Pluralsight IQ Skill quiz | Status | -| ------------------------------------------------------------------------------------------------------------------------ | ----------- | -|[Angular](https://github.com/tik9/pluralsight-skill-tests/blob/master/angular.md)| 18 answers| -|[AngularJs](https://github.com/tik9/pluralsight-skill-tests/blob/master/angularjs.md)|18 answers| -|[Aws Big Data](https://github.com/tik9/pluralsight-skill-tests/blob/master/aws_big_data.md)|18 answers| -|[Aws Machine Learning](https://github.com/tik9/pluralsight-skill-tests/blob/master/aws_machine_learning.md)|18 answers| -|[Building Websites](https://github.com/tik9/pluralsight-skill-tests/blob/master/building_websites.md)|18 answers| -|[Building Web Apps with React](https://github.com/tik9/pluralsight-skill-tests/blob/master/building_web_apps_with_react.md)|18 answers -|[Java](https://github.com/tik9/pluralsight-skill-tests/blob/master/java.md)|18 answers | -|[Javascript](https://github.com/tik9/pluralsight-skill-tests/blob/master/javascript.md)|18 answers| -|[Mysql](https://github.com/tik9/pluralsight-skill-tests/blob/master/mysql.md)|18 answers| -|[Powershell](https://github.com/tik9/pluralsight-skill-tests/blob/master/powershell.md)|18 answers| -|[Python Core](https://github.com/tik9/pluralsight-skill-tests/blob/master/python_core.md)|18 answers| -|[Python Data Analysis](https://github.com/tik9/pluralsight-skill-tests/blob/master/python_data_analysis.md)|18 answers| -|[Python applied Data Mining](https://github.com/tik9/pluralsight-skill-tests/blob/master/python_applied_data_mining.md)|18 answers| -|[Python Web Scraping](https://github.com/tik9/pluralsight-skill-tests/blob/master/python_web_scraping.md)|18 answers| -|[Python Exploratory Data Analysis](https://github.com/tik9/pluralsight-skill-tests/blob/master/python_exploratory_data_analysis.md)|18 answers| -|[Python Clean Data](https://github.com/tik9/pluralsight-skill-tests/blob/master/python_clean_data.md)|18 answers| -|[Python Data Visualization](https://github.com/tik9/pluralsight-skill-tests/blob/master/python_data_visualization.md)|18 answers| +| Pluralsight IQ Skill quiz | Status | +| ----------------------------------------------------------------------------------------------------------------------------------- | ---------- | +| [Angular](https://github.com/tik9/pluralsight-skill-tests/blob/master/angular.md) | 18 answers | +| [AngularJs](https://github.com/tik9/pluralsight-skill-tests/blob/master/angularjs.md) | 18 answers | +| [Aws Big Data](https://github.com/tik9/pluralsight-skill-tests/blob/master/aws_big_data.md) | 18 answers | +| [Aws Machine Learning](https://github.com/tik9/pluralsight-skill-tests/blob/master/aws_machine_learning.md) | 18 answers | +| [Building Websites](https://github.com/tik9/pluralsight-skill-tests/blob/master/building_websites.md) | 18 answers | +| [Building Web Apps with React](https://github.com/tik9/pluralsight-skill-tests/blob/master/building_web_apps_with_react.md) | 18 answers | +| [Java](https://github.com/tik9/pluralsight-skill-tests/blob/master/java.md) | 18 answers | +| [Javascript](https://github.com/tik9/pluralsight-skill-tests/blob/master/javascript.md) | 18 answers | +| [Mysql](https://github.com/tik9/pluralsight-skill-tests/blob/master/mysql.md) | 18 answers | +| [Powershell](https://github.com/tik9/pluralsight-skill-tests/blob/master/powershell.md) | 18 answers | +| [Python Core](https://github.com/tik9/pluralsight-skill-tests/blob/master/python_core.md) | 18 answers | +| [Python Data Analysis](https://github.com/tik9/pluralsight-skill-tests/blob/master/python_data_analysis.md) | 18 answers | +| [Python applied Data Mining](https://github.com/tik9/pluralsight-skill-tests/blob/master/python_applied_data_mining.md) | 18 answers | +| [Python Web Scraping](https://github.com/tik9/pluralsight-skill-tests/blob/master/python_web_scraping.md) | 18 answers | +| [Python Exploratory Data Analysis](https://github.com/tik9/pluralsight-skill-tests/blob/master/python_exploratory_data_analysis.md) | 18 answers | +| [Python Clean Data](https://github.com/tik9/pluralsight-skill-tests/blob/master/python_clean_data.md) | 18 answers | +| [Python Data Visualization](https://github.com/tik9/pluralsight-skill-tests/blob/master/python_data_visualization.md) | 18 answers | ### Table of Contents -| Linkedin-quiz-questions | | Status | -| ------------------------------------------------------------------------------------------------------------------|----------------------|------------------------------- | -| [Adobe-Illustrator](adobe-illustrator/adobe-illustrator-quiz.md) | => 51 questions | answers required | -| [Adobe-Photoshop](adobe-photoshop/adobe-photoshop-quiz.md) | => 36 questions | answers required | -| [Agile Methodologies](agile-methodologies/agile-methodologies-quiz.md) | => 76 questions | with answers | -| [Android](android/android-quiz.md) | => 44 questions | answers required | +| Linkedin-quiz-questions | | Status | +| ---------------------------------------------------------------------------- | --------------- | ------------------------------ | +| [Adobe-Illustrator](adobe-illustrator/adobe-illustrator-quiz.md) | => 51 questions | answers required | +| [Adobe-Photoshop](adobe-photoshop/adobe-photoshop-quiz.md) | => 36 questions | answers required | +| [Agile Methodologies](agile-methodologies/agile-methodologies-quiz.md) | => 76 questions | with answers | +| [Android](android/android-quiz.md) | => 44 questions | answers required | | [AngularJs](angularjs/angularjs-quiz.md) | => 15 questions | answers required | | [AWS](aws/aws-quiz.md) | => 28 questions | answers required | | [AWS-Lambda](aws-lambda/aws-lambda-quiz.md) :fire: | => 44 questions | with answers | -| [Bash](bash/bash-quiz.md) | => 53 questions | partially answered | -| [C#](c%23/c-sharp-quiz.md) | => 48 questions | answers required | -| [C++](c%2B%2B/c%2B%2Bquiz.md) | => 33 questions | with answers | -| [C (Programming Language)](c-(programming-language)/c-quiz.md) | => 33 questions | with answers | -| [CSS](css/css-quiz.md) | => 54 questions |with answers | -| [Django](django/django-quiz.md) | => 48 questions |with answers | -| [.NET Framework](dotnet-framework/dotnet-framework-quiz.md) | => 37 questions |partially answered | -| [Git](git/git-quiz.md) :star: | => 90 questions |with answers | -| [Google Analytics](google-analytics/google-analytics-quiz.md) | => 65 questions |answers required | -| [Google Cloud Platform (GCP)](google-cloud-platform/gcp-quiz.md) | => 27 questions |with answers | -| [Hadoop](hadoop/hadoop-quiz.md) | => 18 questions |answers required | -| [HTML](html/html-quiz.md) | => 61 questions |with answers | -| [Java](java/java-quiz.md) | => 64 questions |with answers | -| [Javascript](javascript/javascript-quiz.md) | => 65 questions |partially answered | -| [jQuery](jquery/jquery-quiz.md) :open_mouth: | => 50 questions |with answers | -| [JSON](json/json-quiz.md) | => 51 questions |with answers | -| [Machine Learning](machine-learning/machine-learning-quiz.md) | => 67 questions |answers required | -| Kotlin | => 0 questions |NO question and NO answers yet | -| [MATLAB](matlab/matlab-quiz.md) | => 45 questions |with answers | -| [Maven](maven/maven-quiz.md) :fire: | => 34 questions |with answers | -| [Microsoft Azure](microsoft-azure/microsoft-azure-quiz.md) | => 44 questions |with answers | -| [Microsoft Excel](microsoft-excel/microsoft-excel-quiz.md) | => 48 questions |with answers | -| [Microsoft Power BI](microsoft-power-bi/microsoft-power-bi-quiz.md) | => 26 questions |answers required | -| [Microsoft Power Point](microsoft-power-point/microsoft-power-point-quiz.md) | => 21 questions |partially answered | -| [Microsoft Project](microsoft-project/microsoft-project-quiz.md) | => 41 questions |answers required | -| [Microsoft Word](microsoft-word/microsoft-word-quiz.md) | => 42 questions |with answers | -| [MongoDB](mongodb/mongodb-quiz.md) | => 46 questions |with answers | -| [MySQL](mysql/mysql-quiz.md) | => 64 questions |answers required | -| [node.js](node.js/node.js-quiz.md) | => 40 questions |with answers | -| [NoSQL](nosql/nosql-quiz.md) | => 43 questions |with answers | -| [objective-c](objective-c/objective-c_quiz.md) | => 33 questions |partially answered | -| [OOP](oop/object-oriented-programming-quiz.md) | => 50 questions |with answers | -| [PHP](php/php-quiz.md) | => 29 questions |partially answered | -| [Python](python/python-quiz.md) | => 67 questions |with answers | -| [R](r/r-quiz.md) | => 29 questions |partially answered | -| [React.js](react/reactjs-quiz.md) :rose: | => 51 questions |with answers | -| [REST API](rest-api/rest-api-quiz.md) :+1: | => 34 questions |partially answered | +| [Bash](bash/bash-quiz.md) | => 53 questions | partially answered | +| [C#](c%23/c-sharp-quiz.md) | => 48 questions | answers required | +| [C++](c%2B%2B/c%2B%2Bquiz.md) | => 33 questions | with answers | +| [C (Programming Language)]() | => 25 questions | with answers | +| [CSS](css/css-quiz.md) | => 54 questions | with answers | +| [Django](django/django-quiz.md) | => 48 questions | with answers | +| [.NET Framework](dotnet-framework/dotnet-framework-quiz.md) | => 37 questions | partially answered | +| [Git](git/git-quiz.md) :star: | => 90 questions | with answers | +| [Google Analytics](google-analytics/google-analytics-quiz.md) | => 65 questions | answers required | +| [Google Cloud Platform (GCP)](google-cloud-platform/gcp-quiz.md) | => 27 questions | with answers | +| [Hadoop](hadoop/hadoop-quiz.md) | => 18 questions | answers required | +| [HTML](html/html-quiz.md) | => 61 questions | with answers | +| [Java](java/java-quiz.md) | => 64 questions | with answers | +| [Javascript](javascript/javascript-quiz.md) | => 65 questions | partially answered | +| [jQuery](jquery/jquery-quiz.md) :open_mouth: | => 50 questions | with answers | +| [JSON](json/json-quiz.md) | => 51 questions | with answers | +| [Machine Learning](machine-learning/machine-learning-quiz.md) | => 67 questions | answers required | +| Kotlin | => 0 questions | NO question and NO answers yet | +| [MATLAB](matlab/matlab-quiz.md) | => 45 questions | with answers | +| [Maven](maven/maven-quiz.md) :fire: | => 34 questions | with answers | +| [Microsoft Azure](microsoft-azure/microsoft-azure-quiz.md) | => 44 questions | with answers | +| [Microsoft Excel](microsoft-excel/microsoft-excel-quiz.md) | => 48 questions | with answers | +| [Microsoft Power BI](microsoft-power-bi/microsoft-power-bi-quiz.md) | => 26 questions | answers required | +| [Microsoft Power Point](microsoft-power-point/microsoft-power-point-quiz.md) | => 21 questions | partially answered | +| [Microsoft Project](microsoft-project/microsoft-project-quiz.md) | => 41 questions | answers required | +| [Microsoft Word](microsoft-word/microsoft-word-quiz.md) | => 42 questions | with answers | +| [MongoDB](mongodb/mongodb-quiz.md) | => 46 questions | with answers | +| [MySQL](mysql/mysql-quiz.md) | => 64 questions | answers required | +| [node.js](node.js/node.js-quiz.md) | => 40 questions | with answers | +| [NoSQL](nosql/nosql-quiz.md) | => 43 questions | with answers | +| [objective-c](objective-c/objective-c-quiz.md) | => 33 questions | partially answered | +| [OOP](oop/object-oriented-programming-quiz.md) | => 50 questions | with answers | +| [PHP](php/php-quiz.md) | => 29 questions | partially answered | +| [Python](python/python-quiz.md) | => 67 questions | with answers | +| [R](r/r-quiz.md) | => 29 questions | partially answered | +| [React.js](react/reactjs-quiz.md) :rose: | => 51 questions | with answers | +| [REST API](rest-api/rest-api-quiz.md) :+1: | => 34 questions | partially answered | | [Scala](scala/scala-quiz.md) | => 25 questions | answers required | -| [Search Engine Optimization (SEO)](seo/search-engine-optimization-quiz.md) | => 30 questions |partially answered | -| [SharePoint](sharepoint/sharepoint-quiz.md) | => 29 questions |with answers | -| [Swift](swift/swift-quiz.md) | => 48 questions |with answers | -| [Transact-SQL (T-SQL)](t-sql/t-sql-quiz.md) | => 28 questions |with answers | -| [Visual Basic for Applications (VBA)](vba/vba-quiz.md) | => 11 questions |answers required | -| [Windows Server](windows-server/windows-server-quiz.md) | => 46 questions |partially answered | -| [WordPress](wordpress/wordpress-quiz.md) | => 42 questions |partially answered | -| [XML](xml/xml-quiz.md) | => 21 questions |answers required | +| [Search Engine Optimization (SEO)](seo/search-engine-optimization-quiz.md) | => 30 questions | partially answered | +| [SharePoint](sharepoint/sharepoint-quiz.md) | => 29 questions | with answers | +| [Swift](swift/swift-quiz.md) | => 48 questions | with answers | +| [Transact-SQL (T-SQL)](t-sql/t-sql-quiz.md) | => 28 questions | with answers | +| [Visual Basic for Applications (VBA)](vba/vba-quiz.md) | => 11 questions | answers required | +| [Windows Server](windows-server/windows-server-quiz.md) | => 46 questions | partially answered | +| [WordPress](wordpress/wordpress-quiz.md) | => 42 questions | partially answered | +| [XML](xml/xml-quiz.md) | => 21 questions | answers required | ## Format @@ -406,7 +407,6 @@ Thanks goes to these wonderful people ([emoji key](https://allcontributors.org/d
Manuel Eusebio de Paz Carmona

🎨 -
Basim Al-Jawahery

🎨 💻 diff --git a/agile-methodologies/agile-methodologies-quiz.md b/agile-methodologies/agile-methodologies-quiz.md index a688fb2bc2..c37ae0c16c 100755 --- a/agile-methodologies/agile-methodologies-quiz.md +++ b/agile-methodologies/agile-methodologies-quiz.md @@ -111,7 +111,7 @@ It is suggested that high business value, high-risk items are worked on first. W - [ ] This is not a good idea unless there has been recent employee feedback that people feel underappreciated. - [ ] It is a good idea as long as a different person is recognized in each sprint. - [ ] It is a good idea because awards can motivate people to do their best. -- [x] This is not a good idea because it can destroy the team unity that is essential to achieving high performance. <<<---CORRECT +- [x] This is not a good idea because it can destroy the team unity that is essential to achieving high performance. #### Q19. What is a difference between a team's task board and a Kanban? - [ ] A Kanban has an explicit rule to limit WIP. @@ -261,7 +261,7 @@ It is suggested that high business value, high-risk items are worked on first. W - [ ] Use a lottery system assign each story. - [ ] Share your observation with the team and invite them to own and solve the problem. - [ ] During story point estimation increase the points assigned to the least interesting stories so the team can boost their velocity. -- [x] Ask the Tech Lead to assign every story to a developer so they all get done efficiently and with accountability. //Answer? +- [x] Ask the Tech Lead to assign every story to a developer so they all get done efficiently and with accountability. #### Q44. What Agile practice best supports this principle: "At regular intervals, the team reflects on how to become more effective, then tunes and adjusts its behavior accordingly"? - [ ] Sprint Review @@ -272,7 +272,7 @@ It is suggested that high business value, high-risk items are worked on first. W #### Q45. On what are personas typically based? - [ ] a sponsors or team members' personalities and traits - [ ] what the developers think is user friendly -- [x] real people, archetypal users, or composites of multiple users //Answer? +- [x] real people, archetypal users, or composites of multiple users - [ ] descriptions of the product's functionality and use #### Q46. Which statement describes Shu Ha Ri? diff --git a/bash/bash-quiz.md b/bash/bash-quiz.md index da36b1d56a..e8270df021 100755 --- a/bash/bash-quiz.md +++ b/bash/bash-quiz.md @@ -263,11 +263,11 @@ echo ${!fname} - [ ] `blank` #### Q30. What will be the output of this script? -![question](questionimages/Q30/question.png) -- [ ] `A` ![A](questionimages/Q30/A.png) -- [ ] `B` ![B](questionimages/Q30/B.png) -- [x] `C` ![C](questionimages/Q30/C.png) -- [ ] `D` ![D](questionimages/Q30/D.png) +![question](images/Q30/question.png) +- [ ] `A` ![A](images/Q30/A.png) +- [ ] `B` ![B](images/Q30/B.png) +- [x] `C` ![C](images/Q30/C.png) +- [ ] `D` ![D](images/Q30/D.png) Here a text based version of Q.30: @@ -541,7 +541,7 @@ cd - - [ ] It deletes the current directory - [ ] It moves you one directory above your current working directory. -Training questions +# Training questions #### Q1. What does this command do? ```bash diff --git a/bash/questionimages/Q30/A.png b/bash/images/Q30/A.png similarity index 100% rename from bash/questionimages/Q30/A.png rename to bash/images/Q30/A.png diff --git a/bash/questionimages/Q30/B.png b/bash/images/Q30/B.png similarity index 100% rename from bash/questionimages/Q30/B.png rename to bash/images/Q30/B.png diff --git a/bash/questionimages/Q30/C.png b/bash/images/Q30/C.png similarity index 100% rename from bash/questionimages/Q30/C.png rename to bash/images/Q30/C.png diff --git a/bash/questionimages/Q30/D.png b/bash/images/Q30/D.png similarity index 100% rename from bash/questionimages/Q30/D.png rename to bash/images/Q30/D.png diff --git a/bash/questionimages/Q30/question.png b/bash/images/Q30/question.png similarity index 100% rename from bash/questionimages/Q30/question.png rename to bash/images/Q30/question.png diff --git a/c++/c++quiz.md b/c++/c++quiz.md index c9fa9a35c5..badbd00361 100755 --- a/c++/c++quiz.md +++ b/c++/c++quiz.md @@ -1,7 +1,7 @@ ## C++ #### Q1. What is printed from this code? -```c++ +``` vector v(22); bool b= (v[6]); printf("%d",!b); @@ -12,16 +12,14 @@ printf("%d",!b); - [ ] This code has an error #### Q2. Which of the following is a reason why using this line is considerd a bad practice? -``` -Using namespce std; -``` +`Using namespce std;` - [ ] The compiled code is always bigger because of all of the imported symbols. - [ ] If the code uses the function defined in two different libraries with the same prototype but possibly with different implementation , there will be a compilation error due to ambuiguity. - [ ] It automatically includes all header files in the standard library (cstdint,cstdlib,cstdio,iostream et- []. << Correct - [ ] It causes the compiler to enforce the exclusion , inclusion of header file belonging to the standard library , generating compilation error when a different header file is included. #### Q3. What is the smallest size a variable of the type child_t may occupy in memory? -```c++ +``` typedef struct { unsigned int age : 4; unsigned char gender :1; @@ -34,7 +32,7 @@ unsigned int size : 2; - [ ] 1 bytes. #### Q4. Which of the following shows the contents of vector v1 and v2 after running this code? -```c++ +``` std:: vector v1{1,2,3},v2; v2=v1; v1.push_back(4); @@ -62,11 +60,11 @@ v2:{1,2,3,5}; << Correct - [ ] There are no benefits because a reference and an object are treated as the same thing. #### Q7. What's the storage occupied by u1? -```c++ +``` union { -unit16_t a; -unit32_t b; -int8_t c; + unit16_t a; + unit32_t b; + int8_t c; } u1; ``` - [x] 4 bytes //You can see example [here](https://en.cppreference.com/w/cpp/language/union) @@ -76,12 +74,12 @@ int8_t c; #### Q8. Which of the following operators is overloadable? - [ ] ?: - - [x] new << Correct + - [x] new - [ ] :: - [ ] . #### Q9. Which of the following shows the contents of vector pointed by v1 and v2 after running this code? -```c++ +``` std:: vector *v1 = new std:: vector ({1,2,3}); std:: vector *v2; v2=v1; @@ -95,25 +93,23 @@ v2->push_back(5); - [x] Error - [ ] *v1:{1,2,3,4}; *v2:{1,2,3,5}; - - + #### Q10. Which of the following is not a difference between a class and a struct? - [ ] Because structor are part of the c programming language there some complexity between c and c++ struct This is not the case with classes. - [ ] Classes may have member function;struct private. - [ ] The default acces specifier for members of struct is public, where as for member of class , it is private. << Correct -> You can see the answer [here](https://www.fluentcpp.com/2017/06/13/the-real-difference-between-struct-class/) - [ ] Template type parameters can be declared with , but not with the struct keyword. - #### Q11. Suppose you need to keep a data struct with permission to access some resource base on the days of week , but you can't be use a bool variable for each day.you need to use one bit per day of the week. which of the following is a correct implementation of a structure with bit fields for this application? -- [ ] +- [x] ``` typedef struct { -int sunday:1; -int monday:1; -// more days -int friday:1; -int satarday:1; + int sunday:1; + int monday:1; + // more days + int friday:1; + int satarday:1; } weekdays; << Correct That syntax says that each variable size is 1 bit. 'bit' is not a type in C++. ``` - [ ] @@ -123,21 +119,21 @@ typedef char[7]: weekdays; - [ ] ``` typedef struct { -bit sunday:1; -bit monday:1; -// more days -bit fridyas:1; -bit satarday:1; + bit sunday:1; + bit monday:1; + // more days + bit fridyas:1; + bit satarday:1; } weekdays; ``` - [ ] ``` typedef struct { -bit sunday; -bit monday; -// more days -bit friday; -bit satarday; + bit sunday; + bit monday; + // more days + bit friday; + bit satarday; } weekdays; ``` @@ -176,10 +172,10 @@ y=b; #include int main() { -int x=10, y=20; -std::cout << "x = " << x++ << " and y = " << --y << std::endl; -std::cout << "x = " << x-- << " and y = " << ++y << std::endl; -return(0); + int x=10, y=20; + std::cout << "x = " << x++ << " and y = " << --y << std::endl; + std::cout << "x = " << x-- << " and y = " << ++y << std::endl; + return(0); } ``` - [ ] x = 10 and y = 20 x = 11 and y = 19 @@ -198,14 +194,14 @@ return(0); int8_t a=200; uint8_t b=100; - if(a>b) { -std::cout<<"greater"; -else std::cout<<"less"; + std::cout<<"greater"; + else std::cout<<"less"; } ``` - - [x]There is no output because there is an exception when comparing an int8_t with a uint8t.There is no output because there is an exception when comparing an null with a null. - - [ ]greaternull - - [ ]lessnull - - [ ]There is no output because there is a compiler error.There is no output because there is a compiler error. + - [x] There is no output because there is an exception when comparing an int8_t with a uint8t.There is no output because there is an exception when comparing an null with a null. + - [ ] greaternull + - [ ] lessnull + - [ ] There is no output because there is a compiler error.There is no output because there is a compiler error. #### Q.19 What results from executing this code snippet? What results from executing this code snippet? ``` @@ -214,10 +210,10 @@ if(x & y) { /_part A_/ } else{ /_part B_/ } ``` -- [] Part A executes because x==5 (true) and y==2 (true), thus the AND operation evaluates as true. << wrong -- [] Part B executes because (x & y) results in 0, or false.Part B executes because null results in 0, or false. << correct -- [] ? -- [] ? +- [ ] Part A executes because x==5 (true) and y==2 (true), thus the AND operation evaluates as true. << wrong +- [ ] Part B executes because (x & y) results in 0, or false.Part B executes because null results in 0, or false. << correct +- [ ] ? +- [ ] ? #### Q.20 What is a valid definition for the get_length function, which returns the length of a null-terminated string? What is a valid definition for the null function, which returns the length of a null-terminated string? - [ ] int get_length(char *str){ int count=0; while(str[count++]); return count-1; } @@ -267,9 +263,7 @@ std::printf("c is %d and d is %c",c,d); - [ ] c is c and d is d #### Q.26 What is the output of this code? -``` - printf("1/2 = %f",(float)(1/2)); -``` +`printf("1/2 = %f",(float)(1/2));` - [ ] /2 = 0.499999 - [ ] 1/2 = 0 - [x] 1/2 = 0.000000 @@ -289,7 +283,7 @@ std::printf("c is %d and d is %c",c,d); - [ ] 3 - [ ] 7 - [ ] -3 - - [ ] 13 + - [ ] 13 ### Q.29 Which statement is true? - [ ] Only classes can have member variables and methods. @@ -329,9 +323,7 @@ std::printf("c is %d and d is %c",c,d); C = *(str+4); #### Q.33 What is the output of this code? -``` -printf("1/2 = %f",(float)(1/2)); -``` +`printf("1/2 = %f",(float)(1/2));` - [ ] 1/2 = 0.499999 - [ ] 1/2 = 0 - [x] 1/2 = 0.000000 diff --git a/c-(programming-language)/c-quiz.md b/c-(programming-language)/c-quiz.md index 4d41697a3f..3c642b9554 100755 --- a/c-(programming-language)/c-quiz.md +++ b/c-(programming-language)/c-quiz.md @@ -2,7 +2,6 @@ ##### Q1. Which Code saple will eventually cause the computer to run out of memory ? - [x] - ``` while(1) { @@ -10,10 +9,8 @@ while(1) } ``` - [ ] - ``` long long number = 1; - while(1) number *= 2; ``` @@ -25,7 +22,6 @@ while(1) memset(hugeString, 0, 1000000L); } ``` - - [ ] ``` while(1) diff --git a/dotnet-framework/dotnet-framework-quiz.md b/dotnet-framework/dotnet-framework-quiz.md index 175de003fb..450c4db2ba 100755 --- a/dotnet-framework/dotnet-framework-quiz.md +++ b/dotnet-framework/dotnet-framework-quiz.md @@ -1,222 +1,222 @@ ## .NET Framework -#### 1. What is the difference between a stack and queue? +#### QQ1. What is the difference between a stack and queue? - [ ] Queues process value types by a top-down hierarchy - first in, first out (FIFO). Stacks follow this principle and insert items from the lower end while deleting ones from the top - last in, first-out (LIFO). - [ ] Queues process value types by a top-down hierarchy-last in, first-out (LIFO). Stacks follow this principle and insert items from the lower end while deleting ones from the top-first in, first-out (FIFO). - [x] Stacks process value types by a top-down hierarchy - last in, first-out (LIFO). Queues follow this principle and insert items from the lower end while deleting ones from the top - first in, first-out (FIFO) - [ ] Stacks process value types by a top-down hierarchy-first in, first out (FIFO). Queues follow this principle and insert items from the lower end while deleting ones from the top-last in, first-out (LIFO). -#### 2. Which group contains all official types of JIT compilations? +#### Q2. Which group contains all official types of JIT compilations? - [ ] Pre-JIT, Quick-JIT, Coll-JIT - [ ] Before-JIT, Quick-JIT, Cool-JIT - [ ] Pre-JIT, Quick-JIT, Normal-JIT - [x] Pre-JIT, Econo-JIT, Normal-JIT -#### 3. What is Kestrel? +#### Q3. What is Kestrel? - [ ] an iOS web server initially that was later designed to work with .NET Core - [x] a cross-platform web server ASP.NET Core that is included by default in ASP.NET Core project templates** <= Correct - [ ] a cross-platform, open-source web server that starts up web APIs - [ ] a free and open-source cross-platform web server software that can communicate with IIS -#### 4. When would you use asynchronous actions? +#### Q4. When would you use asynchronous actions? - [ ] to release the quest thread of a I/O operation - [ ] to capture the request thread of a I/O operation - [x] to avoid blocking the request thread while waits for an I/O operation - [ ] to block the request thread if it waits for an I/O operation -#### 5. What is CoreCLR? +#### Q5. What is CoreCLR? - [ ] CoreCLR is a component that allows the highest degree of control when coding; you can Abort(), Suspend() or Resume(). - [ ] CoreCLR is the .NET execution engine that runs the source code. Special programs called compilers must rewrite it into MSIL. - [ ] CoreCLR is the .NET execution engine the runs the source code. Special programs called compilers must rewrite it into IL. - [x] CoreCLR is the .NET execution engine in .NET Core that performs functions like garbage collection and compilation to machine code. -#### 6. When you define an abstract method, how do you use it in a derived class? +#### Q6. When you define an abstract method, how do you use it in a derived class? - [ ] Abstract methods cannot be used in derived classes. - [ ] In your derived class, overload the method. - [x] In your derived class, override the method. - [ ] In your derived class, declare the method as virtual. -#### 7. Which code do you use if you want to trigger a garbage collection in .NET? +#### Q7. Which code do you use if you want to trigger a garbage collection in .NET? - [ ] Garbage.CleanUp(); - [ ] System.GC.Clear(); - [x] System.GC.Collect(); - [ ] Garbage.Collect(); -#### 8.You want to include language elements in a program. Which design pattern best fits this objective? +#### Q8.You want to include language elements in a program. Which design pattern best fits this objective? - [ ] Interpreter - [ ] Command - [ ] Bridge - [x] Decorator -#### 9.What makes a strong-named assembly? +#### Q9.What makes a strong-named assembly? - [ ] an assembly with the version specified - [x] a signed assembly - [ ] an assembly with culture information - [ ] an assembly with the name marked as important -#### 10.What happens when you concatenate two strings? +#### Q10.What happens when you concatenate two strings? - [ ] You cannot concatenate strings in .NET. - [ ] The second string object is modified so it contains the concatenated strings. - [x] A third string object is created containing the concatenated strings. - [ ] The first string object is modified so it contains the concatenated strings. -#### 11.What is a delegate? +#### Q11.What is a delegate? - [ ] A delegate is an object or collection initializer that adds flexibility, readability and maintainability in C#. - [x] A delegate in .NET is similar to a function pointer in C or C++. Using a delegate allows the programmer to encapsulate a reference to a method inside a delegate object. - [ ] A delegate is a collection initializer that adds flexibility, readability and maintainability in .NET. - [ ] A delegate is an extension method. Using a delegate allows the programmer to add flexibility, readability and maintainability in .NET. -#### 12.Which is a set of features that extends the query capabilities of the .NET language syntax by adding sets of new standard query operators that allow data manipulation, regardless of the data source? +#### Q12.Which is a set of features that extends the query capabilities of the .NET language syntax by adding sets of new standard query operators that allow data manipulation, regardless of the data source? - [ ] XML - [ ] C# - [x] LINQ - [ ] XAML -#### 13.What is the single responsibility principle? +#### Q13.What is the single responsibility principle? - [ ] Software entities should be open for extension, but closed for modification. - [ ] Entities must depend on abstractions, not on concrete implementations. - [ ] Objects in a program should be repleaceble with instances of their subtypes without altering the correctness of that programm. - [x] A class should have only a single responsibility - that is, only changes to one part of the software's specification should be able to affect the specification of the class. -#### 14.When should a developer use the .NET Standard class library project type? +#### Q14.When should a developer use the .NET Standard class library project type? - [ ] when you want to increase the .NET API surface area your library can access, and allow only .NET Core apps to be compatible with your library - [x] when you want to increase the number of apps that are compatible with your library, and decrease the .NET API surface area your library can access - [ ] when you want to decrease speed but have more features - [ ] when you want to increase compilation speed and have fewer features -#### 15.What is the difference between a SDK (software development kit) and runtime in .NET Core? +#### Q15.What is the difference between a SDK (software development kit) and runtime in .NET Core? - [ ] The SDK is the "virtual machine" that hosts and runs the application and abstracts all the interaction with the operating system; the runtime usually includes documentation and other help files. - [ ] The runtime is the virtual machine that hosts and runs the application and abstracts all the interaction with the operating system; the SDK usually includes documentation and other help files. - [ ] The runtime compiles code along with the CLR; the SDK usually includes documentation and other help files. - [ ] The SDK compiles code along with the CLR; the runtime usually includes documentation and other help files. -### 16. What is the Common Type System (CTS)? +#### Q16. What is the Common Type System (CTS)? - [ ] the component of CLR in which .NET Framework provides support for several languages since it contains a type system that is common with all the languages - [ ] the component of CLI in which .NET Framework provides support for several languages since it contains a type system that is common with all the languages - [ ] the component of CLR that allows you to map the content of a file to the logical address of an application - [ ] the component of CLR that enables you to run multiple versions of an application or component and CLR on the same computer at the same time -### 17.Assuming y is a value type, which is an example of boxing? +#### Q7.Assuming y is a value type, which is an example of boxing? - [ ] y = (int)thisObject; - [ ] int y = 3; - [ ] y = (int)thisObject=;3; - [x] object thisObject = y; -### 18.What is an abstract class in .NET? +#### Q18.What is an abstract class in .NET? - [ ] An abstract class provides a partial implementation for functionality and some abstract or virtual members that must be implemented by the inheriting entities. It can declare fields too. - [ ] An abstract class allows developers to create new classes that reuse, extend, and modify the behavior defined in other classes. - [ ] An abstract class is responsible for keeping track of what is actually executing and where each executing thread is. - [x] An abstract class declares a contract or behavior that implementing classes require. It may declare only properties, methods, and events with no access modifiers. All the declared members must be implemented. -### 19.What is the namespace for caching information in .NET? +#### Q19.What is the namespace for caching information in .NET? - [ ] System.Data.Caching; - [ ] All.System.Caching; - [x] System.Runtime.Caching; - [ ] System.Compiler.Caching; -### 20.What is an interface in .NET? +#### Q20.What is an interface in .NET? - [ ] An interface provides a partial implementation for functionality and some abstract or virtual members that must be implemented by the inheriting entities. It can declare fields too. - [ ] An interface is responsible for keeping track of what is actually executing and where each executing thread is. - [ ] An interface allows developers to create new classes that reuse, extend, and modify the behavior defined in other classes. - [x] An interface declares a contract or behavior that implementing classes require. It may declare only properties, methods, and events with no access modifiers. All the declared members must be implemented. -### 21. What does CAS stand for and what does it do? +#### Q21. What does CAS stand for and what does it do? - [ ] CAS stands for Code Application Secrets and it enables users to restrict, on a very granular level, what hidden code can do according to a level of trust for an application. - [ ] CAS stands for Code Access Secrets and it enables users to restrict, on a very granular level, what hidden code can do according to a level of trust. - [ ] CAS stands for Cognitive Access Security and it enables users to restrict security logic manipulation. - [ ] CAS stands for Code Access Security and it enables users to restrict, on a very granular level, what managed code can do according to a level of trust. -### 22. Which is NOT true about lambda statements? +#### Q22. Which is NOT true about lambda statements? - [ ] A statement lambda cannot return a value. <= Correct - [ ] If a statement lambda has a return value, it has to use a return statement. - [ ] A statement lambda requires using curly braces. - [ ] A statement lambda can have more than one statement. -### 23. Which is NOT true about a read-only variable? +#### Q23. Which is NOT true about a read-only variable? - [ ] At runtime, its value is evaluated. - [ ] It can be either static or an instance member. - [x] It can be initialized at declaration only. - [ ] It can be initialized in either the constructor or the declaration. -### 24. What is the difference between System.String and string? +#### Q24. What is the difference between System.String and string? - [ ] string is used for fied-size strings in C#, while System.String is used for all the strings. - [ ] There is no such class as System.String. - [x] There is none—string is an alias for System. String. - [ ] System.String is a VB.NET data type, while string is a C# type. -### 25. When break is used inside two nested for loops, does control come out of the inner for loop or the outer for loop? +#### Q25. When break is used inside two nested for loops, does control come out of the inner for loop or the outer for loop? - [ ] It breaks from only the outer loop. - [ ] It breaks from all loops. - [x] It breaks from only the inner loop. - [ ] It breaks from the outer loop after the second iteration. -### 26. You want to separate object construction from its representation. Which design pattern best fits this objective? +#### Q26. You want to separate object construction from its representation. Which design pattern best fits this objective? - [ ] Adapter - [ ] Bridge - [ ] Singleton - [x] Builder -### 27. You want to encapsulate a command request as an object. Which design pattern best fits this objective? +#### Q27. You want to encapsulate a command request as an object. Which design pattern best fits this objective? - [x] Command - [ ] Iterator - [ ] Facade - [ ] Observer -### 28. Why would Pre-JIT be used by the .NET Framework? +#### Q28. Why would Pre-JIT be used by the .NET Framework? - [ ] to compile only the methods that are called at runtime and store those methods in cache after execution - [x] to compile complete source code into native code in a single compilation cycle during deployment of the application - [ ] to compile only the methods that are called at runtime and then store them in cache for one minute - [ ] to compile only the methods that are called at runtime and remove them from memory after execution -### 29. What do code contracts do? +#### Q29. What do code contracts do? - [ ] Code contracts are data structures that can operate on demand per requirements. - [x] Code contracts provide a way to specify preconditions, postconditions, and object invariants in your code. - [ ] Code contracts contain definitions for a group of related functionalities that a class or a struct can implement. - [ ] Code contracts contain data structures for a group of related functionalities that a class or a struct can implement. -### 30. You must connect an app to an online identity provider using OAuth. For authentication, the app uses WebAuthenticationBroker object. You need to make sure the app registers with the provider. Which actions do you take? +#### Q30. You must connect an app to an online identity provider using OAuth. For authentication, the app uses WebAuthenticationBroker object. You need to make sure the app registers with the provider. Which actions do you take? - [ ] Construct an HTTP request URI and an HTTPS request URI. - [ ] Invoke the GetCurrentApplicationCallbackUri method and construct an HTTPS request URI. - [ ] Invoke the AuthenticateAsync and GetCurrentApplicationCallbackUri methods. - [ ] Invoke the AuthenticateAsync method and construct an HTTPS request URI. -### 31.You want to create a class of which only a single instance can exist. Which design pattern best fits this objective? +#### Q31.You want to create a class of which only a single instance can exist. Which design pattern best fits this objective? - [ ] Adapter - [x] Singleton - [ ] Bridge - [ ] Decorator -### 32.What is the dependency inversion principle? +#### Q32.What is the dependency inversion principle? - [ ] Objects in a program should be replaceable with instances of their subtypes without altering the correctness of that program. - [ ] A class should have only a single responsibility—that is, only changes to one part of the software's specification should be able to affect the specification of the class. - [ ] Software entities should be open for extension, but closed for modification. - [ ] Entities must depend on abstractions, not on concrete implementations. <= Correct -### 33.What is a namespace? +#### Q33.What is a namespace? - [ ] a group of generic collections—in a logical hierarchy by function—that enable you to access the core functionality you need in your applications - [ ] a group of methods—in a logical hierarchy by class—that enable you to access the core functionality you need in .NET - [ ] a group of assemblies—in a logical hierarchy by function—that enable you to access the core functionality you need in your applications - [x] a group of classes, structures, interfaces, enumerations, and delegates—organized in a logical hierarchy by function that enable you to access the core functionality you need in your applications -### 34.Which of the following selects an anonymous type? +#### Q34.Which of the following selects an anonymous type? - [x] select new { a.Country, a.Region } - [ ] select a - [ ] select a.Country, a.Region - [ ] select { a.Country, a.Region } -### 35.Which is NOT true about a constant variable? +#### Q35.Which is NOT true about a constant variable? - [ ] At compile time, the value is evaluated. - [ ] Only at declaration can it be initialized. - [ ] At runtime, its value is evaluated. - [ ] It cannot be static. -### 36.What is the purpose of CLR? +#### Q36.What is the purpose of CLR? - [ ] CLR performs various operations such as security checks, spell checks, assembly loading, and thread management. It provides a secure execution environment for the internet. - [ ] CLR sets the rules developers must use for the components that are interlanguage compatible. CLR is reusable across all the .NET-compliant languages. - [ ] CLR is a compiler that converts Intermediate Language to a native code. - [ ] CLR performs various operations such as memory management, security checks, assembly loading, and thread management. It also provides a secure execution environment for applications. -### 37.What is CIL? +#### Q37.What is CIL? - [ ] Formerly known as MSIL, CIL is a programming language that NET developers use. It represents the lowest possible level for a language that humans can still read. - [ ] CIL is an object-oriented programming language that is a partially compiled code that .NET developers will then compile to native machine code. - [ ] CIL is used to convert a value type to an object type. diff --git a/git/git-quiz.md b/git/git-quiz.md index 32e581156f..59aeb17c88 100755 --- a/git/git-quiz.md +++ b/git/git-quiz.md @@ -13,7 +13,7 @@ - [ ] git remote origin #### Q3. Describe what the following git commands do to the commit history. -```git +``` git reset --hard HEAD~5 git merge --squash HEAD@{1} ``` @@ -597,7 +597,7 @@ In Git, there are two main ways to integrate changes from one branch into anothe - [ ] A hard reset caches the old HEAD pointer, while a soft reset deletes it entirely. #### Q86. Consider the following Git workflow : -![imgages](images/Git-WorkFlow.png) +![image](images/Git-WorkFlow.png) Which of the following options is correct ? - [ ] `1. Develop 2. Release 3. Hotfix 4. Feature 5. Master` - [ ] `1. Master 2. Release 3. Hotfix 4. Feature 5. Develop` diff --git a/google-analytics/google-analytics-quiz.md b/google-analytics/google-analytics-quiz.md index e90571eb29..99fa5df41f 100755 --- a/google-analytics/google-analytics-quiz.md +++ b/google-analytics/google-analytics-quiz.md @@ -56,7 +56,7 @@ - [ ] Express UTM - [x] Google Analytics Debugger -#### Q10. You want to track example.com and otherexample.com using a single property. What must be set up? +#### Q10. You want to track example.com and other example.com using a single property. What must be set up? - [x] cross domain tracking - [ ] Google Tag Manager - [ ] Include and Exclude filters diff --git a/java/java-quiz.md b/java/java-quiz.md index 2f5f8ad46d..45ed3e9acc 100755 --- a/java/java-quiz.md +++ b/java/java-quiz.md @@ -6,7 +6,7 @@ - [ ] awb - [ ] traw -Reasoning: The substring method is accepting two arugments. The first argument being the index to start(includes that char at 2) and the second the index of the string to end the substring(excludes the char at 5). Strings in Java are like arrays of chars. Therefore the method will return "raw" as those are the chars in indexs 2,3, and 4. You can also take the ending index and subtract the beginning index from it, to determine how many chars will be included in the substring (5-2=3). +**Reasoning:** The substring method is accepting two arugments. The first argument being the index to start(includes that char at 2) and the second the index of the string to end the substring(excludes the char at 5). Strings in Java are like arrays of chars. Therefore the method will return "raw" as those are the chars in indexs 2,3, and 4. You can also take the ending index and subtract the beginning index from it, to determine how many chars will be included in the substring (5-2=3). #### Q2. How can you achieve runtime polymorphism in Java? - [ ] method overloading @@ -15,9 +15,7 @@ Reasoning: The substring method is accepting two arugments. The first argument b - [ ] method calling #### Q3. Given the following definitions, which of these expression will NOT evaluate to true? -``` -boolean b1 = true, b2 = false; int i1 = 1, i2 = 2; -``` +`boolean b1 = true, b2 = false; int i1 = 1, i2 = 2;` - [ ] (i1 | i2) == 3 - [X] i2 && b1 - [ ] b1 || !b2 @@ -178,8 +176,8 @@ public class Math { - [ ] Lines 1 and 2 generate compiler erros due to class name conflicts. - [ ] "-123" - [ ] It will throw an exception on line 5. -- [X] "123" -// The answer is "123". The abs() method evaluates to the one inside mypackage.Math class. +- [X] "123" + **Explanation:** The answer is "123". The abs() method evaluates to the one inside mypackage.Math class. #### Q12. What is the result of this code? ``` @@ -231,7 +229,7 @@ class Main { - [ ] a negative integer value - [ ] "12345100000" -Reasoning: The int type in Java can be used to represent any whole number from -2147483648 to 2147483647. Therefore this code will not compile as the number assigned to 'a' is larger than the int type can hold. +**Reasoning:** The int type in Java can be used to represent any whole number from -2147483648 to 2147483647. Therefore this code will not compile as the number assigned to 'a' is larger than the int type can hold. #### Q15. What is the output of this code? ``` @@ -291,13 +289,12 @@ System.out.println(n); #### Q22. Which is the most up-to-date way to instantiate the current date? - [ ] new SimpleDateFormat("yyyy-MM-dd").format(new Date()) - [ ] new Date(System.currentTimeMillis()) -- [X] LocalDate.now() <--------- LocalDate is newest class added in java 8 -- [] Calender.getInstance().getTime() +- [X] LocalDate.now() + **Explanation**: // LocalDate is newest class added in java 8 +- [ ] Calender.getInstance().getTime() #### Q23. Fill in the blank to create a piece of code that will tell wether int0 is divisible by 5: -``` -boolean isDivisibleBy5 = _____ -``` +`boolean isDivisibleBy5 = _____` - [ ] int0 / 5 ? true: false - [X] int0 % 5 == 0 - [ ] int0 % 5 != 5 @@ -568,9 +565,7 @@ public class Main { ``` #### Q42. What method signature will work with this code? -``` -boolean healthyOrNot = isHealthy("avocado"); -``` +`boolean healthyOrNot = isHealthy("avocado");` - [ ] public void isHealthy(String avocado) - [X] boolean isHealthy(String string) - [ ] public isHealthy("avocado") @@ -595,7 +590,6 @@ boolean healthyOrNot = isHealthy("avocado"); - [ ] It will be preferentially garbage collected. #### Q46. What is the result of this code? - ``` char smooch = 'x'; System.out.println((int) smooch); @@ -799,7 +793,7 @@ public static void main(String[] args) { } ``` - [ ] Hello World -- [X] It will not compile beacuse the second catch statement is unreachable +- [X] It will not compile because the second catch statement is unreachable - [ ] Hello World! - [ ] It will throw runtime exception diff --git a/javascript/javascript-quiz.md b/javascript/javascript-quiz.md index 217eaa49b3..77d4a257f3 100755 --- a/javascript/javascript-quiz.md +++ b/javascript/javascript-quiz.md @@ -295,8 +295,7 @@ let diff = function (x, y) { - [x] Most operations involve looking up a record, and objects can do that better than arrays. - [ ] Working with objects makes the code more readable. -Records in an object can be retrieved using their key which can be any given value (e.g. an employee ID, a city name, etc), whereas to retrieve a record from an array we need to know its index. - +**Explanation:** Records in an object can be retrieved using their key which can be any given value (e.g. an employee ID, a city name, etc), whereas to retrieve a record from an array we need to know its index. #### Q35. Which statement is true about the "async" attribute for the HTML script tag? - [ ] It can be used for both internal and external JavaScript code. diff --git a/jquery/jquery-quiz.md b/jquery/jquery-quiz.md index fbbb793d4a..c507b0f20f 100755 --- a/jquery/jquery-quiz.md +++ b/jquery/jquery-quiz.md @@ -3,7 +3,6 @@ #### Q1. What's the difference between these two snippets? ```js $('button').on('click', function(){ alert('you clicked the button!'); }); - $('button').click(function(){ alert('you clicked the button!'); }); ``` - [ ] Only the second one will work; jQuery does not have a function called `.on`. @@ -520,10 +519,8 @@ $('.menu-first > li') ``` - ```js $('.leaf').click( function(event) { console.log('Sub Item 1 got a click'); } ); - $('#main-menu').click( function(event) { console.log('Main menu got a click'); } ); ``` - [ ] `event.capture();` diff --git a/json/questionimages/Q51/Q51.jpeg b/json/images/Q51/Q51.jpeg similarity index 100% rename from json/questionimages/Q51/Q51.jpeg rename to json/images/Q51/Q51.jpeg diff --git a/json/json-quiz.md b/json/json-quiz.md index 5973b8ccff..727ec28234 100755 --- a/json/json-quiz.md +++ b/json/json-quiz.md @@ -369,26 +369,26 @@ ` { -"avengers": [ -"iron man", -"hulk", -"thor", -"black widow", -"ant man", -"spider man' -] + "avengers": [ + "iron man", + "hulk", + "thor", + "black widow", + "ant man", + "spider man' + ] } ` - [x] `{ "avengers": [ - "iron man", - "hulk", - "thor", - "black widow", - "ant man", - "spider man" + "iron man", + "hulk", + "thor", + "black widow", + "ant man", + "spider man" ] }` @@ -407,12 +407,12 @@ - [ ] `{ 'avengers': [ - 'iron man', - 'hulk', - 'thor', - 'black widow', - 'ant man', - 'spider man' + 'iron man', + 'hulk', + 'thor', + 'black widow', + 'ant man', + 'spider man' ] } ` @@ -420,12 +420,12 @@ - [ ] `{ "avengers": {[ - "iron man", - "hulk", - "thor", - "black widow", - "ant man", - "spider man" + "iron man", + "hulk", + "thor", + "black widow", + "ant man", + "spider man" ]} } ` @@ -556,7 +556,7 @@ - [x] As a string in ISO 8601 format #### Q51. Is the JSON code shown here valid? -![JSON object with key "Vehicles" containing an array of emojis](questionimages/Q51/Q51.jpeg) +![JSON object with key "Vehicles" containing an array of emojis](images/Q51/Q51.jpeg) - [ ] No, emojis must be escaped with a backslash. - [ ] No, JSON strings are not allowed to use emojis. - [ ] No, emojis should never be enclosed with double quotes. diff --git a/machine-learning/machine-learning-quiz.md b/machine-learning/machine-learning-quiz.md index 830a425fbb..21d898921e 100755 --- a/machine-learning/machine-learning-quiz.md +++ b/machine-learning/machine-learning-quiz.md @@ -30,7 +30,7 @@ - [ ] It was consistently right. - [ ] It was equally right end wrong. -See link : [https://medium.com/datadriveninvestor/bias-and-variance-in-machine-learning-51fdd38d1f86](https://medium.com/datadriveninvestor/bias-and-variance-in-machine-learning-51fdd38d1f86) +[Reference](https://medium.com/datadriveninvestor/bias-and-variance-in-machine-learning-51fdd38d1f86) #### Q6. You want to identify global weather patterns that may have been affected by climate change. To do so, you want to use machine learning algorithms to find patterns that would otherwise be imperceptible to a human meteorologist. What is the place to start? - [ ] Find labeled data of sunny days so that the machine will learn to identify bad weather. @@ -125,7 +125,7 @@ See link : [https://medium.com/datadriveninvestor/bias-and-variance-in-machine-l - [ ] Machine learning algorithms are powerful enough to eliminate bias from the data. - [x] All human-created data is biased, and data scientists need to account for that. -Note: While machine learning algorithms don't have bias, the data can have them. +**Explanation**: While machine learning algorithms don't have bias, the data can have them. #### Q21. What is stacking? - [x] The predictions of one model become the inputs another. @@ -145,7 +145,7 @@ Note: While machine learning algorithms don't have bias, the data can have them. - [ ] binary classification - [x] K-means clustering -Note: The problem explicitly states "clustering". +**Explanation**: The problem explicitly states "clustering". #### Q24. Your company wants you to build an internal email text prediction model to speed up the time that employees spend writing emails. What should you do? - [x] Include training email data from all employees. @@ -234,7 +234,7 @@ Note: thre are centres of clusters (C0, C1, C2). - [ ] Linear regression - [ ] Principal Component Analysis (PCA) -**Note:** Logistic regression is far better than linear regression at binary classification since it biases the result toward one extreme or the other. K-means clustering can be used for classification but is not as accurate in most scenarios. +**Explanation:** Logistic regression is far better than linear regression at binary classification since it biases the result toward one extreme or the other. K-means clustering can be used for classification but is not as accurate in most scenarios. [Source:](https://www.kaggle.com/minc33/k-means-clustering-vs-logistic-regression) #### Q38. With traditional programming, the programmer typically inputs commands. With machine learning, the programmer inputs @@ -243,7 +243,7 @@ Note: thre are centres of clusters (C0, C1, C2). - [ ] unsupervised learning - [ ] algorithms -Note: This one is pretty straight forward and a fundamental concept. +**Explanation**: This one is pretty straight forward and a fundamental concept. [Source:](https://towardsdatascience.com/machine-learning-for-beginners-d247a9420dab) #### Q39. Why is it important for machine learning algorithms to have access to high-quality data? @@ -270,7 +270,7 @@ Note: This one is pretty straight forward and a fundamental concept. - [x] The algorithms will cluster together drugs that have similar traits. - [ ] Human experts can create classes of drugs to help guide discovery. -Note: This one is similar to an example talked about in the Stanford Machine Learning course. +**Explanation**: This one is similar to an example talked about in the Stanford Machine Learning course. [Source:](https://www.coursera.org/learn/machine-learning/home/welcome) #### Q43. In 2015, Google created a machine learning system that could beat a human in the game of Go. This extremely complex game is thought to have more gameplay possibilities than there are atoms of the universe. The first version of the system won by observing hundreds of thousands of hours of human gameplay; the second version learned how to play by getting rewards while playing against itself. How would you describe this transition to different machine learning approaches? @@ -385,7 +385,7 @@ Note: This one is similar to an example talked about in the Stanford Machine Lea #### Q58. How would you describe this type of classification challenge? ![Machine Learning Q58](images/machine-learning_Q58.jpg) - [x] This is a multiclass classification challenge. - // Shows data being classified into more than two categories or classes. Thus, this is a multi-class classification challenge. + **Explanation**: Shows data being classified into more than two categories or classes. Thus, this is a multi-class classification challenge. - [ ] This is a multi-binary classification challenge. - [ ] This is a binary classification challenge. - [ ] This is a reinforcement classification challenge. @@ -408,7 +408,7 @@ Note: This one is similar to an example talked about in the Stanford Machine Lea - [ ] Your training set is too large. - [ ] You are underfitting the model to the data. - [x] You are overfitting the model to the data. - // This question is very similar to Q49 but involves a polar opposite scenario. + **Explanation**: // This question is very similar to Q49 but involves a polar opposite scenario. - [ ] Your machine is creating inaccurate clusters. // I find that answer somewhat vague and unsettled. Small number of matchings does not necessarily implies that the model overfits, especially given 500 (!) independent variables. To me, it sounds more reasonable that the threshold (matching) criterion might be too tight, thus allowing only a small number of matching to occur. So a solution can be either softening the threshold criterion or increasing the number of candidates. @@ -423,10 +423,8 @@ Note: This one is similar to an example talked about in the Stanford Machine Lea - [ ] 88% - [ ] 12% - [ ] 0.0008% - ![image](images/machine-learning_Q62.png) - #### Q63. The new dataset you have just scraped seems to exhibit lots of missing values. What action will help you minimizing that problem? - [ ] Wise fill-in of controlled random values - [ ] Replace missing values with averaging across all samples diff --git a/matlab/matlab-quiz.md b/matlab/matlab-quiz.md index 8bd2183695..5a4d82a8e2 100755 --- a/matlab/matlab-quiz.md +++ b/matlab/matlab-quiz.md @@ -258,21 +258,15 @@ c = #### Q21. Which choice has a different final result in `f10` than the other three? - [ ] -```MATLAB +``` f10 = 1; for i = 1:10 f10 = f10 * i; end ``` - - [ ] - -```MATLAB -f10 = factorial(10) -``` - +`f10 = factorial(10)` - [x] - ```MATLAB f10 = 1; i = 1; @@ -281,85 +275,55 @@ while i <= 10 f10 = i * f10; end ``` - - [ ] - -```MATLAB -f10 = prod(1:10) -``` +`f10 = prod(1:10)` #### Q22. Which choice will NOT give you a 5 x 5 identity matrix? - - [ ] - -```MATLAB +``` a = rand(5); round(a * inv(a)) ``` - - [ ] - -```MATLAB -diag(ones(5, 1)) -``` - +`diag(ones(5, 1))` - [x] - -```MATLAB -identity(5) -``` - +`identity(5)` - [ ] - -```MATLAB -eye(5) -``` +`eye(5)` #### Q23. Which statement creates this structure? - -```MATLAB +``` dog = name: 'Bindy' breed: 'border collie' weight: 32 ``` - - [ ] - -```MATLAB -dog = struct('name', 'Bindy'; 'breed', 'border collie'; 'weight', 32); -``` - +`dog = struct('name', 'Bindy'; 'breed', 'border collie'; 'weight', 32);` - [x] - -```MATLAB +``` dog.name = 'Bindy'; dog.breed = 'border collie'; dog.weight = 32; ``` - - [ ] - -```MATLAB +``` dog = { 'name' : 'Bindy', 'breed' : 'border collie', 'weight': 32; } ``` - - [ ] - -```MATLAB +``` dog('name') = 'Bindy'; dog('breed') = 'border collie'; dog('weight') = 32; ``` #### Q24. `my_func` is a function as follows. What is the value of `a` at the end of the code beneath? - -```MATLAB +``` function a = my_func(a) a = a + 1; end @@ -370,276 +334,196 @@ for i = 1:3 end a = my_func(a); ``` - - [ ] 4 - [ ] 3 - [ ] 0 - [x] 1 #### Q25. Which statement could create this cell array? - -```MATLAB +``` c = - {["hello world"]} {1×1 cell} {["goodbye"]} {1×3 double} ``` - - [ ] c = {"hello world" {"hello"} "goodbye" [1 2 ]}; - [ ] c = {"hello world" {"hello"} "goodbye" {[1 2 3]}}; - [x] c = {"hello world" {"hello"} "goodbye" [1 2 3]}; - [ ] c = {"hello world" {"hello" "hello"} "goodbye" {[1 2 3]}}; #### Q26. Which choice adds `b` to each row of `a`? - -```MATLAB +``` a = ones(4, 4); b= [1 2 3 4]; ``` - - [ ] a = a + reshape(b, 4, 1); - [ ] a = a + b'; - [x] a = a + repmat(b, 4, 1); - [ ] a = a + [b b b b]; #### Q27. Which choice replaces all `a`s with `o`s? - - [ ] - -```MATLAB +``` for i = 1:length(fruit) fruit{i}(fruit{i} == a) == o; end ``` - - [ ] - -```MATLAB +``` for i = 1:length(fruit) fruit(i)(fruit(i) == 'a') == 'o'; end ``` - - [x] - -```MATLAB +``` for i = 1:length(fruit) fruit{i}(fruit{i} == 'a') == 'o'; end ``` - - [ ] - -```MATLAB +``` for i = 1:length(fruit) fruit{i}(fruit{i} == 'a') == 'o'; ``` #### Q28. Which statement returns the roots for the polynomial `x^2 + 2x - 4`? - - [ ] poly([1 2 -4]) - [ ] solve(x^2 + 2x - 4 == 0) - [ ] polyfit(x^2 + 2x - 4 == 0) - [x] roots([1 2 -4]) #### Q29. Which choice is the proper syntax to append a new elements `a` to the end of 1x 2 dimensional cell array `C`? - - [ ] C = {C a}; - [ ] C = cellcat(C a) - [ ] C = cat(2, {a}, C) - [x] C{end+1}=a #### Q30. You have loaded a dataset of people's heights into a 100 x 1 array called `height`. Which statement will return a 100 x 1 array, `sim_height`, with values from a normal distribution with the same mean and variance as your height data? - - [ ] sim_height = std(height) + mean(height) \* randn(100, 1); - [x] sim_height = mean(height) + std(height) \* randn(100, 1); - [ ] sim_height = randn(std(height), mean(height), [100, 1]); - [ ] sim_height = randn(mean(height), std(height), [100, 1]); #### Q31. Which statement returns a cell array of the strings containing '`burger`' from `menu`? - -```MATLAB -menu = {'hot dog' 'corn dog' 'regular burger' 'cheeseburger' 'veggie burger'} -``` - +`menu = {'hot dog' 'corn dog' 'regular burger' 'cheeseburger' 'veggie burger'}` - [ ] menu{strfind(menu, 'burger')} - [ ] menu(strfind(menu, 'burger')) - [ ] menu{contains(menu, 'burger')} - [x] menu(contains(menu, 'burger')) #### Q32. What is the set of possible values that `a` may contain? - -```MATLAB +``` a = randi(10, [1, 10]); a(3) = 11; a(a>2) = 12; ``` - - [ ] 3, 4, 5, 6, 7, 8, 9, 10, 11, 12 - [x] 1, 2, 12 - [ ] 2, 11, 12 - [ ] 1, 12 #### Q33. Which statement is true about the sparse matrices? - - [ ] You can use the `sparse` function to remove empty cells from cell array variables. - [x] Sparse matrices always use less memory than their associated full matrices. - [ ] Mixtures of sparse and full matrices can be combined in all of MATLAB's built-in arithmetic operations. - [ ] The `sparse` function requires its input to be a full matrix with at least 50% zero elements. #### Q34. Which statement using logical indices will result in an error? - -```MATLAB -a = 1:10; -``` - +`a = 1:10;` - [ ] b = a(a ~= 11) - [ ] b = a(a == 1) - [x] b = a(a>6 && a<9) - [ ] b = a(a | 1) #### Q35. Which statement turns `menu` into the variable `menu_string` below? - -```MATLAB +``` menu = {'hot dog' 'corn dog' 'regular burger' 'cheeseburger' 'veggie burger'} - menu_string = - 'hot dog corn dog regular burger cheeseburger veggie burger' ``` - - [x] menu_string = cell2mat(join(menu, newline)) - [ ] menu_string = cell2mat(join(menu, '\n')) - [ ] menu_string = join(menu, newline) - [ ] menu_string = cell2mat(pad(menu)) #### Q36. Which code snippet sets a new random seed based on the current time and saves the current settings of the random number generator? - - [x] - -```MATLAB -rng_settings_curr = rng('shuffle'); -``` - +`rng_settings_curr = rng('shuffle');` - [ ] - -```MATLAB +``` rng(time()); rng_settings_curr = rng(); ``` - - [ ] - -```MATLAB -rng_settings_curr = rand('shuffle'); -``` - +`rng_settings_curr = rand('shuffle');` - [ ] - -```MATLAB +``` rng('shuffle'); rng_settings_curr = rng(); ``` #### Q37. You have a matrix `data` in which each column is mono audio recording from a room in your house. You've noticed that each column has a very different mean and when you plot them all on the same graph, the spread across the y axis make it impossible to see anything. You want to subtract the mean from each column. Which code block will accomplish this? - - [ ] - -```MATLAB -data_nomean = data - repmat(median(data), size(data, 1), 1); -``` - +`data_nomean = data - repmat(median(data), size(data, 1), 1);` - [x] - -```MATLAB -data_nomean = bsxfun(@minus, data, mean(data)); -``` - +`data_nomean = bsxfun(@minus, data, mean(data));` - [ ] - -```MATLAB +``` data_nomean = zeros(size(data)); for i = 1:size(data, 1) data_nomean(i, :) = data(i, :) - mean(data(i, :)); end ``` - - [ ] - -```MATLAB -data_nomean = zscore(data'); -``` +`data_nomean = zscore(data');` #### Q38. Which code block results in an array `b` containing the mean values of each array within `C`? - - [ ] - -```MATLAB +``` b = zeros(1, size(C, 2)); for i_C = 1:size(C, 2) b(i_C) = mean(C(i_C)); end ``` - - [ ] - -```MATLAB -b = cellfun(@mean, C); -``` - +`b = cellfun(@mean, C);` - [ ] - -```MATLAB +``` b = zeros(1, size(C, 1)); for i_C = 1:size(C, 1) b(i_C) = mean(C{i_C}(:)); end ``` - - [x] - -```MATLAB -b = cellfun(@(m) mean(m(:)), C) -``` +`b = cellfun(@(m) mean(m(:)), C)` #### Q39. Which statement creates a logical array that is 1 if the element in `passwords` contains a digit and 0 if it does not? - -```MATLAB -passwords = {'abcd' '1234' 'qwerty' 'love1'}; -``` - +`passwords = {'abcd' '1234' 'qwerty' 'love1'};` - [ ] contains(password, '\d') - [ ] ~isempty(regexp(passwords, '\d')) - [x] cellfun(@(x) ~isempty(regexp(x, '\d')), passwords) - [ ] regexp(passwords, '\d') #### Q40. Which is NOT a function that adds text to a plot? - - [ ] title - [ ] text - [x] label - [ ] legend #### Q41. Which code block most likely produced this graph? - ![MatLab Q39](images/matlab_Q39.jpg) - - [ ] - -```MATLAB +``` figure x = rand(10,10); r = corrcoef(x); surf(r) colorbar ``` - - [x] - -```MATLAB +``` figure x = rand(10,10); r = corrcoef(x); @@ -648,64 +532,47 @@ colorbar ``` #### Q42. What kind of files are stored with the .mat extension? - - [ ] figure files - [ ] script files - [ ] function files - [x] stored variable files #### Q43. You would like to randomly reorder every element in array a and put the result into another array b. Which code is NOT necessary to do that? - -```MATLAB -a = 1:10; -``` - +`a = 1:10;` - [x] - -```MATLAB -b = a(randi(10, 1, 10)); -``` - +`b = a(randi(10, 1, 10));` - [ ] - -```MATLAB +``` m = perms(a); i = randi(factorial(10), 1); b = a(m(i, :)) ``` - - [ ] - -```MATLAB +``` [s, j] = sort(rand(10, 1)); b = a(i); ``` - - [ ] - -```MATLAB +``` b = a(randperm(10)); ``` #### Q44. Which statement returns **1** (true)? - -```MATLAB +``` a = 'stand' b = "stand" ``` - - [x] a == b - [ ] ischar(b) - [ ] length(a) == length(b) - [ ] class(a) == class(b) #### Q45. Which does E contain? -```MATLAB +``` C = {'dog' 'cat' 'mouse'} D = {'cow' 'piranha' 'mouse'} E = setdiff(C,D) ``` - - [x] E = {'cat'} {'dog'} - [ ] E = {'mouse'} - [ ] E = {'cat'} {'cow'} {'dog'} {'piranha'} diff --git a/maven/maven-quiz.md b/maven/maven-quiz.md index 68a1a2a9c8..2d5902be4a 100755 --- a/maven/maven-quiz.md +++ b/maven/maven-quiz.md @@ -47,7 +47,6 @@ - [x] `mvn package` - [ ] `mvn clean install` - [ ] Option 4 - ```shell script mvn clean mvn package @@ -182,6 +181,7 @@ mvn install - [ ] POM #### Q30. What does the following command do? + > mvn archetype:generate \ -DgroupID=sample-maven-project \ -DartifactID=com.palmer.bethan.sample \ diff --git a/microsoft-azure/microsoft-azure-quiz.md b/microsoft-azure/microsoft-azure-quiz.md index 40303a6946..77c876a09d 100755 --- a/microsoft-azure/microsoft-azure-quiz.md +++ b/microsoft-azure/microsoft-azure-quiz.md @@ -191,8 +191,7 @@ - [ ] createArray() - [ ] indexOf() -Q31. The Kineteco web app runs in an Azure Kubernetes Service. You need to monitor feature use and user navigation paths to identify where improvements are needed. What should you do? - +#### Q31. The Kineteco web app runs in an Azure Kubernetes Service. You need to monitor feature use and user navigation paths to identify where improvements are needed. What should you do? - [ ] Install the Analytics agent and configure Azure Monitor for Containers. - [ ] Install the App Insights Agent on AKS nodes. - [x] Configure Application Insights cohorts. diff --git a/microsoft-excel/microsoft-excel-quiz.md b/microsoft-excel/microsoft-excel-quiz.md index f9c1c364ce..a63a354f58 100755 --- a/microsoft-excel/microsoft-excel-quiz.md +++ b/microsoft-excel/microsoft-excel-quiz.md @@ -61,189 +61,162 @@ - [ ] one input #### Q11. In the image below, which option(s) can you select so that the appropriate field headers appear in cells A4 and B3 instead of the terms Row Labels and Column Labels, respectively? - - [ ] Show in Tabular Form - [ ] Show in Compact Form - [ ] Show in Compact For or Show in Outline Form - [x] Show in Tabular Form or Show in Outline Form #### Q12. A cell contains the value 7.877 and you want it to display as 7.9. How can you accomplish this? - - [ ] Use the ROUND() function. - [x] Click the Decrease Decimal button twice. - [ ] In the cells group on the Home tab, click Format > Format Cells. Then cick the Alignment tab and select Right Indent. - [ ] Click the Decrease Decimal button once. #### Q13. Which formula is NOT equivalent to all of the others? - - [ ] =A3+A4+A5+A6 - [ ] =SUM(A3:A6) - [x] =SUM(A3,A6) - [ ] =SUM(A3,A4,A5,A6) #### Q14. Which custom format will make the cells in column A appear like the corresponding cells in column B? - - [ ] MMM-YYYY - [x] MMMM-YYYY - [ ] MMMM&"-"&YYYY - [ ] M-YYYY #### Q15. Which function returns a reference to a cell (or cell range) that is a specified distance from a base cell? - - [ ] OFFSET - [ ] VLOOKUP - [x] INDEX - [ ] MATCH #### Q16. You're working with columsn whose width and font-size should not be changed. Yet the columns are too narrow to display all the text in each cell. What tool should you use to solve the problem? - - [ ] Sparklines - [x] Wrap Text - [ ] Fill Handle - [ ] Centered Alignment #### Q17. Of the four chart types listed, which works best for summarizing time-based data? - - [ ] pie chart - [x] line chart - [ ] XY scatter chart - [ ] bar chart #### Q18. The AutoSum formulas in the range C9:F9 below return unexpected values. Why is this? - - [ ] The AutoSum formulas refer to the column to the left of their cells. - [x] The AutoSum formulas exclude the bottom row of data. - [ ] The AutoSum formulas include the year at the top of each column in the calculation. - [ ] The AutoSum formulas include their own cells, creating a circular reference. #### Q19. The text filter in column A is designed to display only those rows where column A entry has a particular attribute. What is this attribute? - - [x] The second character in the cell is 9. - [ ] The number 9 appears one or more times within the cell. - [ ] The cell is comprised of 9 characters. - [ ] the number 9 apperars once and only once within the cell. #### Q20. To ensure shapres and other objects are an equal left-to-right distance apart, select the shapes, click Page Layout > Align, and the click \_\_\_\_. - - [ ] Aligh Middle - [ ] Distribute Horizontally - [x] Distribute Vertically - [ ] Align Center #### Q21. An organization chart, which shows the hierarchy within a compmay or oraginization, is available as **\_** that is include with Excel. - - [ ] a 3D model - [x] SmartArt - [ ] a Treemap chart - [ ] a drawing object #### Q22. You want to be able to restrict values allowed in a cell and need to create a drop-down list of values from which users can choose. Which feature should you use? - - [ ] Protect Worksheet - [ ] Conditional Formatting - [ ] Allow Users to Edit Ranges - [x] Data Validation #### Q23. To round up a value to the nearest increment of your choice, such as the next five cents, what function should you use? - - [x] ROUNDUP - [ ] MAX - [ ] ROUND - [ ] CEILING #### Q24. Which function returns the largest value in the range H2:H30? - - [x] =MAX(H2:H30) - [ ] =MAXIMUM(H2:H30) - [ ] =LARGE(H2:H30,29) - [ ] =UPPER(H2:H30,1) #### Q25. Which chart type can display two different data series as different series type within the same chart? - - [x] XY chart - [ ] clustered column - [ ] bubble chart - [ ] combo chart #### Q26. In the image below, what does clicking the button indicated by the green arrow do? - - [ ] Hides or shows the formula bar. - [x] Selects all. - [ ] Hides or shows the ribbon. - [ ] Selects objects. #### Q27. Which formula returns the value in cell A1 of the worksheet named MySheet? - - [x] =MySheet!A1 - [ ] =MySheet_A1 - [ ] =MySheet&A1 - [ ] =MySheet@A1 #### Q28. In the worksheet below, you want to copy the formatting of cell A1 into cells B1:D1. Which approach (see arrows) accomplishes this the most efficiently? - - [ ] B - [ ] C - [x] A - [ ] D #### Q29. Which formula correctly counts the number of numeric values in both B4:E4 and G4:I4? - - [ ] =COUNT(B4:E4&G4:I4) - [ ] =COUNT(B4:E4,G4:I4) - [ ] =COUNT(B4:E4 G4:I4) - [x] =COUNT(B4:I4) #### Q30. After activating a chart, which sequence adds a trendline to the chart? - - [ ] In the Format group, select Trendline from the Insert Shapes list. - [ ] Click outside the plot area and select Add Trendline - [ ] Click inside the plot and select Forecast. - [x] Right-click a data series and select Add Trendline. #### Q31. Which Excel add-in will help you find a target result by varying multiple inputs to a formula? - - [x] Goal Seek - [ ] Power Pivot - [ ] Data Analysis - [ ] Solver #### Q32. What tool would you use to prevent the input in a cell of a date outside a specific range? - - [ ] Protect Workbook - [ ] Watch Window - [x] Data Validation - [ ] Filter #### Q33. You want to apply subtotals per sport in the data below. What should you do before applying subtotals? - - [ ] Format the data in column E. - [ ] Format the data in column D. - [x] Sort the data in column D. - [ ] Sort the data in column E. #### Q34. When you sort a list of numerical value into ascending or descending order, the value in the middle of the list is the **\_**. - - [ ] mode - [ ] modulus - [ ] average - [x] median #### Q35. Which format setting does not change the background appearance of a cell? - - [ ] Cell style - [ ] Fill color - [ ] Pattern style - [ ] Font color #### Q36. In Excel, what do most formulas begin with? - - [ ] : - [x] = - [ ] ( - [ ] - #### Q38. You need to determine the commission earned by each Sales Rep, based on the Sales amounts in B3:B50 and the Commission rate specified in cell A1. You want to enter a formula in C3 and copy it down to C50. Which formula should you use? - | | A | B | C | | --- | -------------- | --------------- | --------------- | | 1 | 8.5% | 2018 Commission | | @@ -259,84 +232,72 @@ - [ ] =A1\*B3 #### Q39. If you start a date series by dragging down the fill handle of a single cell that contains the date 12/1/19, what will you get? - - [ ] a series of consecutive days following the initial date - [ ] a series of days exactly one month apart - [ ] a series of days identical to the initial date - [ ] a series of days exactly one year apart #### Q40. To discover how many cells in a range contain values that meet a single criterion, use the \_\_\_function. - - [ ] COUNT - [ ] SUMIFS - [ ] COUNTA - [x] COUNTIF #### Q41. Of these four chart types, which works best for summarizing time-based data? - - [ ] pie chart - [ ] XY scatter chart - [ ] bar chart - [x] line chart #### Q42. Your worksheet has the value 27 in cell B3. What value is returned by the function =MOD (B3,6)? - - [ ] 4 - [ ] 1 - [ ] 5 - [x] 3 #### Q43. For an IF function to check whether cell B3 contains a value between 15 and 20 inclusively, what condition should you use? - - [ ] OR(B3=>15,B3<=20) - [x] AND (B3>=15,B3<=20) - [ ] OR(B3>15,B3<20) - [ ] AND(B3>15, B3<20) #### Q44. Which of these functions returns the largest value within the range H2:H30? - - [ ] =MAXIMUM (H2:H30) - [x] =MAX(H2:H30) - [ ] =LARGE (H2:H30, 29) - [ ] =UPPER(H2:H30,1) #### Q45. Which format setting does not change the background appearance of a cell? - - [ ] Fill color - [x] Font Color - [ ] Pattern Style - [ ] Cell Style #### Q46. The charts below are based on the data in cells a3:g5. The chart on the right was created by copying the one on the left. Which ribbon button was clicked to change the layout of the chart on the right? - - [ ] Move Chart - [ ] Switch Row/Column - [ ] Quick Layout - [ ] Change Chart Type #### Q47. Cell A20 displays an orange background when its value is 5. Changing the value to 6 changes the background color to green. What type of formatting is applied to cell A20? - - [ ] Value Formatting - [ ] Cell Style Formatting - [x] Conditional Formatting - [ ] Tabular format #### Q48. What does this formula do? =Sum(Sheet1:Sheet4!D18) - - [ ] It adds data from cell D18 of Sheet1 and cell D18 of Sheet4 - [ ] It adds data from cell A1 of Sheet1 and cell D18 of sheet4 - [ ] It adds all data in the range A1:D18 in Sheet1, Sheet2, Sheet3 and Sheet4 - [x] It adds data from all D18 cells in Sheet1, Sheet2, Sheet3 and 4 #### Q49. What is the term for an expression that is entered into a worksheet cell and begins with an equal sign? - - [ ] function - [ ] argument - [x] formula - [ ] contents #### Q50. How does the appearance of an array formula differ from that of a standard formula? - - [ ] In a worksheet cell, array formulas have a small blue triangle in the cell's upper-right corner. - [ ] A heavy border appears around the range that is occupied by the array formula. - [x] In the formula bar, an array formula appears surrounded by curly brackets. diff --git a/microsoft-power-bi/microsoft-power-bi-quiz.md b/microsoft-power-bi/microsoft-power-bi-quiz.md index 1f7f990871..95b0a54963 100755 --- a/microsoft-power-bi/microsoft-power-bi-quiz.md +++ b/microsoft-power-bi/microsoft-power-bi-quiz.md @@ -98,7 +98,8 @@ - [ ] sort and group #### Q13. You just deleted a dashboard in the Power Bl service and want to get it back. What should you do? - - [x] Press Ctrl+Z. [proof link1](https://docs.microsoft.com/en-us/power-bi/visuals/service-tips-and-tricks-for-color-formatting) + - [x] Press Ctrl+Z. + [proof link1](https://docs.microsoft.com/en-us/power-bi/visuals/service-tips-and-tricks-for-color-formatting) [link2](https://www.edureka.co/community/26060/how-do-i-undo-something-in-power-bi) - [ ] Select Undo from the toolbar. - [ ] You cannot undo the deletion of a dashboard. @@ -135,7 +136,8 @@ - [ ] Best fit geospatial #### Q18. Formatting options within a visualization depend on what? - - [x] the visualization you are formatting [proof link](https://docs.microsoft.com/en-us/power-bi/visuals/service-getting-started-with-color-formatting-and-axis-properties) + - [x] the visualization you are formatting + [proof link](https://docs.microsoft.com/en-us/power-bi/visuals/service-getting-started-with-color-formatting-and-axis-properties) - [ ] the editor you use - [ ] the visualization group - [ ] your permissions diff --git a/microsoft-power-point/microsoft-power-point-quiz.md b/microsoft-power-point/microsoft-power-point-quiz.md index 5bcfe0c2af..bbe9bda073 100755 --- a/microsoft-power-point/microsoft-power-point-quiz.md +++ b/microsoft-power-point/microsoft-power-point-quiz.md @@ -1,82 +1,65 @@ ## Microsoft Power Point Assessment #### Q1. When you create a new, blank presentation, you begin with one blank slide. What is the layout name of this slide? - - [ ] Blank - [x] Title slide - [ ] Title and Content - [ ] Title Onty #### Q2. What do you use to align objects on a slide to one another? - - [ ] Layout tools - [x] Arrange tools - [ ] Design Ideas feature - [ ] Picture tools -``` -In MS PP 2019 it's called "Drawing Tools". There is no such answer but there is a function called "Arrange" -``` - +`In MS PP 2019 it's called "Drawing Tools". There is no such answer but there is a function called "Arrange"` + #### Q3. Which option must be enabled if you want to manipulate the playback of a video file during a presentation? - - [ ] Record Side Show - [ ] Use Presenter View - [ ] Show Playback Controls - [x] Show Media Controls #### Q4. Which feature analyzes the content of your slides and offers suggested options? - - [x] Design ideas - [ ] Smartart - [ ] Browse for Themes - [ ] Add-Ins #### Q5. Where can you configure advanced PDF options? - - [ ] the Options tab - [ ] the Home tab - [x] the Print dialog box - [ ] the Share tab -``` -Should be in the printer window not in the options menu -``` +`Should be in the printer window not in the options menu` #### Q6. Which tab is best for adding various types of objects to slides? - - [ ] Animations - [ ] view - [ ] File - [x] Insert #### Q7. Which SmartArt category can you use to make informational graphics out of bullet points? - - [x] all of these answers - [ ] Pyramid - [ ] List - [ ] Matrix #### Q8. What is NOT checked when you run the Accessibility Checker? - - [ ] reading order - [ ] slide titles - [ ] missing alt text - [x] grammar -``` [Source](https://support.microsoft.com/en-us/office/rules-for-the-accessibility-checker-651e08f2-0fc3-4e10-aaca-74b4a67101c1?ns=powerpnt&version=16&ui=en-us&rs=en-us&ad=us) -``` #### Q9. How can you change the appearance of a table in one click? - - [ ] Apply a cell stye. - [ ] Apply a graphic style. - [x] Apply a table style. - [ ] Right-click a table and choose a new style. -``` -Table Tools -> Design Tab -> Table Styles -``` -#### Q10. Which option changes a text box so that it automatically changes shape to fit longer text? +`Table Tools -> Design Tab -> Table Styles` +#### Q10. Which option changes a text box so that it automatically changes shape to fit longer text? - [x] Resize shape to fit text - [ ] Do not autofit - [ ] none of these answers @@ -90,31 +73,25 @@ C. Blur D. Angle E. Distance ``` - - [ ] A, B, C - [ ] A, C, E - [ ] B, C, D - [x] C, D, E #### Q12. You want your presentation to play continuously on screen, What option must you set? - - [ ] Use Presenter view - [ ] Advance slides manually - [ ] Advance slides automatically - [x] Loop continuously until 'Esc' -``` -Slide Show Tab -> Set Up Slide Show -> Show options -> Loop continuously until 'Esc' -``` +`Slide Show Tab -> Set Up Slide Show -> Show options -> Loop continuously until 'Esc'` #### Q13. Which statement about the Compress Pictures command is true? - - [x] You can compress all images at the same time. - [ ] You cannot delete cropped areas. - [ ] There are no options for print output. - [ ] You can compress only one image at a time. #### Q14. You have a Word document you would like to import as an outline into a PowerPoint presentation. How should you format the text in your Word document that you want to be the slide content? - - [x] Heading Style 2 - [ ] Subtitle - [ ] Content Style @@ -133,7 +110,6 @@ If your Word document contains no Heading 1 or Heading 2 styles, PowerPoint will - [ ] by urgency #### Q16. Which Arrow Options choice will hide the mouse cursor when presenting, except when the cursor is moved? - - [x] Automatic - [ ] Hidden - [ ] none of these answers @@ -143,42 +119,36 @@ If hidden is selected the courser stays hidden no matter what. ``` #### Q17. Which chart type is best suited for displaying annual financial data for a 10-year period? - - [ ] donut chart - [x] line or area chart - [ ] area chart - [ ] pie chart #### Q18. If you want to create an organizational chart, which SmartArt category works best? - - [ ] Pyramid - [ ] Relationship - [x] Hierarchy - [ ] Matrix #### Q19. When printing multiple handouts, which option will group multipage documents together and make them easier to distribute? - - [ ] Print on Both Sides - [ ] Uncollated - [ ] Print One-sided - [x] Collated #### Q20. How can you adjust which data in a table is used when working on a chart? - - [ ] Click the Switch Row/Column button. - [ ] Click the Refresh Data button. - [ ] Click the Select Data button. - [ ] Click the Edit Data button. #### Q21. Which view lets you see additional information on a second monitor when delivering a presentation? - - [ ] Normal view - [ ] Reading view - [ ] Slide Sorter view - [x] Presenter view #### Q22. A picture looks good in your slide show but pixelated when you print it. How can you fix this? - - [ ] Compress the picture and use the Print (220 ppi) resolution setting. - [ ] Select Best scale for slide show, increase the picture resolution and resize the picture to the original size - [x] Remove picture compression. @@ -189,70 +159,60 @@ File Tab -> Options -> Advanced -> Image Size and Quality -> Do not compress ima File Tab -> Options -> Advanced -> Print -> High quality ``` #### Q23. You have inserted s video on a slide and want the video to automaaticlly start 2 seconods after the associated slide appears. How can you accomplish this? - - [ ] Use playback timings. - [x] Use animation timings. - [ ] Use animation triggers. - [ ] Use video timings. #### Q24. When inserting pictures, how can you avoid distorting the pictureif it is resized later? - - [ ] Use best scale for slide show. - [x] Lock the aspect ratio. - [ ] Compress the picture. - [ ] Set the picture to be relative to the orignal picture size. #### Q25. Which Protect Presentation option protects a presentation from accidental changes? - - [x] Always Open Read-Only - [ ] Add a Digital Signature - [ ] Encrypt with Password - [ ] Mark as Final #### Q26. How can you change colors in your presentation all at once without changing the design? - - [ ] Apply a Color Template. - [x] Apply a Color Theme. - [ ] Apply a Color Palette. - [ ] Customize the Color Fills. #### Q27. What function allows you to borrow slides from a presentation fro an other presentation? - - [ ] Borrow Slides - [ ] There is no special fuction. You must use Copy and Pase - [x] Reuse Slides - [ ] Find Slides #### Q28. What is the term used for the arrangement of elements on a slide, such as Title and Content? - - [ ] theme - [ ] design - [ ] sheme - [x] layout #### Q29. How would you change a list of text to a visual diagram on a slide? - - [ ] Convert to WordArt. - [ ] Convert to Shapes. - [x] Convert to SmartArt. - [ ] Convert to Picture. #### Q30. You need to reorder the levels of shapes on a SmartArt diagram. How can this be done - - [ ] Retype the text - [ ] Change the shapes from rifht to left. - [x] Promt Shapes and/or Demote Shapes. - [ ] Move the shapes up and down. #### Q31. Why would you trim a video? - - [ ] To crop the video thumbnail. - [ ] To resize the video. - [ ] To remove background noise in the video. - [x] To remove some of the beginning and/or end of the video. #### Q32. How would you save your layouts, colors, fonts, effects, background styles and content for others to use with their presentations? - - [x] Export the file as a template. - [ ] Save the file as a PDF. - [ ] Save the file as a POTX. @@ -262,7 +222,6 @@ Personal Hint: There are multiple file suffixes for templates (.potx, .potm, .po ``` #### Q33. You are creating an industrial presentation of a new software program and would like to include an image of your program. How can you use PowerPoint to do this? - - [ ] Use the Copy command. - [x] Use the Screenshot command. (Office2019) - [ ] Use the Print key. diff --git a/microsoft-word/microsoft-word-quiz.md b/microsoft-word/microsoft-word-quiz.md index 04bafca2c6..115398b88a 100755 --- a/microsoft-word/microsoft-word-quiz.md +++ b/microsoft-word/microsoft-word-quiz.md @@ -1,35 +1,30 @@ -## Microsoft Word Assessment +## Microsoft Word #### Q1. Which feature allows you to copy attributes of selected text and apply them to another selection? - - [ ] Merge Formatting command - [ ] Copy and Paste Styles command - [ ] Copy and Paste Attributes command - [x] Format Painter tool #### Q2. To protect a document from accidental changes, which option should you select from the Protect Document (Windows) or Protect (Mac) menu? - - [ ] Mark as Final. - [ ] Add a Digital Signature. - [ ] Encrypt with Password. - [x] Always Open Read-Only. #### Q3. You are finalizing a two-page memo. Rather than having Word decide where page 1 ends, you want the next paragraph to begin on the top of page 2. How do you achieve this? - - [ ] Change the bottom margin to your current location. - [x] Insert a page break. - [ ] Press Shift + Enter (Shift + Return). - [ ] Insert a column break. #### Q4. How do you insert the content of an existing Word document into your current Word document? - - [ ] Click Layout > Text > Text from File. - [ ] Click Insert > Text > Building Blocks Organizer. - [x] Click Insert > Text > Text from File. - [ ] Click Insert > Media. #### Q5. You want to set a wider inside margin to accommodate binding a document where pages are printed in both sides. Which option should you choose in the Page Setup dialog box. - - [ ] Book Fold. - [ ] Different Odd & Even Pages. - [x] Mirror Margins. @@ -41,112 +36,96 @@ Both switch the margin options from left/right to inside/outside. But only one " ``` #### Q6. Which feature lets you place a ghosted logo or text behind the regular text on your document? - - [ ] Background. - [x] Watermark. - [ ] Imagemark. - [ ] Overlay. #### Q7. Where do you select the paper size for a document? - - [ ] Design > Size. - [ ] File > Page Setup. - [x] Layout > Size. - [ ] Layout > Margins. #### Q8. Which option lets you mark your favourite templates for quick reuse in the future? - - [ ] Drag to Home tab. - [ ] Add to chooser. - [x] Pin to list. - [ ] Mark as favourite. #### Q9. If you want to add a caption to a table, where should you look? - - [ ] Insert tab. - [ ] Design tab. - [x] References tab. - [ ] Layout tab. #### Q10. How can you change the appearance of an entire table in a single step? - - [x] Apply a table style. - [ ] Apply a graphic style. - [ ] Right-click a table and choose a new style. - [ ] Apply a cell style. #### Q11. Which option does the Find and Replace feature NOT support? - - [ ] Whole Word Only. - [ ] Replace All. - [x] Check Spelling. - [ ] Match Case. #### Q12. Which statement best describes how a bookmark is used in a Word document? - - [ ] A bookmark is a hyperlink where the label is automatically generated. - [x] A bookmark works in conjuction with hyperlinks to allow you to quickly jump to a specific location in your document. - [ ] A bookmark is a link in your document that can goive you quick access to webpages, files and other locations within your document. - [ ] A bookmark is a color-coded graphic that appears in the navigation pane for easy access to a specific location in your document. #### Q13. What is NOT an option when inviting a colleague to collaborate on a document? - - [ ] including a personalized message - [ ] giving the collaborator the option to edit a document - [ ] setting the collaborator's access to view only - [x] granting administrator access #### Q14. You split a document into three sections. What happens if you change the margins in the first section? - - [ ] The document reverts back to a single section with the new margin settings. - [ ] The new margin settings are applied to all of the sections. - [ ] The new margin settings are applied to the second and third sections. - [x] The new margin settings are applied to just the first section. #### Q15. Which ribbon tab includes commands to add various types of objects or media to your document? - - [x] Insert - [ ] File - [ ] Layout - [ ] Design #### Q16. What type of page is useful at the front of a large document, to identify the document title, author, and other metadata? - - [x] cover page - [ ] blank page - [ ] master page - [ ] table of contents page #### Q17. What happens in this SmartArt object when you press the Delete key? - - [x] The boxes resize to maintain the same overall height. - [ ] The object is deleted and a hole is left behind. - [ ] The text merges with the second box. - [ ] The gaps between the boxes close and the boxes remain the same size. #### Q18. Which command builds an overview of document contents based on applied headings styles? - - [ ] Manage Sources - [ ] Cross-Reference - [ ] Insert Index - [x] Table of Contents #### Q19. Which statistic does the Word Count feature NOT collect? - - [ ] paragraphs - [ ] lines - [x] page breaks - [ ] characters (no spaces) #### Q20. What is the default view when you open a document or create a new document? - - [x] Print Layout view - [ ] Draft view - [ ] Edit view - [ ] Web Layout view #### Q21. You are working on a local copy of a document when Word unexpectedly closes. After you relaunch Word, how can you find the most recently saved version of the document? - - [ ] Click Open > Recent and select Recover Unsaved Documents. - [ ] Click File > Options > Recover Unsaved Documents. - [x] Click File > Open > Recent > Documents. @@ -159,21 +138,18 @@ Read carefully. It's not about recovering, but only the last recent file! ``` #### Q22. What can you NOT insert into a Word document from the Insert tab? - - [x] a sketch - [ ] a symbol - [ ] a 3D model - [ ] an equation #### Q23. What Microsoft Word feature lets you capture a portion of your screen to be used as an image in your document? - - [x] Screen Clipping - [ ] Screen Grab - [ ] Screen Capture - [ ] none of these answers #### Q24. You want to create a shortcut that replaces an acronym that you type with the acronym's full text-for example, replacing `"/mt"` with `"Microsoft Teams"`. What Word feature do you use to create this shortcut? - - [ ] Replace All - [ ] AutoFormat As You Type - [x] Find and Replace @@ -184,9 +160,7 @@ File -> Options -> Proofing -> AutoCorrect Options -> Replace text as you type ``` #### Q25. Your document contains two columns of content with a vertical line between the columns, as shown. From where can you delete the line? - ![picture](https://cdn.lynda.com/question/5d379809498e21bc9b0800bc/5d379809498e21bc9b0800bc-1563924805745) - - [ ] Insert > Text - [x] Columns dialog box - [ ] Insert > Line > Vertical @@ -197,56 +171,48 @@ Layout -> Columns -> More columns -> Line between ``` #### Q26. You crop an image in a document, what happens to the image and the overall document file size? - - [ ] The cropped parts of the image are hidden and the overall file size increases. - [ ] The cropped parts of the image are removed and the overall file size does not change. - [x] The cropped parts of the image are hidden and the overall file size does not change. - [ ] The cropped parts of the image are removed and the overall file size decreases. #### Q27. When you are typing in a paragraph and reach the end of the line, Word automatically starts a new line for you. What is this feature called? - - [ ] line wrap - [x] word wrap - [ ] a new line return - [ ] a soft return #### Q28. You want to create an organizational chart. Which SmartArt category should you choose? - - [ ] Pyramid - [ ] Relationship - [x] Hierarchy - [ ] Matrix #### Q29. When you insert page numbers, which position is NOT an option? - - [ ] page margins - [x] inset - [ ] current position - [ ] bottom of page #### Q30. How can you quickly move an insertion point to the start of the previous paragraph? - - [x] Ctrl + Up Arrow - [ ] Ctrl + Page Up - [ ] Alt + Ctrl + Up Arrow - [ ] Alt + Ctrl + Page Up #### Q31. You send a document to two clients for review, and each client returns a separate, edited version of the document. How do you most efficiently review their feedback? - - [ ] Click **Review > Accept**. - [ ] Turn on **Track Changes**. - [x] Click **Review > Compare**. - [ ] Click **Review > Smart Lookup**. #### Q32. What is the difference between a footnote and an endnote? - - [ ] Footnotes use Arabic numerals and endnotes use letters. - [ ] A footnote is placed in the page footer, and an endnote is placed on a blank page at the end of the document. - [x] A footnote is placed at the bottom of the page, and an endnote is placed at the end of the document. - [ ] An endnote always appears on the bottom of the same page that it references. -#### Q33. Which formatting option was used to create the effect shown below? - +#### Q33. Which formatting option was used to create the effect shown below? ![picture](https://cdn.lynda.com/question/5d379809498e21bc9b0800c4/5d379809498e21bc9b0800c4-1563924833648) - [ ] Drop Cap - [x] Subscript @@ -254,7 +220,6 @@ Layout -> Columns -> More columns -> Line between - [ ] Superscript #### Q34. What Word building block uses headings to help users identify the contents of a document? - - [x] table of contents - [ ] page break - [ ] cover page @@ -267,21 +232,18 @@ B. Track changes has been turned off. C. Display for Review is set to Original. D. Inserts and Deletions and Formatting are turned off in Show Markup. ``` - - [ ] A, C, D - [x] A, B - [ ] D - [ ] A, C #### Q36. You are coordinating the update of your company's 10-chapter operations manual. You begin by saving each chapter as a separate document. What Word feature can you use to manage all of these chapter documents? - - [ ] the Organizer - [x] master document - [ ] outline view - [ ] versioning #### Q37. Which is a benefit of using heading styles to format a report? - - [ ] You can reformat all headings by changing style sets. - [ ] You can navigate from heading to heading in the Navigation pane. - [x] all of these answers @@ -294,7 +256,6 @@ D. Inserts and Deletions and Formatting are turned off in Show Markup. C. On the **Insert** Tab, in the **Illustrations** group, select **Icons**. From the icons gallery, select the **Signs and Symbols** category. Then select the trademark symbol and click **Insert**. D. Type "(R)". ``` - - [ ] B and D - [x] A and B - [ ] B and C @@ -306,28 +267,24 @@ R: Registered trademark symbol ``` #### Q39. You are reformatting a professional document that you created previously using manual formatting. In your document, first-level headings are formatted with Arial 11 Bold. What is the fastest way to create and apply a Heading 1 style using these properties? - - [ ] In the **Styles** task pane, click **New Style** and select **Arial 11 Bold**. - [ ] Hold the Ctrl key (Windows) or Command key (Mac) and click the **Format Painter**. Then select **New Style**. - [x] Select one of the first level headings. Right-click **Heading 1** and update it to match the selection. - [ ] Select the text, right-click to display the formatting bar, and select **Styles > Copy**. #### Q40. You are typing text in two columns . When you reach the end of a paragraph in column 1, you want to start the next paragraph in column 1 on the next page. What type of break should you insert at this point? - - [ ] next page section break - [ ] continiuos section break - [ ] column break - [x] page break ### Q41. You want to capture all the content and design elements in your current document, so you can use them as a starting point when creating new documents. To do so, save the current document as _______. - - [x] a template file - [ ] a PDF - [ ] an openDocument Text file - [ ] a Rich Text Format file ### Q42. Which file format best preserves formatting and allows editing when a Word document is transferred to another application? - - [ ] XML Paper Specification (XPS) - [ ] OpenDocument Text(ODT) - [x] Rich Text Format (RTF) @@ -335,7 +292,6 @@ R: Registered trademark symbol #### Q43. How can you break a table into two parts? - - [x] Use the Split Table command. - [ ] Press Shift + Enter (Windows) or Sift + Return (Mac). - [ ] Use the Section Break command. @@ -345,7 +301,6 @@ Tables Layout tab -> Merge group -> Split Table ``` #### Q44. What can you NOT create from a Word document? - - [ ] a Word macro-enabled document - [ ] a plan text file - [x] a multipage website @@ -355,21 +310,18 @@ html files are one sided ``` #### Q45. How can you add a manual line break to a paragraph? - - [ ] Press Enter twice (Windows) or Return twice (Mac). - [ ] Press Alt + Enter (Windows) or Option + Return (Mac). - [ ] Press Enter (Windows) or Return (Mac). - [x] Press Shift + Enter (Windows) or Shift + Return (Mac) #### Q46. You want to repeat an element (such as the date<9 on all pages of the document. Which options should you choose? - - [x] Insert > Header & Footer - [ ] Insert > Text - [ ] Design > Header & Footer - [ ] View > Header & Footer #### Q47. A document has been shared with you from your colleague's OneDrive library. They habe given only you editing acces. What can you do with this document? - - [x] Share the document with others. - [ ] Assume ownership of the document. - [ ] Remove access from another user. diff --git a/mongodb/mongodb-quiz.md b/mongodb/mongodb-quiz.md index 134087f8d2..5f643ed281 100755 --- a/mongodb/mongodb-quiz.md +++ b/mongodb/mongodb-quiz.md @@ -1,397 +1,325 @@ -## MongoDB Assessment +## MongoDB #### Q1. Which command adds members to the replica set from MongoDB shell? - - [x] rs.add("") - [ ] replicaSetAdd("") - [ ] rs.insert("") - [ ] replica.add("") #### Q2. Which MongoDB shell command should you use to back up a database? - - [ ] restore - [ ] backup - [ ] mongobackup - [x] mongodump #### Q3. Which shell query displays all citizens with an age greater than or equal to 21? - - [ ] db.citizens.select('WHERE age >= 21') - [ ] db.citizens.select('age >= 21') - [ ] db.citizens.select('WHERE age >= 21') - [x] db.citizens.select({age: {\$gte: 21}}) #### Q4. What does a MongoDB collection consist of? - - [ ] data - [x] documents - [ ] fields - [ ] rows #### Q5. Given an ObjectId in \_id, how do you get the time it was created? - - [ ] getDateTime(\_id) - [ ] \_id.createDate() - [x] \_id.getTimestamp() - [ ] \_id.getDateTime() #### Q6. Given a cursor named myCursor, which command returns a boolean value? - - [x] myCursor.hasNext() - [ ] myCursor.sort() - [ ] myCursor.next() - [ ] myCursor.find() #### Q7. Which command returns a specific document in the user's collection? - - [x] db.users.find({\_id: 1}) - [ ] db.users.seek({\_id: 1}) - [ ] db.users.query({\_id: 1}) - [ ] db.query.users({\_id: 1}) #### Q8. To import a JSON array into Mongo, what flags are needed with MongoDBimport? - - [ ] `--type jsonArray` - [ ] `--json` - [ ] `--type json` - [x] `--jsonArray` #### Q9. Choose the shell command that connects to a MongoDB database. - - [x] mongo - [ ] mongod - [ ] mongoconnect - [ ] dbconnect #### Q10. In the MongoDB shell, how can you tell if an index was used with a query? - - [x] db.customers.find({lastName: 'smith'}).explain() - [ ] db.customers.find({lastName: 'smith'}).perf() - [ ] db.customers.find({lastName: 'smith'}).plan() - [ ] db.customers.find({lastName: 'smith'}).usedIndex() #### Q11. Suppose your aggregation pipeline terminated with an exception referring to exceeded memory limit. What is the best way to resolve the issue? - - [ ] Set useMemory to twice amount indicated in exception. - [ ] Switch a 64 bit instance of MongoDB. - [ ] Increase the memory of the MongoDB server. - [x] Set allowDiskUse to true. #### Q12. What is the recommended way to delete a user? - - [ ] db.deleteUser("user") - [ ] db.removeUser("user") DEPRECATED - [ ] db.remove("user") - [x] db.dropUser("user") #### Q13. What the primary database in a replica set fails, when does failover begin? - - [ ] once the primary has been down for 10 minutes - [ ] once the primary reboots - [x] immediately - [ ] after the administrator reboots the primary #### Q14. What is the correct option to set up Kerberos when starting MongoDBd? - - [x] `--setParameter authenticationMechanisms=GSSAPI` - [ ] `--setAuthentication=GSSAPI` - [ ] `--setParam auth=K` - [ ] `--setAuth method=Kerberos` #### Q15. What is the purpose of an arbiter in a replica set? - - [ ] It monitors replica set and sends email in case of failure - [x] It casts the tie-breaking vote in an election. - [ ] It holds a backup copy of the database. - [ ] It reboots the failed server. #### Q16. You would like to know how many types of items you have in each category. Which query does this? - - [ ] db.product.group({\_id: "$category", count: {$sum:1}}) - [ ] db.product.aggregate($sum: {_id: "$category", count: {$group:1}}}) - [x] db.product.aggregate($group: {_id: "$category", count: {$sum:1}}}) - [ ] db.product.aggregate($count: {_id: "$category", count: {$group:1}}}) #### Q17. To restrict the number of records coming back from a query, which command should you use? - - [ ] take - [x] limit - [ ] max - [ ] skip #### Q18. We have a collection named restaurants with the geographical information stored in the location property, how do you create a geospatial index on it? - - [x] db.restaurants.CreateIndex({location: "2dsphere"}) - [ ] db.restaurants.geospatial({location: "2dsphere"}) - [ ] db.restaurants.CreateIndex("2dsphere":"location") - [ ] db.restaurants.CreateIndex({geospatial: "location"}) #### Q19. How do you find documents with a matching item in an embedded array? - - [ ] `**db.customers.findmatch ({"jobs":"secretary"})**` - [ ] `**db.customers.find ({"jobs:secretary"})**` - [ ] `**db.customers.find ({"jobs":["secretary"]})**` - [x] `**db.customers.find ({"jobs":"secretary"})**` #### Q20. Which query bypasses the first 5 customers and returns the next 10? - - [ ] `**db.customers.find({}, {skip: 5, limit: 10})**` - [ ] `**db.customers.find({}.page(5).take(10))**` - [ ] `**db.customers.find({}).skip(5).take(10)**` - [x] `**db.customers.find({}).skip(5).limit(10)**` #### Q21. How do you create a text index? - - [ ] db.customers.createIndex({firstName, lastName}) - [ ] db.customers.createTextIndex({firstName, lastName}) - [x] db.customers.createIndex({firstName: "text", lastName: "text"}) - [ ] db.customers.createText({firstName: 1, lastName: 1}) #### Q22. Assuming you have customers collection with a firstName and lastName field, which is the correct MongoDB shell command to create an index on lastName, then firstName both ascending? - - [ ] db.customers.createIndex("lastName, firstName, ASC") - [ ] db.customers.addIndex({lastName:"ASC", firstName: "ASC"}) - [ ] db.customers.newIndex({lastName:1, firstName:1}) - [x] db.customers.createIndex({lastName:1, firstName: 1}) #### Q23. One of the documents in your collection has an _ id based upon an older database design and you want to change it. You write an update command to find the document and replace the _ id but the \_ id isnt changed. How should you fix the issue? - - [ ] Set the replace option to true. - [ ] Use the replaceOne() command instead. - [x] You cant. Once set the \_ id field cannot be changed. - [ ] Use the updateOne() command instead. #### Q24. A compound index allows you to \_\_\_ ? - - [ ] Calculate interest quickly. - [ ] Accomplish nothing, since compound indexes arent allowed in Mongo. - [ ] Use more than one field per index. - [x] Combine fields in different collations. #### Q25. Why are ad-hoc queries useful? - - [ ] They do not have to use the same operators. - [ ] You do not need to structure the database to support them. - [ ] They autogenerate reports. - [x] They run faster than indexed queries. #### Q26. How often do the members of a replica set send heartbeats to each other? - - [ ] every 2 minutes - [ ] every 5 seconds - [x] every 2 seconds - [ ] every 10 seconds #### Q27. Which command returns all of the documents in the customers collection? - - [ ] `**db.customers.all()**` - [ ] `**db.find().customers();**` - [x] `**db.customers.find();**` - [ ] `**db.customers.show()**` #### Q28. Given a cursor named myCursor, pointing to the customers collection, how to you get basic info about it? - - [ ] myCursor.stats() - [ ] myCursor.dump() - [ ] myCursor.info() - [x] myCursor.explain() #### Q29. What is true about indexes? - - [x] They speed up read access while slowing down writes. - [ ] They secure the database from intruders. - [ ] They speed up reads and writes. - [ ] They speed up write access while slowing down reads. #### Q30. What is the preferred format to store geospatial data in MongoDB? - - [ ] Latitude, longitude - [ ] XML - [x] GeoJSON - [ ] BSON #### Q31. Which programming language is used to write MongoDB queries? - - [ ] Python - [x] JavaScript - [ ] SQL - [ ] TypeScript #### Q32. You have two text fields in your document and you'd like both to be quickly searchable. What should you do? - - [x] Create a text index on each field. - [ ] MongoDB is not able to do this. - [ ] Create a compound text index using both fields. - [ ] Create a text index on one field and a single field index on the other. #### Q33. To import a CSV file into MongoDB, which command should you issue? - - [ ] mongorestore - [ ] mongoi - [ ] upload - [x] mongoimport #### Q34. In an MongoDB mapReduce command, the reduce function should \_\_\_\_. - - [ ] access the database - [ ] be called only when the key has a single value - [ ] acces the database only to perform read operations - [x] not access the data #### Q35. On a newly created collection, which field will have an index? - - [ ] the name field - [ ] the Objectid field - [x] the \_id field - [ ] no field will have an index #### Q36. You have a collection of thousands of students. You'd like to return the second set of 20 documents from the sorted collection. What is the proper order in which to apply the operations? - - [ ] limit, skip, sort - [ ] sort, limit, skip - [ ] limit, sort, skip - [x] sort, skip, limit #### Q37. You would like the stats() command to return kilobytes instead of bytes. Which command should you run? - - [x] `db.vehicle.stats(1024)` - [ ] `db.vehicle.stats("kilobytes")` - [ ] `db.vehicle.stats(true)` - [ ] `db.vehicle.stats("kb")` #### Q38. You'd like to modify an existing index. What is the best way to do this? - - [ ] Use the `reIndex()` command to modify the index. - [x] Delete the original index and create a new index. - [ ] Call the `createIndex()` command with the update option. - [ ] Use the `updateIndex()` command. #### Q39. You need to delete the index you created on the description field. Which command will accomplish this? - - [x] `db.vehicle.dropIndex("description_text")` - [ ] `db.vehicle.dropIndex({"description":"text"})` - [ ] `db.vehicle.removeIndex({"description":"text"})` - [ ] `db.vehicle.removeIndex("description_text")` #### Q40. You would like to know how many different categories you have. Which query will best get the job done? - - [ ] `db.vehicle.distinct("category")` - [ ] `db.vehicle.unique("category")` - [x] `db.vehicle.distinct("category").count()` - [ ] `db.vehicle.distinct("category").length` #### Q41. From the MongoDB shell, how do you create a new document in the customers collection? - - [ ] `**db.customers.add({name: "Bob"})**` - [ ] `**db.customers.save({name: "Bob"})**` - [x] `**db.customers.create({name: "Bob"})**` - [ ] `**db.customers.new({name: "Bob"})**` #### Q42. Which field is required of all MongoDB documents? - - [x] \_id - [ ] \_name - [ ] objectId - [ ] mongoDB is schema-less so no field is required #### Q43. Which MongoDB shell command should you use to back up a database? - - [ ] backup - [ ] restore - [ ] mongobackup - [x] mongodump #### Q44. Which shell query displays all citizens with an age greater than or equal to 21? - - [ ] `**db.citizens.find('WHERE age >= 21')**` - [x] `**db.citizens.find({age: {\$gte: 21}})**` - [ ] `**db.citizens.where('age >= 21')**` - [ ] `**dbcitizens.select('WHERE age >=21')**` #### Q45. A MongoDB instance has at least what three files? - - [x] data, namespcae, and journal - [ ] namespace, journal, and log - [ ] journal, data, and database - [ ] data, log, and journal #### Q46. You'd like a set of documents to be returned in last name, ascending order. Which query will accomplish this? - - [ ] `db.persons.find().sort({lastName: -1}}` - [x] `db.persons.find().sort({lastName: 1}}` - [ ] `db.persons.find().sort({lastName: ascending}}` - [ ] `db.persons.find().sort({lastName: $asc}}` - #### Q47. What is NOT a standard role in MongoDB? - -- [ ] restore +- [ ] restore - [ ] read/write -- [x] dbadmin +- [x] dbadmin - [ ] delete collections #### Q48. Which command returns all of the documents in the customers collection? - - [ ] db.customers.show(); - [x] db.customers.all(); - [ ] db.customers.find(); - [ ] db.find().customers(); #### Q49. Whih MongoDB shell command deletes a single document? - -- [ ] db.customers.delete({_id: 1}); -- [x] db.customers.drop({_id: 1}); -- [ ] db.drop.customers({_id: 1}); -- [ ] db.customers.remove({_id: 1}); +- [ ] db.customers.delete({\_id: 1}); +- [x] db.customers.drop({\_id: 1}); +- [ ] db.drop.customers({\_id: 1}); +- [ ] db.customers.remove({\_id: 1}); #### Q50. Using the MongoDB shell, how do you remove the customer collection and its indexes? - - [ ] db.customers.remove({}).indexes(); - [ ] db.customers.remove({}); - [x] db.customers.drop(); - [ ] db.customers.delete(); -#### Q51. By default, applications direct their read operations to which member of the replica set? - +#### Q51. By default, applications direct their read operations to which member of the replica set? - [ ] primary - [x] arbiter - [ ] secondary - [ ] backup -#### Q52. You need to get the names of all the indexes on your current collection. What is the best way to accomplish this? - +#### Q52. You need to get the names of all the indexes on your current collection. What is the best way to accomplish this? - [ ] db.people.getName(); - [ ] db.people.reIndex({names: 1}); - [x] db.people.getIndexKeys(); - [ ] db.people.getIndex(); -#### Q52. You are going to do a series of updates to multiple records. You find setting the multi option of the update() command too tiresome. What should you do instead? - +#### Q52. You are going to do a series of updates to multiple records. You find setting the multi option of the update() command too tiresome. What should you do instead? - [ ] Use the replaceMany() command instead - [x] Use the updateMulti() command instead - [ ] Use the updateMany command instead - [ ] Set the global multi option to True -#### Q53. To cleanly shut down MongoDB, what command should you use from the MongoDB shell? - +#### Q53. To cleanly shut down MongoDB, what command should you use from the MongoDB shell? - [ ] quit() - [ ] exit() - [x] db.shutdownServer() - [ ] db.shutdown() - - - - - - - - - - - - - - - - - diff --git a/mysql/mysql-quiz.md b/mysql/mysql-quiz.md index dab89bf8dd..7fa44723be 100755 --- a/mysql/mysql-quiz.md +++ b/mysql/mysql-quiz.md @@ -1,86 +1,70 @@ -## mysql Assessment +## MySQL #### Q1. When you have a subquery inside of the main query, which query is executed first? - - [ ] The subquery is never executed. Only the main query is executed. - [ ] They are executed at the same time - [ ] the main query - [x] the subquery #### Q2. You need to export the entire database, including the database objects, in addition to the data. Which command-line tool do you use? - - [ ] mysqlexport - [ ] mysqladmin - [x] mysqldump - [ ] mysqld #### Q3. You must ensure the accuracy and reliability of the data in your database. You assign some constraints to limit the type of data that can go into a table. What type of constraints are you assigning? - - [ ] row level - [ ] database level - [x] column level - [ ] function leve #### Q4. Which option of most MySQL command-line programs can be used to get a description of the program's different options? - - [ ] --options - [ ] ? - [x] --help - [ ] -h #### Q5. MySQL uses environment variables in some of the programs and command-line operations. Which variable is used by the shell to find MySQL programs? - - [ ] DIR - [ ] HOМЕ - [x] PATH - [ ] MYSQL_HOME #### Q6. How can you create a stored procedure in MySQL? - -- [ ] `-` - -```sql +- [ ] +``` 1 CREATE PROCEDURE P () AS 2 BEGIN 3 END; ``` - -- [x] `-` - -```sql +- [x] +``` 1 CREATE PROCEDURE P () 2 BEGIN 3 END ``` - -- [ ] `-` - -```sql +- [ ] +``` 1 CREATE PROCP 2 BEGIN 3 END; ``` - -- [ ] `-` - -```sql +- [ ] +``` 1 CREATE PROC P AS O 2 BEGIN 3 END; ``` #### Q7. If you were building a table schema to store student grades as a letter (A, B, C, D, or F) which column type would be the best choice? - - [x] ENUM - [ ] OTEXT - [ ] VARCHAR - [ ] LONGTEXT #### Q8. Management has requested that you build an employee database. You start with the employee table. What is the correct syntax? - -- [ ] `-` - -```sql +- [ ] +``` 1 CREATE TABLE employee ( 2 employee ID char(10), 3 firstName varchar(50), @@ -90,10 +74,8 @@ 7 PRIMARY KEY ON employeeID 8 ); ``` - -- [ ] `-` - -```sql +- [ ] +``` 1 CREATE TABLE employee ( 2 employee ID char(10), 3 firstName varchar(50), @@ -103,10 +85,8 @@ 7 PRIMARY KEY employeeID 8 ); ``` - -- [ ] `-` - -```sql +- [ ] +``` 1 CREATE TABLE IF EXISTS employee ( 2 employee ID char(10), 3 firstName varchar(50), @@ -116,9 +96,7 @@ 7 PRIMARY KEY (employeeID) 8 ); ``` - -- [x] `-` - +- [x] ```sql 1 CREATE TABLE IF NOT EXISTS employee ( 2 employee ID char(10), @@ -131,261 +109,222 @@ ``` #### Q9. You are working with the tables as shown in this diagram. You need to generate the list of customers who purchased certain car models. Which SQL clause do you use? - ![mysql Q09](images/mysql_q09.jpg) - - [ ] LIKE - [x] IN - [ ] BETWEEN - [ ] HAVING #### Q10. Which query would NOT be used to administer a MySQL server? - - [ ] USE db - [x] SELECT column FROM tbl - [ ] SHOW COLUMNS FROM tb1 - [ ] SHOW TABLES #### Q11. What is the product of the database designing phase? - - [ ] system definition - [x] logical model - [ ] physical model - [ ] normalized database - NOT SURE THE QUESTION IS CORRECT. Logical, physical and normalized are all products of the designing phase in this order. + `NOT SURE THE QUESTION IS CORRECT. Logical, physical and normalized are all products of the designing phase in this order.` #### Q12. MySQL server can operate in different SQL modes, depending on the value of the sql_mode system variable. Which mode changes syntax and behavior to conform more closely to standard SQL? - - [ ] TRADITIONAL - [x] ANSI - [ ] MSSQL - [ ] STRICT #### Q13. MySQL programs are a set of command-line utilities that are provided with typical MySQL distributions. MySQL is designed to be a database. - - [ ] database and programming - [ ] user and administrator - [x] client and server - [ ] syntax and objects #### Q14. Which MySQL command shows the structure of a table? - - [ ] INFO table; - [ ] SHOW table; - [ ] STRUCTURE table; - [x] DESCRIBE table; #### Q15. MySQL uses security based on**\_**for all connections, queries, and other operations that users can attempt to perform. - - [ ] administrator schema - [ ] encrypted algorithms - [ ] user settings -- [x] access control lists (https://dev.mysql.com/doc/refman/8.0/en/security-guidelines.html) +- [x] access control lists + [reference](https://dev.mysql.com/doc/refman/8.0/en/security-guidelines.html) #### Q16. Which MySQL command modifies data records in a table? - - [x] UPDATE - [ ] MODIFY - [ ] CHANGE - [ ] ALTER #### Q17. What is the best type of query for validating the format of an email address in a MySQL table? - - [ ] a SQL query using partitions - [ ] a SQL query using IS NULL - [x] a SQL query using a regular expression - [ ] a SQL query using LTRIM Or RTRIM #### Q18. In MySQL, queries are always followed by what character? - - [ ] line break - [ ] colon - [x] semicolon - [ ] period #### Q19. How can you remove a record using MySQL? - - [ ] DELETE - [x] DELETE FROM - [ ] REMOVE - [ ] REMOVE FROM #### Q20. Which choice is NOT a statement you would use to filter data? - - [x] GROUP_BY - [ ] WHERE - [ ] LIMIT - [ ] LIKE #### Q21. What does the following SQL statement return? - `SELECT * FROM Employees WHERE EmployeeName LIKE 'a%'` - - [ ] It records in the Employees table where the value in the EmployeeName column doesn't have an "a". - [x] It records in the Employees table where the value in the EmployeeName column starts with "a". - [ ] It records in the Employees table where the value in the EmployeeName column has an "a". - [ ] It records in the Employees table where the value in the EmployeeName column ends with "a". #### Q22. In `SELECT * FROM clients;` what does clients represent? - - [ ] a SQL query - [ ] a SQL statement - [ ] a database - [x] a table #### Q23. How does MySQL differ from SQL? - - [ ] SQL is a standard language for retrieving and manipulating data from structured databases. MySQL is a nonrelational database management system that is used to manage SQL databases. - [x] SQL is a standard language for retrieving and manipulating data from structured databases. MySQL is a relational database management system that is used to manage SQL databases. - [ ] They are not different. MySQL and SQL refer to the same thing. - [ ] My SQL is a language, and SQL is a software application. #### Q24. If you need to order a table of movies by name, which query will work? - - [ ] SELECT \* FROM movies GROUP BY name - [x] SELECT \* FROM movies ORDER BY name - [ ] SELECT \* FROM movies ORDER TABLE by name - [ ] SELECT \* FROM movies FILTER BY name #### Q25. A trigger is a database object that is associated with a table, and that activates when a particular event occurs for the table. Which three events are these? - - [x] INSERT, UPDATE, DELETE - [ ] CREATE, ALTER, DROP - [ ] OPEN, FETCH, CLOSE - [ ] DECLARE, SET, SELECT #### Q26. You are working with very large tables in your database. Which SQL clause do you use to prevent exceedingly large query results? - - [ ] UNIQUE - [x] LIMIT - [ ] DISTINCT - [ ] CONSTRAINT #### Q27. What is the default port for MySQL Server? - - [ ] 25 - [ ] 990 - [ ] 0 - [x] 3306 #### Q28. How can you filter duplicate data while retrieving records from a table? - - [x] DISTINCT - [ ] WHERE - [ ] LIMIT - [ ] AS #### Q29. What is the difference between DROP and TRUNCATE? - - [ ] They both refer to the same operation of deleting the table completely. - [ ] They both refer to the same operation of clearing the table, but keeping its definition intact. - [ ] TRUNCATE deletes table completely, removing its definition as well. DROP clears the table but does not delete the definition. - [x] DROP deletes table completely, removing its definition as well. TRUNCATE clears the table but does not delete the definition. #### Q30. How do you select every row in a given table named "inventory"? - - [ ] SELECT all FROM inventory; - [ ] FROM inventory SELECT all; - [ ] FROM inventory SELECT \*; - [x] SELECT \* FROM inventory; #### Q31. In an efficiently designed relational database, what does every table have? - - [ ] set of triggers - [ ] sequential id field - [ ] minimum of three columns - [x] primary key #### Q32. MySQL option files provide a way to specify commonly used options so that they need not be entered on the command line each time you run a program. What is another name for the option files? - - [ ] variable settings - [x] configuration files - [ ] help files - [ ] default settings #### Q33. After installing MySQL, it may be necessary to initialize the \_\_ which may be done automatically with some MySQL installation methods. - - [ ] storage engine - [ ] user accounts - [ ] grant tables - [x] data directory #### Q34. You need to export the data in the customers table into a CSV file, with columns headers in the first row. Which clause do you add to your MySQL command? - - [ ] JOIN - [ ] WITH HEADERS - [x] UNION - [ ] WITH COLUMNS #### Q35. One form of backup, replication, enables you to maintain identical data on multiple servers, as a \_\_\_ configuration. - - [ ] remote-local - [ ] parent-child - [x] master-slave - [ ] logical-physical #### Q36. What is the requirement for using a subquery in the SELECT clause? - - [ ] the subquery must use an aggregate function. - [ ] the subquery must refer to the same table as the main query. - [x] the subquery must return a single value. - [ ] the subquery must return at least one value. #### Q37. Each time MySQL is upgraded, it is best to execute mysql_upgrade, which looks for incompatibilities with the upgraded MySQL server. What does this command do, upon finding a table with a possible incompatibility? - - [x] it performs a table check and, if problems are found, attempts a table repair. - [ ] it stops and notifies the server administrator that the upgrade cannot complete until the incompatibility issue are resolved. - [ ] it provides a full report of the table specifications and the incompatibilities to the server administrator. - [ ] it performs a table check and, if problems are found, displays the information for the server administrator to take action. #### Q38. What mysql statement is used to check which accounts have specific privileges? - - [x] show grants (displays the privileges and roles that are assigned to a MySQL user account or role) - [ ] show privileges (shows the list of system privileges that the MySQL server supports) - [ ] show access - [ ] show user permissions #### Q39. What table cannot have a trigger associated with it? - - [ ] temporary - [x] system - [ ] large - [ ] new #### Q40. later versions of mysql support the native json data type for storing json documents. What is a drawback of json columns? - - [ ] inefficient for storing json documents - [x] cannot be indexed directly - [ ] documents cannot be validated when stored in json columns - [ ] cannot be normalized --- no #### Q41.Which statement is true for the diagram below - ![mysql Q41](images/mysql_q41.jpg) - - [ ] carid is the primary key for purchases - [ ] carid is the foreign key for cars.carid - [x] customerid is the foreign key for customers.id - [ ] customerid is the primary key for purchases #### Q42.Which statement can you use to load data from a file into the table? - - [ ] cat file|mysql - [x] load data infile (correct if the file is already on the server) - [ ] load data local infile (also correct but only if the file is from the client) - [ ] extended insert statement #### Q43.See tables in the diagram. Make sure that any record added to the purchase table consists of a customerId, which exists in the customer table and a carId, which exists in the car table. You decide to use a trigger to do the validation. Which one? - ![mysql Q43](images/mysql_q43.jpg) - - [ ] after insert - [ ] if exists (invalid not a trigger; IF function + EXISTS clause) - [x] before insert - [ ] cross join (valid for a check but not a trigger) #### Q44. Which is the correct syntax of an extended insert statement? - - [ ] insert into cars (make, model, year) values ('Ford', 'Mustang', 2002) ('Mercedes', 'C', 2003) @@ -403,108 +342,93 @@ ('Mercedes', 'C', 2003) ### Q 45. You need an exact copy of a table with all columns and indexes. How? - - [ ] create table - [ ] clone table - [ ] insert into - [x] show create table #### Q46. you need to make your mysql system secure against hackers. What are you not supposed to do? - - [ ] Run the server as normal user - [x] grant process or super privilege to other user - [ ] run the server as the unix root user - [ ] use the compressed protocol #### Q47. You manage a database with a table "customers". You created a temporary table also called "customers" with which you are working for the duration of your session. You need to recreate the temporary table with different specs. Which command do you need to run first? - - [ ] create temporary table customers; - [ ] drop temp table customers; - [ ] drop table customers; - [x] drop temporary table customers; #### Q48. you need to run a complex query with recursive subqueries but without creating a stored procedure or a function. Which command or clause do you use? - - [ ] collate - [x] union - [ ] full join - [ ] with #### Q49. Which choice is not a processing algorithm for database views? - - [ ] merge - [x] updatable - [ ] temptable - [ ] undefined #### Q50. What is the MySQL `perror` command-line utility used for? - - [ ] to display your version of MySQL - [ ] to display operating system error codes - [ ] to display default settings that are in error - [x] to display storage error codes -(\*note: perror prints a description for a system error code or for a storage engine (table handler) error code. link: https://dev.mysql.com/doc/refman/5.7/en/perror.html#:~:text=2%20perror%20%E2%80%94%20Display%20MySQL%20Error%20Message%20Information,-For%20most%20system&text=You%20can%20find%20out%20what,(table%20handler)%20error%20code.) +`*note: perror prints a description for a system error code or for a storage engine (table handler) error code.` +[link:](https://dev.mysql.com/doc/refman/5.7/en/perror.html#:~:text=2%20perror%20%E2%80%94%20Display%20MySQL%20Error%20Message%20Information,-For%20most%20system&text=You%20can%20find%20out%20what,(table%20handler)%20error%20code.) #### Q51. How can you list all columns for a given table? - - [ ] SHOW table COLUMNS; - [x] SHOW COLUMNS FROM table; (\*not on test but `DESCRIBE tablename` is a shortcut for this command) - [ ] LIST table COLUMNS; - [ ] SELECT COLUMNS FROM table; #### Q52. How would you list the full set of tables in the currently selected database? - - [ ] SELECT \* FROM DATABASE; - [x] SHOW TABLES; - [ ] LIST TABLES; - [ ] SELECT ALL TABLES; #### Q53. Which choice is not one of the table maintenance statements? - - [ ] CHECK TABLE; - [x] CREATE TABLE; - [ ] ANALYZE TABLE; - [ ] OPTIMIZE TABLE; #### Q54. In which table does MySQL store passwords for user accounts? - - [ ] mysql.accounts; - [ ] mysql.passwords; - [ ] mysql.admin; - [x] mysql.user; #### Q55. Management has requested that you build an employee database. You need to include each employee's current position and salary, as well as all prior positions and salaries with the company. You decide to use a one-to-many structure: an employee table with the main information such as name and address, and an employment table with position and salary history. You can use the employeelD field to connect them. What is employment.employeelD an example of? - - [ ] primary key; - [ ] secondary key; - [x] foreign key; - [ ] alternet key; #### Q56. In recent versions of MySQL (8.0+), what's the correct syntax to declare a CTE (Common Table Expression)? - - [ ] WITH (SELECT id FROM users) as cte, SELECT ... - [ ] WITH (SELECT id FROM users) as cte SELECT ... - [ ] WITH cte as (SELECT id FROM users), SELECT ... - [x] WITH cte as (SELECT id FROM users) SELECT ... #### Q57. What is one reason to introduce data redundancy into a normalized database design? - - [x] to reduce corruption in data - [ ] to reduce storage space - [ ] to make the system faster - [ ] to prevent data anomalies #### Q58. The code snippet below is used to read data from an XML file into a table. Which XML structure is **not** supported by the statement? - -```sql +``` 1 LOAD XML LOCAL INFILE 'cars.xml' 2 INTO TABLE cars 3 ROWS IDENTIFIED BY ``; ``` - - [ ] - ```xml Lexus @@ -512,23 +436,17 @@ 2016 ``` - - [x] - ```xml Dodge Ram 2000 ``` - - [ ] - ```xml Mercedes C-Class @@ -536,65 +454,55 @@ ``` #### Q59. You are loading data into a table. Which command can you use to make sure that all data is inserted and duplicated rows are discarded? - - [x] `INSERT IGNORE` - [ ] `INSERT UNIQUE` - [ ] `INSERT INTO` - [ ] `INSERT DISTINCT` #### Q60. Which statement about the `TRUNCATE TABLE` statement is true? - - [ ] It will stop and issue an error when it encounters a row that is referenced by a row in a child table. - [x] It always first drops, then re-creates a new table. - [ ] It deletes rows one by one on tables with foreign key contraints. - [ ] It does not invoke the `DELETE` triggers associated with the table. #### Q61. You are working with the tables as shown in this diagram. You need to get the number of cars sold per the home state of each customer's residence. How can you accomplish this? - ![mysql Q61](images/mysql_q61.png) - - [ ] `SELECT state, COUNT(*) FROM customers WHERE ID IN (SELECT customerID FROM purchases) GROUP BY state;` - [ ] `SELECT state, COUNT(*) FROM customers c LEFT JOIN purchases p ON c.ID = p.ustomerID GROUP BY state;` - [x] `SELECT state, COUNT(*) FROM customers c, purchases p WHERE c.ID = p.customerID GROUP BY state;` - [ ] `SELECT state, COUNT(*) FROM customers GROUP BY state;` #### Q62. In data migration, there is often a need to delete duplicate rows as part of data cleanup. Which statement works best? - - [ ] `DELETE DUPS` - [ ] `DELETE DISTINCT` - [x] `DELETE JOIN` - [ ] `DELETE WITH` #### Q63. When working with MySQL cursor, what must you also declare? - - [ ] `DEFAULT` value - [ ] `RETURN` variable - [ ] `SQLEXCEPTION` routine - [x] `NOT FOUND` handler #### Q64. Which type of backup includes all the changes made to the data since the last full backup was performed? - - [x] snapshot - [ ] logical - [ ] differential - [ ] incremental #### Q65. You need to restore a MySQL database from a backup file. Which command-line tool do you use for the actual data import, after re-creating the database? - - [ ] mysqld - [x] mysql - [ ] mysqladmin - [ ] mysqldump #### Q66. You are importing data as JSON into a new table. You run CREATE TABLE json_data ( city JSON ); and insert rows into this table. What is the correct syntax to see the list of cities? - - [ ] SELECT city FROM json_data; - [x] SELECT city->>'$.name' city FROM json_data; <= best answer - [ ] SELECT city.name city FROM json_data; - [ ] SELECT city->'$.name' city FROM json_data; <= this is valid too but the results will be enclosed with quotation marks #### Q67. If you want to use MyISAM instead of InnoDB, which option do you need to specify in the CREATE TABLE statement? - - [x] ENGINE - [ ] PARTITION - [ ] STORAGE diff --git a/nosql/nosql-quiz.md b/nosql/nosql-quiz.md index 6612ccd7bb..36d59d6d46 100755 --- a/nosql/nosql-quiz.md +++ b/nosql/nosql-quiz.md @@ -102,7 +102,7 @@ - [x] DynamoDB - [ ] Amazon Aurora -#### Q18. You need to create a scalable databse that allows you to share documents across authorized mobile clients in real time. What Google NoS#### QL database should you use? +#### Q18. You need to create a scalable databse that allows you to share documents across authorized mobile clients in real time. What Google NoSQL database should you use? - [ ] Memorystore - [ ] Datastore - [x] Firebase @@ -132,7 +132,7 @@ - [x] scroes - [ ] ids -#### Q23. You need to create a document database that supports database triggers. Which NoS#### QL database should you use? +#### Q23. You need to create a document database that supports database triggers. Which NoSQL database should you use? - [x] DynamoDb - [ ] Redis - [ ] MongoDB @@ -150,7 +150,7 @@ - [x] MATCH (:Person)-->(vehicle:Car)-->(:Company) RETURN count(vehicle) - [ ] MATCH (:Person)-->(:Card), (vehicle:Car)-->(:Company) RETURN count(vehicle) -#### Q26. You need multi-item ACID transactions with snapshot isolation within a partition for your cloud-based application. Which NoS#### QL databse do you choose? +#### Q26. You need multi-item ACID transactions with snapshot isolation within a partition for your cloud-based application. Which NoSQL databse do you choose? - [ ] Bigtable - [ ] GraphDB - [ ] DynamoDB @@ -187,7 +187,7 @@ - [ ] $project #### Q33. For your mobile application, you need to select a Google cloud databse that can support compound, filtered document queries. Which do you choose? - - [ ] Cloud S#### QL + - [ ] Cloud SQL - [ ] Cloud Spanner - [x] Cloud Firestore - [ ] Cloud Firebase diff --git a/objective-c/objective-c_quiz.md b/objective-c/objective-c-quiz.md similarity index 94% rename from objective-c/objective-c_quiz.md rename to objective-c/objective-c-quiz.md index a8adc94585..8f1d75520f 100755 --- a/objective-c/objective-c_quiz.md +++ b/objective-c/objective-c-quiz.md @@ -21,9 +21,7 @@ NSInteger i = str.integerValue; - [ ] This code crashes. #### Q3. What value is in str after this line in executed? -``` -NSString str = "test" + " " + "more"; -``` +`NSString str = "test" + " " + "more";` - [x] This code contains an error - [ ] test - [ ] nil @@ -56,27 +54,21 @@ NSString str = "test" + " " + "more"; - [ ] NSDictionary's values can change. #### Q7. What is foo? -``` --(float)foo; -``` +`-(float)foo;` - [x] A function with a return type of float. - [ ] This code contains an error. - [ ] A variable declaration of type float. - [ ] A property of type float. #### Q8. What can you glean from this line? -``` -#import "NSString+NameHelper.h" -``` +`#import "NSString+NameHelper.h"` - [x] NameHelper is a category of NSString. - [ ] NameHelper is a subclass of NSString. - [ ] NSString implements the NameHelper protocol. - [ ] NSString has a helper class. #### Q9. What's wrong with this code? -``` -float x = 5.; -``` +`float x = 5.;` - [x] Nothing is wrong with this code. - [ ] Declarations do not need semicolons. - [ ] x=5 is an invalid float. @@ -94,9 +86,7 @@ for (int x=0; x<100; x++) { - [ ] This code contains an error. #### Q11. What is this code an example of? -``` -[self addObserver: self forKeyPath: @"val" options:0 context: nil]; -``` +`[self addObserver: self forKeyPath: @"val" options:0 context: nil];` - [ ] Key-Value Observing - [ ] Class Value Observing - [ ] Key-Data Observing @@ -126,9 +116,7 @@ printf("%d", val); - [ ] unlimited class inheritance and protocol adherence #### Q15. How many keys does this NSDictionary have after this code is executed? -``` -NSDictionary *dict = [[NSDictionary alloc] initWithObjectsAndKeys: @"b", @"e", @"a", @"r", nil]; -``` +`NSDictionary *dict = [[NSDictionary alloc] initWithObjectsAndKeys: @"b", @"e", @"a", @"r", nil];` - [x] 2 - [ ] 4 - [ ] 5 @@ -155,9 +143,7 @@ NSLog(@"%@", [[NSString alloc] initWithData:data encoding:NSASCIIStringEncoding] - [ ] nil #### Q18. What is different about this function? -``` -+(void)doSomething; -``` +`+(void)doSomething;` - [x] It is static - [ ] It is abstract. - [ ] It is inline. @@ -192,9 +178,7 @@ NSArray *newValues = [vals filteredArrayUsingPredicate:pred]; - [ ] This code contains an error. #### Q22. What is an enums base type for the code below? -``` -typedef enum { Foo1, Foo2} Foo; -``` +`typedef enum { Foo1, Foo2} Foo;` - [x] There is no base type. - [ ] NSObject - [ ] int @@ -223,9 +207,7 @@ if ([keyPath isInstanceOf:[NSString class]]) { - [ ] if keyPath implements the same methods as NSString #### Q26. What is this a declaration of? -``` -int(^foo)(int); -``` +`int(^foo)(int);` - [ ] an Extension - [ ] a Generic - [ ] a block of code @@ -277,7 +259,7 @@ foo(5); - [ ] This code contains an error - [ ] 2,"3" -#### Q32. How would this funciton be called? +#### Q32. How would this function be called? `-(int)foo:(int)a b:(int)c;` - [ ] self.foo(5, b:10); - [ ] This code contains an error. diff --git a/oop/object-oriented-programming-quiz.md b/oop/object-oriented-programming-quiz.md index 0d38ef3cba..ffc52f64b9 100755 --- a/oop/object-oriented-programming-quiz.md +++ b/oop/object-oriented-programming-quiz.md @@ -48,7 +48,7 @@ - [ ] It implies a virtual method. - [x] A subclass object has an IS-A relationship with its superclass or interface -#### Q8. You want a method with behavior similar to a virtual method--it is meant to be overridden --expect that it does not have a mthod body. It just has a method signature. What kind of method should you use? +#### Q8. You want a method with behavior similar to a virtual method--it is meant to be overridden --expect that it does not have a method body. It just has a method signature. What kind of method should you use? - [ ] an abstract method - [x] a public internal method - [ ] an internal method @@ -213,9 +213,9 @@ #### Q34. What does the code shown below demonstrate, and why?

-    static void Multiply(int num1, int num2) {};
-    static void Multiply(double num1, double num2, double num3) {};
-    static void Multiply(float num1, float num2) {};
+        static void Multiply(int num1, int num2) {};
+        static void Multiply(double num1, double num2, double num3) {};
+        static void Multiply(float num1, float num2) {};
     
- [ ] polymorphism, because each method can perform different task diff --git a/php/php-quiz.md b/php/php-quiz.md index 348a0283df..cf032fffef 100755 --- a/php/php-quiz.md +++ b/php/php-quiz.md @@ -109,7 +109,6 @@ - [ ] \$horse = (new Pet); - [ ] \$cat = new Pet(); - ##### Q15. What is the best way to explain what this script does? ```markdown 1 if (!\$\_SESSION['myusername']) @@ -370,20 +369,20 @@ echo "No, mail is not set"; ### The following XML document is in books.xml. Which code will output "Historical"? ``` - -A Tale of Two Cities -Charles Dickens - -Classics -Historical - - -Then There Were None -Agatha Christies - -Mystery - - + + A Tale of Two Cities + Charles Dickens + + Classics + Historical + + + Then There Were None + Agatha Christies + + Mystery + + ``` - [ ] $books = simplexml_load_string('books.xml'); diff --git a/python/python-quiz.md b/python/python-quiz.md index 3fad2e2335..c413cf6d24 100755 --- a/python/python-quiz.md +++ b/python/python-quiz.md @@ -31,9 +31,7 @@ - [ ] Function arguments are called "attributes" in the context of class methods and instance methods. #### Q6. What is the term to describe this code? -```python -count, fruit, price = (2, 'apple', 3.5) -``` +`count, fruit, price = (2, 'apple', 3.5)` - [ ] `tuple assignment` - [x] `tuple unpacking` - [ ] `tuple matching` @@ -148,14 +146,12 @@ return list(enumerate(college_years, 2019)) - [ ] `self` refers to the class that was inherited from to create the object using `self`. #### Q17. Which of these is NOT a characteristic of namedtuples? - - [ ] You can assign a name to each of the `namedtuple` members and refer to them that way, similarly to how you would access keys in `dictionary`. - [ ] Each member of a namedtuple object can be indexed to directly, just like in a regular `tuple`. - [ ] `namedtuples` are just as memory efficient as regular `tuples`. - [x] No import is needed to use `namedtuples` because they are available in the standard library. #### Q18. What is an instance method? - - [x] Instance methods can modify the state of an instance or the state of its parent class. - [ ] Instance methods hold data related to the instance. - [ ] An instance method is any class method that doesn't take any arguments. @@ -531,9 +527,7 @@ def sum(a, b): - [ ] `my_list['price'] == 1.5` #### Q45. What value would be returned by this check for equality? - `5!=6` - - [ ] `yes` - [ ] `False` - [x] `True` @@ -592,7 +586,8 @@ def sum(a, b): - [ ] `def getMaxNum(list_of_nums): # body of function goes here` - [ ] `func get_max_num(list_of_nums): # body of function goes here` - [ ] `func getMaxNum(list_of_nums): # body of function goes here` -- [x] `def get_max_num(list_of_nums): # body of function goes here` [explanation](https://www.python.org/dev/peps/pep-0008/) +- [x] `def get_max_num(list_of_nums): # body of function goes here` + [explanation](https://www.python.org/dev/peps/pep-0008/) #### Q55. According to the PEP 8 coding style guidelines, how should constant values be named in Python? - [ ] in camel case without using underscores to separate words -- e.g. `maxValue = 255` diff --git a/r/r-quiz.md b/r/r-quiz.md index 985e9eb2a4..abef02e418 100755 --- a/r/r-quiz.md +++ b/r/r-quiz.md @@ -151,7 +151,6 @@ c <- a < b x <- NA y <- x/1 ``` - - [ ] Inf - [ ] Null - [ ] NaN diff --git a/rest-api/rest-api-quiz.md b/rest-api/rest-api-quiz.md index bdfcd6156a..42b41a93ec 100755 --- a/rest-api/rest-api-quiz.md +++ b/rest-api/rest-api-quiz.md @@ -142,7 +142,8 @@ - [ ] `no-proxy` - [ ] `client-only` - [ ] `restricted` -- [x] `private` [reference](https://www.digitalocean.com/community/tutorials/web-caching-basics-terminology-http-headers-and-caching-strategies) +- [x] `private` + [reference](https://www.digitalocean.com/community/tutorials/web-caching-basics-terminology-http-headers-and-caching-strategies) #### Q25. Which OAuth grant type can support a refresh token? - [ ] `Authorization Code Grant` diff --git a/t-sql/t-sql-quiz.md b/t-sql/t-sql-quiz.md index 1350d43b9c..e80e785a17 100755 --- a/t-sql/t-sql-quiz.md +++ b/t-sql/t-sql-quiz.md @@ -93,6 +93,10 @@ SELECT @UniqueID AS Result; - [x] SELECT TOP(2) WITH TIES first_name, department, team FROM Students ORDER BY points; - [ ] SELECT BOTTOM(2) first_name, department, team FROM Students ORDER BY points ASC; +`the picture of table is important here and there it can be seen that there are only two value with min points. + Secondly, the previous answer was wrong because order by DESC will put highest points into the beginning of result list and TOP(2) + will take first two highest points, and we need the lowest points.` + #### Q11. What is the result of this statement? `SELECT FLOOR(-1234.321)` - [ ] -1234.3 @@ -227,9 +231,15 @@ SELECT @UniqueID AS Result; - [x] select top(1) with ties studentname from students order by grade desc; - [ ] select studentname,max(grade) from students order by grade desc; +`top(1) with ties will take the highest grade and all other students with the same grade +(because they are order by grade) and matches the highest grade.` + #### Q28. What role does "inventory" play? `select bookid, boooktitle, bookauthor,quantityonhand from inventory.books;` - [ ] you only want to see results from books currently in inventory - [x] it instructs the query engine to find the books table in the inventory schema - [ ] it instructs the query engine to find the books table in the inventory database - [ ] it instructs the query engine to join the books table to the inventory schema + +`select * from dbo.books here dbo is a schema and the inventory is also schema; +if we'd like to specify a database we should use db_name.schema_name.table_name` diff --git a/wordpress/wordpress-quiz.md b/wordpress/wordpress-quiz.md index db06ff3fcd..3dc745fa2b 100755 --- a/wordpress/wordpress-quiz.md +++ b/wordpress/wordpress-quiz.md @@ -297,18 +297,18 @@ Use functions.php to conditionally load the script by hooking it to wp_enqueue_s add_action( 'wp_enqueue_scripts', 'load_scripts' ); function load_scripts() { -if ( is_page( 'contact' ) ) { -echo ''; -} + if ( is_page( 'contact' ) ) { + echo ''; + } } Use functions.php to conditionally load the script by hooking it to wp_enqueue_scripts(), like this: add_action( 'wp_enqueue_scripts', 'load_scripts' ); -function load_scripts() { -if ( is_page( 'contact' ) ) { -wp_enqueue_script( 'script', get_template_directory_uri() . '/script.js' ); -} -} + function load_scripts() { + if ( is_page( 'contact' ) ) { + wp_enqueue_script( 'script', get_template_directory_uri() . '/script.js' ); + } + } ``` - [ ] Link to the script directly from a template named page-contact.php, like this: - [ ]