1. Are bits real? Explain. 2. If there are three variables A 1, B 0, and C-1: wh
ID: 3741465 • Letter: 1
Question
1. Are bits real? Explain. 2. If there are three variables A 1, B 0, and C-1: what would the condition written as if((A and B) or (A and C)): Print("hi") Do? Will it print it or not? 3. Why are programming languages hard to learn? Why is assembler harder than C and 1 why is something like Python easier to use than C? 4. A, B- B, A does what? 5. What is a tuple? How is it different from a list? 6. What does the def command do? 7. Describe the execution loop in python. 8. What is an abstraction? 9. Draw the flow chart that corresponds to List6zl #the empty list for I in rangelo, 10, 1): list6.append(int(input("give a num")) print(list6) #yes l know the. Append,thing is new so learn it is a method of a list my another new thing... explore. what is a list ohExplanation / Answer
Solution:
The first four subparts have been answered as per Chegg guidelines, please repost others.
1)
They are not real like they exist.
They are just the representation of true and false in the memory, suppose a capacitor is used in the memory, so if it is charged then it will be set to true
and if it is discharged then it will be set to false.
2)
the if condition here will be evaluated to true
so hi will be printed.
A and B will be evaluated to false, and A and C will be evaluated to true,
since there is a or sign
the whole expression will be evaluated as true.
c)
They are hard to learn because the grammar which is used in the programming languages is differing broadly from human speaking languages.
Assembler is harder to learn because it is a low-level language so we are learning the codes here which are directly talking to the machines
Python is easy compared to C because it has a vast variety of library functions, and it is the functional programming language.
4)
This statement is syntactically wrong.
5)
A tuple is a sequence of immutable Python objects.Tuples are sequences, just like lists. The differences between tuples and lists are, the tuples cannot be changed unlike lists and tuples use parentheses, whereas lists use square brackets.
6)
def command is used to define functions in python.
7)
the loop in python iterates based on a parameter named as variable and one conditional statement which is used to terminate the loop after iterating over a period of time.
8)
Abstraction is hiding data from unnecessary accessive parameters.
please repost the 9th part.
I hope this helps if you find any problem. Please comment below. Don't forget to give a thumbs up if you liked it. :)
Related Questions
Navigate
Integrity-first tutoring: explanations and feedback only — we do not complete graded work. Learn more.