Solutions to Thousand Questions of Digital IC Written Test--Logical Reasoning (7)

Preface

The summary of written test questions is to summarize the problems that may be encountered in the autumn recruitment. Solving the questions is not the purpose. The purpose is to discover your own loopholes in the process of doing the questions and consolidate the foundation.

All question results and explanations are given by the author. The answers are highly subjective. If there are any errors, please point them out in the comment area. The information is compiled from digital IC-related public accounts such as "Digital IC Workers", real questions from websites such as Niuke.com, and online written tests. Transcripts of real questions and interviews.

        Keep updated (2023.9.25) The article contains 270 single-choice questions, 106 multiple-choice questions, 16 fill-in-the-blank questions, 17 true-false questions, 72 short-answer questions, 3 logical reasoning questions, and 8 C language python script programming questions Tao .
All the codes provided by the author in this article are written as APIs and can be directly copied to the software to compile, run, and give results.  

        There are many questions, and even with previous analysis and the powerful ChatGPT, mistakes are inevitable. If you find any mistakes, please feel free to discuss them in the comment area.

        In addition, there is a little personal stuff~: At this moment, I feel that I must give...
The total number of words in the solution to the Thousand Questions of the Digital IC Written Test has reached 150,000+, and the webpage is severely stuck in coding, so it is divided into multiple parts to facilitate maintenance. The link is as follows: Solution to the Thousand Questions in the Digital IC Written Test--Single Choice Questions (1)
Digital
IC Solutions to Thousands of Questions in the Written Test - Single-Choice Questions (Part 2) Solutions to
Thousands of Questions in the Digital IC Written Test - Multiple-Choice Questions (Part 3) Solutions to Thousands of Questions
in the Digital IC Written Test - Fill-in-the-Blank Questions (Part 4) )
Solutions to thousands of questions in the digital IC written test - judgment questions (5) Solutions to
thousands of questions in the digital IC written test - short answer questions (6)
Solutions to thousands of questions in the digital IC written test - logical reasoning (7
) ​​​​Solutions to Thousand Questions of the Digital


Logical reasoning questions

1. Both Mr. P and Mr. Q have sufficient reasoning ability and neither lie. On this day, they were undergoing reasoning interviews. They knew that there were 16 playing cards in the drawer of the table:

Ace of Hearts, Queen, 4

Jack of Spades, 8, 4, 2, 7, 3

K, Q, 5, 4, 6

Diamond A, Q

Professor John picked out a card from these 16 cards, told Mr. P the value of this card, and told Mr. Q the suit of this card. At this time, Professor John asked Mr. P and Mr. Q: Can you Can you infer what card this card is from the known number or suit?

Mr. P: “I don’t know this card.

Mr. Q: "I know you don't know this card"

Mr. P: "Now I know the card."

Mr. Q: "I know it too"

Please tell me what this card is and why.

Answer: 4 of hearts.

There are 16 cards, and neither Mr. P nor Mr. Q will lie. P knows the value of the card, but says he does not know the card, which means that the value of this card is not the only one among the 16 cards, which means it can be ruled out: Spades J, 8, 2, 7, 3, and club K, 5, 6 are cards with unique points. The points of the cards can be determined as: A, Q, 4

If Mr. Q knows the suit of the card, he knows that Mr. P does not know the card, which means that the points that appear in the suit that Mr. Q knows have appeared in other suits, that is, there are no cards with unique points, so it can be determined that Mr. Q knows The colors are: hearts and diamonds. At this point the only possible cards left are:

Ace of Hearts, Queen, 4

Diamond A, Q

But at this time, Mr. P said that he knew what the card was, so it could only be the 4 of hearts, because only when Mr. P knew that the point was 4, the suit could only be determined to be the heart.


2. There is a triangle and on it there are 3 ants one on each corner and are free to move along sides of triangle, what is probability that they will collide?( )

A.25%
B.50%
C.75%
D.33.3%

Answer: C. The probability of collision = 1 - the probability of no collision. If the three ants do not collide, they will all walk clockwise or counterclockwise. There are two possibilities. Three ants are at the three corners of the triangle, and each has two choices: left or right. Therefore, there are always 2^3=8 options, so the probability of collision is 1-2/8=0.75. Choose C.


3. There are three piles of ping pong balls, each with 4, 5, and 6 balls. You and Xiao Ming take turns to get the ping pong balls. You can only get 1-3 balls from the same pile each time. The person who gets the ball last time fail. You take first, please give a winning strategy and prove it.

If there are 4 in a pile, take 3 first. In this way, Xiao Ming will win if he takes at least 1.

There are 5 in a pile, no matter how many you take, you will lose. Take 1, Xiao Ming takes 3; take 2, Xiao Ming takes 2; take 3, Xiao Ming takes 1. must lose

There are a bunch of 6, and the rules need to be summarized. The key point is the 4 balls. No matter how you take them, you must make sure that after the opponent takes the balls, the number of remaining balls is between [2-4], and you will win. So if there is a pile of 6, as long as you take 1 ball, then no matter how Xiao Ming takes it, it will be between [2-4]. It is our turn to take it, and only 1 ball is left.

Best of three, win.

おすすめ

転載: blog.csdn.net/qq_57502075/article/details/133262009