Professional Documents
Culture Documents
PARTIAL EXAM REVIEW (11ABC) - 3P
PARTIAL EXAM REVIEW (11ABC) - 3P
2.What are built in functions,Are basically tasks that are already defined in the
programming language.This lets us use them directly in our code by writing their names
and by specifying the values they need.
3.Write the names of the most common programming languages used today. Python,
JavaScript, TypeScript, Java, C, C#, C++, PHP, Go, Swift, SQL,
5.Why is programming important in the usage of programs inside electronic devices we use
every day? Programming is what allows your computer to run the programs you use
every day and your smartphone to run the apps that you love. It is an essential part of our
world as we know it.
7 A developer (or programmer) is the person who analyzes a problem and implements a
solution in code.
8.Syntax (a set of rules for writing the code).The structure of statements in a computer
language.
10.Every programming language has its own set of keywords (words written in English).
These keywords are part of the syntax and core functionality of the programming
language.
11.Compilation the transformation of source code that humans can understand into
binary code that the computer can understand
16.Python was designed for readability, and has some similarities to the English
language with influence from mathematics.
17.Indentation refers to the spaces at the beginning of a code line and is used to indicate
a block of code.
18.Python Keywords are the words that are reserved. That means you can’t use them as
name of any entities like variables, classes and functions.
19. OR Is a logical operator used when either one of the conditions needs to be true.
20.Python identifier Is the name we give to identify a variable, function, class, module or
other object. That means whenever we want to give an entity a name.
21.a Variable ,as the name indicat+1es is something whose value is changeable over
time.
24. An Identifier can not start with digit. So while variable1 is valid, 1variable is not valid.
25.A constant (also known as Const) is a term used to describe a value that does not
change throughout the execution of the program,unlike a variable.
29.Every time you turn on your smartphone, laptop, tablet, smart TV, or any other
electronic device, you are running code that was planned, developed, and written by a
developer.
30.Whenever you check your calendar, attend virtual conferences, browse the web, or
edit a document, you are using a code that has been written by developers.
31.A loop is a sequence of instructions that repeat the same process over and over until
a condition is met and it receives the order to stop.
33.An operand is a term used to denote the objects which can be manipulated using
different operators. In the expression ‘A+F+Q’, ‘A’, ‘F’ and ‘Q’ are operands.
34.The number of spaces is up to you as a programmer, the most common use is four,
but it has to be at least one.
36.A markup language is a relatively simple language that consists of easily understood
keywords and tags, used to format the overall view of the page and its contents.
37.Syntax is similar to human languages, programming languages have their own set of
rules on how statements can be conveyed.
A)
# Python Program to calculate the square root
B)
# Python3 program to add two numbers
num1 = 15
num2 = 12
# printing values
print("Sum of", num1, "and", num2 , "is", sum)
C)
celsius = int(input("Enter the Temperature in Celsius :\n"))
fahrenheit = (1.8 * celsius) + 32
print("Temperature in Fahrenheit :", fahrenheit)
D)
Algorithm for Python Program to Add Two Numbers:
Declare two variables.
Initialize the variables with some values.
Declare another variable to store the sum of the numbers.
Apply the mathematical plus(+) operator between two values and store the result.
Method 1: Standard program to add two numbers in python
Python
a = 25
b = 25
sum = a + b
print("The sum of two numbers is:", sum)
E)
miles = float(input("Please enter miles:"))
kilometers = miles * 1.6
print(kilometers, " Kilometers")