Question1: (10 marks)
1. What is the difference between the internet and the web?
2. To have an effective communication you need to meet two conditions, mention these
conditions.
3. Why we need to learn Python programming just explain with providing three advantages?
Cite your answer.
4. How many programming languages in the world?
Cite your answer.
5. Mention two disadvantages for Python Programming?
Cite your answer.
Question 2: (20 marks)
1. Use truth table to check if the following two Boolean expressions equivalent or not:
Boolean expression 1: A and Not(A or Not B)
Boolean expression 2: A and Not A and B
2. For the given numbers find their equivalent in the specified base. Show your steps.
(11100101)2 = ( )10
(1012)10= ( )8
3. If the image contains 800 x 600 pixels, with RGB coloring system, how many megabytes are
required to store this image as a bitmap inside the computer?
Question 3: (30 marks)
1. Write a Python program to print the following string in a specific format
(see the output). Sample String : "Twinkle, twinkle, little star, How I wonder
what you are! Up above the world so high, Like a diamond in the sky.
Twinkle, twinkle, little star, How I wonder what you are"
Output :
Twinkle, twinkle, little star,
How I wonder what you are!
Up above the world so high,
Like a diamond in the sky.
Twinkle, twinkle, little star,
How I wonder what you are
2. Write a python program to guess your mark for M150A as following :
a. Declare three variables (MTA,TMA,Final)
b. Declare a variable call myname and my ID
c. Prompt the user to enter his marks consequently?
d. Find the summation for all your mark
e. You will check the summation as following :
-If the total >= 90 you will print A
- if the total >=80 and total <90 Print B
-If the total >=70 and total and < 80 print C
-If the total >50 and total and < 70 print D
-If the total <70 print F
f. Print your name with your ID to show your final mark that you guess.
Please use real MTA mark and try to guess your mark in the final?
Write the code and compile it
*show three screenshots (one for the code, and one for entering the value
The last one for the output)
3. Write a Python program to construct the following pattern, using a nested for
loop.
*
* *
* * *
* * * *
* * * * *
* * * *
* * *
* *
*
المهندس محمود الجبالي والاكاديمية العربية
حل واجبات
مشاريع تخرج
WhatsApp: 02201102862484
1. What is the difference between the internet and the web?
2. To have an effective communication you need to meet two conditions, mention these
conditions.
3. Why we need to learn Python programming just explain with providing three advantages?
Cite your answer.
4. How many programming languages in the world?
Cite your answer.
5. Mention two disadvantages for Python Programming?
Cite your answer.
Question 2: (20 marks)
1. Use truth table to check if the following two Boolean expressions equivalent or not:
Boolean expression 1: A and Not(A or Not B)
Boolean expression 2: A and Not A and B
2. For the given numbers find their equivalent in the specified base. Show your steps.
(11100101)2 = ( )10
(1012)10= ( )8
3. If the image contains 800 x 600 pixels, with RGB coloring system, how many megabytes are
required to store this image as a bitmap inside the computer?
Question 3: (30 marks)
1. Write a Python program to print the following string in a specific format
(see the output). Sample String : "Twinkle, twinkle, little star, How I wonder
what you are! Up above the world so high, Like a diamond in the sky.
Twinkle, twinkle, little star, How I wonder what you are"
Output :
Twinkle, twinkle, little star,
How I wonder what you are!
Up above the world so high,
Like a diamond in the sky.
Twinkle, twinkle, little star,
How I wonder what you are
2. Write a python program to guess your mark for M150A as following :
a. Declare three variables (MTA,TMA,Final)
b. Declare a variable call myname and my ID
c. Prompt the user to enter his marks consequently?
d. Find the summation for all your mark
e. You will check the summation as following :
-If the total >= 90 you will print A
- if the total >=80 and total <90 Print B
-If the total >=70 and total and < 80 print C
-If the total >50 and total and < 70 print D
-If the total <70 print F
f. Print your name with your ID to show your final mark that you guess.
Please use real MTA mark and try to guess your mark in the final?
Write the code and compile it
*show three screenshots (one for the code, and one for entering the value
The last one for the output)
3. Write a Python program to construct the following pattern, using a nested for
loop.
*
* *
* * *
* * * *
* * * * *
* * * *
* * *
* *
*
المهندس محمود الجبالي والاكاديمية العربية
حل واجبات
مشاريع تخرج
WhatsApp: 02201102862484
تعليق