Skip to main content

C programming Viva questions

1. Which type of language is C ? 

Ans- C is a high level language and general-purpose structured programming language.

2. what is  a compiler ?

Ans- Compiler is the software that transfer program developed in a high-level language into executable object code.

3. What is an algorithm ?

Ans- The approach and method that used to solve the problem is called an algorithm. 

4. What is a token and types of c tokens ? 

Ans- The smallest individual units are known as C tokens . C has six types of tokens : Keyword, constants , Identifier , Strings , Operators and Special symbols.

5. How many keywords in c ?

Ans- There are 32 keywords in the c language.

6. what is an identifier ?

Ans- Identifiers are user define name given to variables , Functions and arrays.

7. what are the datatypes present in c ?

Ans- C language supports 2 different type of data types:

1.Primary data types:
These are fundamental data types in C namely integer(int), floating point(float), character(char) and void
2. Derived data types:
Derived data types are nothing but primary datatypes but a little twisted or grouped together like arraystructureunion and pointers. These are discussed in details later.

Comments

Popular posts from this blog

Python | Calendar Module

 Python | Calendar Module Python defines an inbuilt module calendar that handles operations related to the calendar. The calendar module allows output calendars like the program and provides additional useful functions related to the calendar. Functions and classes defined in the Calendar module use an idealized calendar, the current Gregorian calendar extended indefinitely in both directions. By default, these calendars have Monday as the first day of the week, and Sunday as the last (the European convention).  Example #1: Display the Calendar of a given month.  # Python program to display calendar of # given month of the year  # import module import calendar yy = 2017 mm = 11  # display the calendar print(calendar.month(yy, mm))  Output:  Example #2: Display calendar of the given year.  # Python code to demonstrate the working of  # calendar() function to print calendar # importing calendar module  # for calendar operations import calendar  # using calendar to print calendar of year 

What Is Python Used For

 Python is an interpreted, object-oriented, high-level programming language with dynamic semantics developed by Guido van Rossum . It was originally released in 1991 . Designed to be easy as well as fun, the name "Python" is a nod to the British comedy group Monty Python. Python has a reputation as a beginner-friendly language, replacing Java as the most widely used introductory language because it handles much of the complexity for the user, allowing beginners to focus on fully grasping programming concepts rather than minute details. Python is used for server-side web development, software development, mathematics, and system scripting, and is popular for Rapid Application Development and as a scripting or glue language to tie existing components because of its high-level, built-in data structures, dynamic typing, and dynamic binding. Program maintenance costs are reduced with Python due to the easily learned syntax and emphasis on readability. Additionally, Python's s

Fourer series formula

 Fourer series formula