Docsity
Docsity

Prepare for your exams
Prepare for your exams

Study with the several resources on Docsity


Earn points to download
Earn points to download

Earn points by helping other students or get them with a premium plan


Guidelines and tips
Guidelines and tips

GSU CSC 2510 Lab 1 Answers, Assignments of Computer Science

GSU CSC 2510 Lab 1 Answers First lab assignment

Typology: Assignments

2021/2022

Available from 07/25/2023

Notezart
Notezart šŸ‡ŗšŸ‡ø

8 documents

1 / 3

Toggle sidebar

Related documents


Partial preview of the text

Download GSU CSC 2510 Lab 1 Answers and more Assignments Computer Science in PDF only on Docsity! CSC 2510 LAB #1 ā€œPropositions and truth tablesā€ Remember: Proposition ā€“ declarative statement about which makes sense to talk in terms of true/false. Question 1. Which of the following statement(s) is a proposition? a) ā€˜Get me a glass of milkā€™ b) ā€˜God bless you!ā€™ c) ā€˜What is the time now?ā€™ d) ā€˜The only odd prime number is 11ā€™ e) No propositions were given in a)-d) Question 2. The truth value of given statement ā€˜4+3=7 or 5 is not primeā€™ is a) False b) True Review logic operations and how to build truth tables (remind students to review this material from CS 1301 if theyā€™ve forgotten). Recall ORDER of precedenceĀ of those operations (parenthesis, NOT, AND, OR, Ā Implication, Equivalence, XOR). Build truth tables for the following two logical expressions: A = qā؁p ā‡¾ pā‡æq B= pāˆ§q āˆØ qā€™ p q ā€¦ T T T F F T F F Answer the following questions: ļ‚· Is expression A a tautology (= proposition that is always true)? Contradiction (= proposition that is always false)? Contingency (=proposition that is neither a tautology nor a contradiction)? ļ‚· Is expression B a tautology? Contradiction? Contingency? ļ‚· Are logical expressions A, B equivalent? (Propositions A and B are logically equivalent if the statement A ā†” B is a tautology.) Translating from logic to English. Question 3. Let P: I am in Atlanta., Q: I love cricket.; then Q -> P is: a) If I love cricket then I am in Atlanta b) If I am in Atlanta then I love cricket c) I am not in Atlanta d) I love cricket e) None of the mentioned Question 4. Let P: I am in Bangalore, Q: I love cricket.; then ~Q V P is: a) If I hate cricket then I am in Bangalore b) I am in Bangalore and I love cricket c) I am not in Bangalore and I love cricket d) I am not in Bangalore or I hate cricket e) None of the mentioned Translating from English to logic. Question 5. Let P: We should be honest., Q: We should be dedicated .,R: We should be overconfident. Then ā€˜We should be honest or dedicated but not overconfident.ā€™ is best represented by: a) ~P V ~Q V R b) P āˆ§ ~Q āˆ§ R c) P V Q āˆ§ R d) P V Q āˆ§ ~R e) None of the mentioned Question 6. Let P: We give a nice overall squad performance, Q: We will win the match. Then the symbolic form of ā€œWe will win the match if and only if we give a nice overall squad performanceā€œ is a) P v Q b) Q āˆ§ P c) Q<->P d) ~P v Q e) None of the mentioned. Question 7. Consider the following statements A: Raju should exercise. B: Raju is not a decent table tennis player. C: Raju wants to play good table tennis. The symbolic form of ā€œRaju is not a decent table tennis player and if he wants to play good table tennis then he should exercise.ā€ is a) A -> B -> C
Docsity logo



Copyright Ā© 2024 Ladybird Srl - Via Leonardo da Vinci 16, 10126, Torino, Italy - VAT 10816460017 - All rights reserved