In this blog post, you will find all the Solutions to the L17 questions of the Codetantra Python Programming Course. Here are the answers to these question:-
Q1 :- L17/Programming Language/Types of Programming Languages - Machine Language :- Select all all the correct statements in the given options
A programmer need I the syntax of the programming language. need to understand the syntax
The computer cannot understand a program written in machine language
A program written in a particular language has to be translated into machine language for execution.
A program written in a machine language is machine independient
It is a time consuming process and difficult to isolate errors in a program written in machine language.
Q2 :- L17/Programming Language/ Introduction to assembly Language:- Select all all the correct statements in the given options
Assembly language is a representation of a high level language.
Assembly language is also known as low level language.
An Assembler is a translator r for converting the programs from assembly language to machine language
It is easy to learn assembly language
Q3 :- L17/Programming Language/ High level Language :- Select all all the correct statements in the given options
Interpreters and compilers translate high level language to machine language.
A compiler translates one statement at a time.
High level languages are machine independent
The compiler immediately executes a statement before translating the next statement
Q4 :- L17/Programming Language/ High level Language categories :- Select all all the correct statements in the given options
Concurrent Programming is technique that provides execution of operations sequentially.
XML is an example of markup programming language.
Scripting languages are used to automate frequently executing tasks.
A compiled programming language is one which interprets and executes statement before the next statement is interpreted.
Functional programming language uses conditional expressions and recursion to perform computation
Q5 :- L../Algorithmic Problem Sol.../Demo to illustrate the Algorithmic Design and Analysis... :- Select all the correct statements below.
Understanding exactly the inputs the algorithm needs is the fundamental to understanding the problem.
Algorithms Programs data structure
Algorithmic design techniques are the cornerstone for designing algorithms for problems.
Pseudocode, Flowcharts are methods of expressing an algorithm.
An algorithm which works as expected for few of the inputs proves its correctness.
An Algorithm should be both time and space efficient besides being simple.
Q6 :- L17/Simple Strategies for Developing Algorithms/Strategies for developing algorithms :- Write a program to find the factorial of a given number and print the result as shown in the examples.
def factorial(n):
if(n == 1):
fact = 1
return fact
else:
fact = n* factorial(n – 1)
return fact
n = int(input(“num: “))
if(n < 0):
print(“enter a positive value”)
elif(n == 0):
print(“The factorial of 0 is 1”)
else:
print(“factorial of {} is: “.format(n), factorial(n))
Hope this blog post was helpful to you and you have got the answer to your question. Thank you for visiting our blog. If you have any doubts about any coding questions then let us know in the comments section we will answer them as soon as possible. Till then check out our more blog posts.