TNEB/TANGEDCO Previous year Question paper & Solutions
Here, we have given Engineering Mathematics Study Notes for the Competitive Exams. Candidates can download Topic Wise Engineering Mathematics Study Materials along with Previous Year Questions from below mentioned links.
Study Notes:
📌Matrices and Determinants
Previous Year Questions - Topic wise:
📌 Circuit Theory | Electric Circuits
📌 Control Systems
Question Papers - Solutions (TNEB):
Introduction to CL program
CL programming language:
In this blog post, We will understand, what is CL and what can and cannot be done by using the CL language.
In this blog post, We will understand, what is CL and what can and cannot be done by using the CL language.
- CL is a control language that contains a set of AS/400 commands which execute in a sequence to control the flow of an application.
- It is used for job controlling just like JCL in the mainframe.
- So to understand the CL program, we should be knowing all CL commands
Structure of CL program
In this blog post, I will take you through how the basic structure of the CL program will be.
In General,
In General,
- CL Code is case insensitive.
- Source code usually starts from column 14 with an indentation for readability.
Source code starts from column 14 |
- Every programing language has some notation for adding comments which are used for future reference. Likewise in CL, Comments are marked by /* at the beginning and */ at the end.
Strings in Python
What is String in python?
- In Python, String is a sequence of characters enclosed by either single quotes or double-quotes.
- Example: 'Python', "Geek4Tutorial"
- Strings are immutable.
- Each value in a string is called character.
Creating a String:
- Strings can be created by enclosing the sequence of characters inside a single quote or double quote and assigning it to a variable.
- Sometimes triple quotes can also be used to create a string, even though triple quotes are used to represent Multiline strings and Docstrings.
- We can access the characters(element) in the string just like the index using index position.
Example python programs: Functions basics
Simple python programs to practice:
1) Write a Python function Factorial(n) which returns the factorial of the given number(n).
2) Write a Python function, Square(num) which returns the square of the given number(num).
3) Write a Python function, Sum(n) which returns the sum of first n numbers.
4) Write a Python function, Palindrome(num) that accepts an integer num as input and returns true/false based on condition.
Ex: num = 12321 ---> output = 12321 ----> then given number is palindrome.
5) Write a Python function, check_strong_number(num) that accepts a positive as input, and returns true/false based on condition.
1) Write a Python function Factorial(n) which returns the factorial of the given number(n).
2) Write a Python function, Square(num) which returns the square of the given number(num).
3) Write a Python function, Sum(n) which returns the sum of first n numbers.
4) Write a Python function, Palindrome(num) that accepts an integer num as input and returns true/false based on condition.
Ex: num = 12321 ---> output = 12321 ----> then given number is palindrome.
5) Write a Python function, check_strong_number(num) that accepts a positive as input, and returns true/false based on condition.
- A number is said to be a Strong number if the sum of the factorial of each digit is equal to the given number.
Lists in Python
What is a List?
- The list is one of the most common collection datatypes in Python which is ordered and mutable (changeable).
- It is used to store a group of an element together in a sequence.
- A list can store both homogenous and heterogeneous elements i.e., a single list may contain data types like integers, floats, strings as well as objects.
- Individual value in a list is called an element.
- These elements will be stored in a contiguous memory location.
- For Ex:
- Number1 = 10,
- Number2 = 20,
- Number3 = 30,
- Number4 = 40
- These individual variables can be represented in a list as
- Number_list = [ 10, 20, 30, 40 ]
Subscribe to:
Posts (Atom)
You might also like
Deploy your Django web app to Azure Web App using App Service - F1 free plan
In this post, we will look at how we can deploy our Django app using the Microsoft Azure app service - a free plan. You need an Azure accoun...