Question:- Who was the first Black president?
Answer:- Barack Obama.
Question:- What is the name of the theater where President Abraham Lincoln was assassinated by John Wilkes Booth?
Answer:- Ford’s Theatre in Washington, D.C.
Question:- What type of exercise area did President Barack Obama have installed in the White House?
Answer:- A basketball court.
Question:- Two sets of fathers and sons have served as presidents. What are their names?
Answer:- John Adams and John Quincy Adams, and George H.W. Bush and George W. Bush.
Question:- How can you distribute three apples to two fathers and their two sons, giving a whole apple to each.
Answer:- They are Grandfather - Father - Son. The middle is a father and a son at the same time!
Question:- Where is the geographical center of the U.S. population (approximated in the 2020 census)?
Answer:- About 9 miles outside of Hartville
Question:- 2. Which is the smallest? (a) -1, (b) -1/2, (c) 0, (d) 3.
Answer:- The smallest number is -1. (a) is correct
Question:- Combine terms: 12a + 26b -4b – 16a. (a) 4a + 22b, (b) -28a + 30b, (c) -4a + 22b, (d) 28a + 30b.
Answer:- 12a + 26b -4b – 16a. = 12a – 16a + 26b – 4b. = -4a + 22b. Answer: (c)
Question:- What is |-26|? (a) -26, (b) 26, (c) 0, (d) 1
Answer:- |-26| = 26. Answer: (b)
Question:- Find the value of 3 + 2 • (8 – 3) (a) 25, (b) 13, (c) 17, (d) 24, (e) 15.
Answer:- Solution: 3 + 2 • (8 – 3) = 3 + 2 (5) = 3 + 2 × 5 = 3 + 10 = 13 Answer: (d)
Question:- The sum of two numbers is 75 and their difference is 20. Find the difference of their squares.
Answer:- Solution: If the sum of two numbers is x and their difference is y, then the difference of their squares is xy. Here x= 75 and y = 20 75 × 20 = 1500
Question:- What is pep 8?
Answer:- PEP stands for Python Enhancement Proposal. It is a set of rules that specify how to format Python code for maximum readability.
Question:- What is the difference between .py and .pyc files?
Answer:- The .py files are the python source code files and .pyc files are the bytecode of the python files. .pyc files are created when the code is imported from some other source. The interpreter converts the source .py files to .pyc files.
