Posts

EXPLAINED ANSWERS FOR IP MID-TERM MODEL QUESTIONS

Image
For the above question, the answer is (c). Let's get answer by answer. (a) 1020 This answer will be given when we type the following code; It will be printed in the terminal as follows; (b)2010 This answer will be given when we type the follwing code; It will be given in the terminal as follows; (c)10 We already know the answer of this question is 10. 10 can be given in several ways. In the question we assume that the answer would be 1020. But it isn't. Look at the figures given below. I typed the given example in the vi editor. As the result of the above code I got the following output. The above answer will be given by the following code also; (d)20 20 will be given by following code; It'll appear in the terminal as follows; (e) run time error This can't be correct, refer the answer (c) For above question the answer is (d) 1. It's a little bit tricky but if you know the ...

C PROGRAMMING LANGUAGE

C Programming Every great invention has a history. It's same for the C language. So, before C language, there were languages called as BCPL and B.BCPL. Those language were developed by Martin Richards. BCPL and B.BCPL were developed to write operating systems and compilers.  By using some features in BCPL , Ken Thompson developed a language called  B. In 1970, he created early versions of UNIX operating systems by using his B language at Bell Labs. The B language is the foundation of the C language. Dennis Ritchie was the person who worked to accomplish this C language and he was also a employee at Bell Labs. C was originally implemented in 1972, and it's popular as the development language of the UNIX OS. There are a lot of programs in nowadays. Most of them are written using C or C++. C is a hardware independent   language. C programs can be written as portable to most computers as it's hardware independent. Mainly, C language is built to develop performan...

JAVA PROGRAMMING LANGUAGE

Image
                                        Java  01. Download JDK setup and then install it. This is the link>>>> https://www.oracle.com/java/technologies/javase-jdk13-downloads.html   It will be in the C:/Progarmming files/Java Then open cmd and type java(space)-version . It should be appear as follows. If this isn't appear on the screen, Go to Control Panel and search for Environment Variables . And following screen will appear on the desktop. Now in my prompt there is no variable called, Path . So, first of all I have to create a variable called Path . In order to do that, click on the New button and it'll appear as follows. That prompt is asking for Variable name and Variable value . Type Path for the Variable name. In order to give the variable value, click Browse Directory and follow this path.  C:>Program Files>Java>...

FEDORA 31 BASIC

Image
Fedora 31 Fedora is a linux operating system which shows more paths than windows. So, in programming we are using Fedora as the OS system. Before starting the programming we have to understand the basic codes and basic functions in Ferdora.  01. Opening the terminal - Once you log in to the Fedora, go to the Activities > Menu> Utilities> Terminal                   or Activities>Menu>Search for the Terminal 02. Creating a File- consider typing vi myFirstText.txt and press Enter .  This will create a file named "myFirstText" and the extension  of that file is .txt After creating the .txt file it will take you to the inside of the file. Though you opened the txt file it will not alow you to type until you press the Insert  button. As an example I typed Every person is beautiful . It'll appear as below. When you press the Insert key, it'll appear on the left side of the b...