Programming Language
Question What are keywords and identifiers ? give example.
Question What are the steps of executing a "C" program?
NU Year 2013
Question What are the keywords and identifiers? Define with proper examples.
NU Year 2013
Question Describe the printf() and scanf() functions with necessary examples.
NU Year 2013
Question Write A C program to determine whether a number is "ODD" or "EVEN" and print the message.
NU Year 2013
Question Define constant. Describe the constant type with proper example.
NU Year 2013
Question What do you mean by variable? Identify the variables within the following code segment
NU Year 2013
Question Consider the following conditional statement:-if(a>b) x=a:else x=b: write the equivalent code segment using ternary operator pair "? : " .
NU Year 2013
Question What is recursion? Write a "C" program that will calculate the factorial of given number.
Question What is recursion? Write a "C" program that will calculate the factorial of given integer.
NU Year 2013
Question What is an array? declare and Initialize the types of array?
NU Year 2013
Question Define algorithm and flowchart? Draw the flowchart of else... if ladder.
NU Year 2013
Question How many different types of loops are in C? Write the format of for loop.
NU Year 2013
Question The number in the sequence 1 1 2 3 5 8 13 21 . . . . are called Fibonacci number. Write a C program using do while loop to calculate and print the first m Fibonacci numbers.
NU Year 2013
Question what do you know about computer languages?
Question Briefly describe the structure of a C program .
NU Year 2007
Question Draw the flow chart that shows the process of compiling and running a C program .
NU Year 2007
Question Briefly explain different from of main() funcition used in C.
NU Year 2007
Question write a program to find the area of a circle(use Pi as a symbolic constant)
NU Year 2007
Question How many different types of loops are in C ? Write the format for the loop.
NU Year 2013
Question The number in the sequence 1 1 2 3 5 8 13 21 . . . . . are Fibonacci number.Write a C program using do while loop to calculate and print the first m Fibonacci numbers .
NU Year 2013
Question Briefly explain string handling functions with examples.
NU Year 2013
Question What is data structure? Why is an array is called an a structure?
NU Year 2013
Question Give the structure of while and do . . . while loop.
NU Year 2013
Question Describe the following ' C ' functions: getchar ( ), strcmp ( ), strcpy ( ), strlen ( ), strcat ( ).
NU Year 2013
Question What is a pointer? How is a pointer initialized?
NU Year 2013
Question Write a 'C' program to interchange the values of two given integer .
NU Year 2013
Question What is structure?Write the syntax of structure.
NU Year 2013
Question What is programming language? Write down some salient features of C.
NU Year 2012
Question Explain the basic structure of a C program.
NU Year 2012
Question Briefly explain the different from of main ( ) function used in C
NU Year 2012
Question Write a C program to find the area of a circle (useπ as a symbolic constant).
NU Year 2012
Question What are the different types of operators used in C? Write a C program to swap the values of two integers using bitwise exclusive or operator.
NU Year 2012
Question Why do we to need to use # include <math.h> and # include <c type .h> statement in C program.
NU Year 2012
Question Describe the process of explicit conversion of data type in C.
NU Year 2012
Question What is an array? What are the basic difference between an array and a structure?
NU Year 2012
Question What are the different types of operators used in C? Write a Cprogram to swap the values of two integers using bitwiseexclusive or operator.
NU Year 2012
Question Why do we need to use # include < math. h > and # include< c type. h > statement in C program.
NU Year 2012
Question Describe the process of explicit conversion of data types in C.
NU Year 2012
Question Consider the following conditional statement :if ( a> b)x = a:elsex = b;Produce an equivalent code segment using a ternary operator pair " ? : ".
NU Year 2012
Question What is an array? What are the basic difference between anarray and a structure?
NU Year 2012
Question With example show how can declare and initialize twodimensional array.
NU Year 2012
Question Write a program to find the n-th Fibonacci series.
NU Year 2012
Question What is null statement ? What are the purpose of null statement?
NU Year 2012
Question What are the different types of loops C have? Describe a for zloop using general format and flow-chart.
NU Year 2012
Question Produce an equivalent code segment using for loop for thefollowing code segment :SUM =0:n = 1;While (n < = I 0){SUM = SUM + n * n ;n = n+ 1 ;} print f ( "SUM = % d\n", SUM );
NU Year 2012
Question What are the uses of continue and break in C?
NU Year 2012
Question Describe infinite loops & time delay loops with example.
NU Year 2012
Question What do you mean by call by value and call by reference?Give example.
NU Year 2012
Question What is an array'? How can you overcome the limitation ofarrays using structure?
NU Year 2012
Question Describe any four of the string handling functions briefly.
NU Year 2012
Question Write a C program to test whether a given string is apalindrome or not.
NU Year 2012
Question How can an array be explicitlyinitialize at run time? Whatare purpose of a memory management functions malloc ( )and calloc ( )?
NU Year 2012
Question Describe the elements of a user defined function.
NU Year 2012
Question What is the difference between union & structure?
NU Year 2012
Question What is a pointer? Declare a pointer variable and initialize it.
NU Year 2012
Question Write a C program to create a file name INPUT. Which willtakes some characters from the terminal and then it will readdata from INPUT file and will display in the output screen.
NU Year 2012
Question What is a variable and "value" of a variable?
NU Year 2012
Question Describe the four basic data types. Write the purpose of thequalifiers const and volatile.
NU Year 2011
Question Which of the following are invalid variable names and why :(i) doubles;(ii) Minimum;(iii) row total;(iv) 3rd-row; (v) name.
NU Year 2011
Question Write a program in C to calculate the area and circumference ofa circle.
NU Year 2011
Question What are the different types of operators used in C program? With example explain about logical operators andbitwiseoperators.
NU Year 2011
Question Why we need to use # include < math.h > and # include < ctype.h > statement in C program?
NU Year 2011
Question In what ways does a switch statement differ from an if statement?
NU Year 2011
Question Write down the general form and flowchart of IF, IF-ELSE andnested IF-ELSE statement.
NU Year 2011
Question Write a C program to find the number of and sum of all integers greater than 50 and less than 300 that are divisible by 9.
NU Year 2011
Question Is it a good approach to use "goto" statement ? Explain your opinion.
NU Year 2011
Question In what ways does "Switch—break" statement differ from"If–Else if–Else" statement?
NU Year 2011
Question Write a program in C to determine whether a number a is prime or not.
NU Year 2011
Question The number in a sequence 1 1 2 3 5 8 13 21 . . . . arecalled Fibonacei numbers. Write a C program using a for loopto calculate and print the first 20 Fibonacci number.
NU Year 2011
Question What is an array? Define a two-dimensional integer array andinput data values of 4 rows and 5 columns each.
NU Year 2011
Question What do you mean by variable? How can you declare andinitialize a variable using C program?
NU Year 2010
Question Write a C program to calculate the area and perimeter of atriangle.
NU Year 2010
Question Write down the steps of executing a C program . What are thedifferent forms of main statements C permits?
NU Year 2010
Question Describe the purpose of # define and # include directive. Whyshouldn't these directives end with a semicolon?
NU Year 2010
Question Write down the syntax of structurer and union . State thedifference between them
NU Year 2010
Question What is pointer? Declare and initialize a pointer variable.
NU Year 2010
Question Define-recursion. Write a program that will calculate the factorial of a given number using recursive function.
NU Year 2010
Question State the names of the different storage class specifiers. Writedown the scope and lifetime of each of them.
NU Year 2010
Question What is array? Suppose an array A contains 14 elements asfollows :A : 66, 33, 40, 22, 55, 88, 60, 11, 80, 20, 50, 44, 77, 30.Sort the array A using Merge sort algorithm (Show step by step procedure).
NU Year 2010
Question What arc the difference between break and continue statements?
NU Year 2010
Question Write a program to compute and print a multiplication table fornumbers 1 to 5.
NU Year 2010
Question Flow can array be explicity initialized at run time? What is thepurpose a memory management functions malloc and calloc?
NU Year 2010
Question Write down the general form and flowchart of swichstatement.
NU Year 2010
Question State De-Morgan's rule.write a program to evaluate theequation y = xⁿ
NU Year 2010
Question What are countercontrolled loops and sentinel controlled loops?
NU Year 2010
Question Write a C program to compute the roofs of a quadraticequation ax2 + bx + c = 0. [ Use the following conditions:(i)There is only one root, if a = 0 (x = -c/b);(ii)There are no real roots, if b²— 4ac is negative; (iii) Otherwise, there are two real roots.]
NU Year 2010
Question Write down the general form of a scanf statement. Whatare the advantages of using symbolic constants?
NU Year 2010
Question Write a program that will convert the given temperature inFahrenheit to Celsius the following formula:C = (F- 32)/l .8
NU Year 2010
Question What is the difference between declaring a variable as constantand as volatile? How do variable and symbolic names differ?
NU Year 2010
Question What arc the needs for user defined functions? Define thecharacter array to store the word 'HELLO!
NU Year 2010
Question What is the associativity property of an operator? Write a program that will obtain the length and width of a rectangle from theuser and compute its area and perimeter.
NU Year 2010
Question Describe explicit conversion briefly.(c) What will be the effect of the following specifications in printinga string "Ncw Market 110001", containing 17 characters?(i) % S; (ii) % 5S; (iii) % -20.10S; (iv) % 20S.
NU Year 2010
Question Write a C program using file management where you are input aseries of integer number which will generate a file called EVEN to storeall even number and a file called ODD to store all odd numbers.
NU Year 2010
Question Describe the basic structure of a C program.
NU Year 2009
Question How do variables and symbolic names differ
NU Year 2009
Question Write a C program to calculate the area and circumferences of a circle.
NU Year 2009
Question Describe the basic data types used in C
NU Year 2009
Question What is conditional operator? Explain with example.
NU Year 2009
Question Describe the IF, IF-ELSE, NESTED IF-ELSE with flowchart & example.
NU Year 2009
Question Write a program to compute the sums of the digits of a given integer number.
NU Year 2009
Question Write down the general form and flowchart of switch statement
NU Year 2009
Question Is it good approach to use goto statement? If not, explain why? Write down the use of break statement.
NU Year 2009
Question What is the difference between m-- and --m?
NU Year 2009
Question Write a C program to compute the roots of a quadratic equation: ax²+bx + c =0.Use the following conditions:(i) There is only one root. if a= 0(x= -c/b);(ii) There are no real roots, if b²-4ac is negative. (iii) Otherwise, there are two real roots.
NU Year 2009
Question What is an array? Why an array is called structured data type?
NU Year 2009
Question Describe how two dimensional array is declared and initialized.
NU Year 2009
Question Write a program to find the n-th Fibonacci series.
NU Year 2009
Question Distinguish between structure and union.
NU Year 2009
Question What do you mean by call by value and call by reference? Give example
NU Year 2009
Question What do you mean by library & user-declined function? Write down the need of user defined functions.
Question What do you mean by library & user-defined function? Write down the need of user defined functions.
NU Year 2009
Question What is a pointer? Declare and initialize a pointer variable.
NU Year 2009
Question Write a C program that usesa function to sort an array of integers.
NU Year 2009
Question What is function definition? Write general form of function definition.
NU Year 2009
Question Describe the different types of string handling functions with meaning & example.
NU Year 2009
Question Define: (i) Function prototype, (ii) Function argument.
NU Year 2009
Question Write a program to find the functional of an integer using recursive functions.
NU Year 2009
Question Write down about ten important features of C programming language
NU Year 2008
Question Describe the basic structure of a C program.
NU Year 2008
Question Describe the four basic data types used in C language. How could we extend the,range of values they represent?
NU Year 2008
Question Write down the rules for farming variable names.
NU Year 2008
Question Discuss different data types used in C with example.
NU Year 2008
Question Write down the rules for forming variable names.
Question When do you use long, short and unsigned qualifiers? Give example of each ofthe cases.
NU Year 2008
Question Write a program to evaluate.the polynomial 3x3+5x2+ 6 for x = 3.2 and display the result.
NU Year 2008
Question In what ways does a switch statement differ from an if statement?
NU Year 2008
Question Write a program to find the number of and sum of all integers greater than 100and less than 200 that are divisible by 7 .
NU Year 2008
Question Compare in terms of their functions, the following pairs of statements :-(i) While and do while . . . . while ;(ii)While and for; (iii) Break and continue.
NU Year 2008
Question Write a programto compute the sum of the digits of a given integer number .
NU Year 2008
Question What is an Array? Define a character array to store the word 'Hello!'
NU Year 2008
Question Define a two-dimensional integer array and input data values of 4 rows of 5 columns each.
NU Year 2008
Question What is a user-defined function? What are arguments and formal parameters ofa function?
Question What is a user-defined function? What are arguments and formal parameters of a function?
NU Year 2008
Question What are the differences between local and global variables?
NU Year 2008
Question Writea program. which will input some numbers in an integer array and pass this to a function called minimum ( ). This function will find the minimum of the arrayvalues and returns this value to the main I ) function for displaying it.
Question Writea program. which will input some numbers in an integer array and pass this to a function called minimum ( ). This function will find the minimum of the arrayvalues and returns this value to the main I ) function for displaying it.
Question Writea program. which will input some numbers in an integer array and pass this to a function called minimum ( ) . This function will find the minimum of the arrayvalues and returns this value to the main I ) function for displaying it.
Question Writea program. which will input some numbers in an integer array and pass this to a function called minimum ( ). This function will find the minimum of the arrayvalues and returns this value to the main I ) function for displaying it.
Question Writea program. which will input some numbers in an integer array and pass this to a function called minimum ( ). This function will find the minimum of the arrayvalues and returns this value to the main ( ) function for displaying it.
Question Writea program. which will input some numbers in an integer array and pass this to a function called minimum( ) .This function will find the minimum of the arrayvalues and returns this value to the main ( ) function for displaying it.
Question Writea program. which will input some numbers in an integer array and pass this to a function called minimum( ) .This function will find the minimum of the arrayvalues and returns this value to the main ( ) function for displaying it.
NU Year 2008
Question Describe the limitations of using getchar and scarf functions for reading strings.
NU Year 2008
Question Write a a program to extract a portion ofcharacter string and print the extractedstring . Assume that m character are extracted, starting with the nth character
NU Year 2008
Question Write a program which will read a text and count all occurrences of a particularword.
NU Year 2008
Question (d) Distinguish between the following (i) Automatic and static variables; (ii) Global and local variables.
NU Year 2008
Question What is structure in C? Write a program to create a structure which will storename. roll and marks of 6 courses that you obtained.This structure will also storethe total obtained marks. Whichyou can obtain by summing all the marks. Store all the data for 10 students. Print the name, roll and total obtained marks of each student .
NU Year 2008
Question What is pointer? Write a program to find the sum of the elements contained in an integer array using pointers to arrays.
NU Year 2008
Question Write a program which will write 10 integer numbers stored in an integer array to a data file called NUMBER FILE. The programwill then close this.file and reopen it to display by reading the NUMBER FILE .
NU Year 2008
Question Briefly describe the structure of a C program.
NU Year 2007
Question Draw the flow-chart that shows the process of compiling and running a C program.
NU Year 2008
Question Briefly explain different form of main ( ) function used in C.
NU Year 2007
Question Write a program to find the area of a circle.(Useπas a symbolic constant ).
NU Year 2007
Question What are trigraph characters? How are they useful?
NU Year 2007
Question How do variables and symbolic names differ? Show with example.
NU Year 2007
Question What are the rules for declaring identifiers?
NU Year 2007
Question What is storage class? What are the meanings of storage classes?
NU Year 2007
Question Write a program to convert the temperature in Fahrenheit to Celsius and vice versa.
NU Year 2007
Question Describe Nesting of IF-ELSE statement with flow-chart and example .
NU Year 2007
Question Write down the De-Morgan's rules in the case of decision making andbranching.
NU Year 2007
Question Write a program to read the value of x and evaluate the following function using IF statement and ? : operator- y={ 1 for x> 0 0 for x = 0 -1 for x< 0}
NU Year 2007
Question What is array? Why an array is called structured data types?
NU Year 2007
Question Write a program to set all the diagonal elements of a two-dimensional array to 1and others to 0 .
NU Year 2007
Question Characterstring in Cterminateswith null character. Explain how this feature helps suing manipulation.
NU Year 2007
Question Briefly explain"atoi ( ) " with suitable example.
NU Year 2007
Question Describe different types of string-handling functions with meaning andexample
NU Year 2007
Question Write a program to find the number and sum of all integers and greater than 100 and less than 200 that are divisible by 7 using function
Question Write a program to find the number and sum of all integers and greater than 100 and less than 200 that are divisible by 7 using function
Question Write a program to find the number and sum of all integers and greater than 100 and less than 200 that are divisible by 7 using function
NU Year 2007
Question Write a program in C to add and subtracttwo same sizematrices
NU Year 2007
Question What is pointer? Write down the benefits of pointer uses in C program .
NU Year 2007
Question How can you define a file in C ? Describe the opening and closing function ofa FILE.
NU Year 2007
Question A file named DATA contains a series of integer numbers. Code a program to read these numbers and then write all 'odd'_numb_ to a file to be called ODDand all 'even' numbers to a file to be called EVEN.
Question A file named DATA contains a series of integer numbers. Code a program to read these numbers and then write all 'odd'_numbers to a file to be called ODDand all 'even' numbers to a file to be called EVEN.
NU Year 2007
Question Briefly describe the structure of a C program.
NU Year 2007
Question Draw the flow-chart that shows the process of compiling and running a C program.
NU Year 2007
Question Write a program to find the area of a circle. (Useπas a symbolic constant)
NU Year 2007
Question Briefly explain different form of main ( ) function used in C.
NU Year 2007
Question What are trigraph characters? How are they useful?
NU Year 2007
Question what is programming language? write down some salient 5 features of C.
NU Year 2012
Question Describe the basic stucture of a C program .
NU Year 2016
Question Draw the flow chart thgat shows the process of compling and running a C program.
NU Year 2007
Question Briefly explain different from of main () function used in C.
NU Year 2007
Question Write a program to find area of a circle (use PAI as a symbolic constant)
NU Year 2007
Question what are trigraph Characters? How are they useful?
NU Year 2007
Question How do variables and symbolic names differ ? show with example.
NU Year 2007
Question what are the rules for declaring identifiers?
NU Year 2007
Question what is stornge class ?what the meaning of storage classes?
NU Year 2007
Question write as program to convert the given temperature in fahrenheit to celsius and vice versa.
NU Year 2007
Question Describe Nesting of IF -ELSE statment with flow chart and example.
NU Year 2007
Question writedown the de -morgan's rules in case of decision making and branching .
NU Year 2007
Question wreite a program that read the value of x and evaluate the flowing funsion using if statment and?:operator-{1 for x>00 for x=0-1 for x<0
NU Year 2007
Question what is array?why an array is called structed data types?
NU Year 2007
Question write a program to set all the diagonal elements of a two dimensional array to ! and others to 0.
NU Year 2007
Question character string in C terminates with null chartacter.Explaine how this the feature helps in string manipulation.
NU Year 2007
Question Briefly explain atio() with suitable example.
NU Year 2007
Question Find errors ,if any ,in the following code segmenrts1) char str [10];strcpy(str,"GOD",3);printf ("%s ",str);2) char str [10};strcpy (str,"Balagurusami");3)if (strstr( "Balagurusami" ,"guru ")==)printf ("substring is found ");4) char s1 [5],s2[10];gets (s1,s2);5) char s1 [] ="Hellow" ,S[]="world ",s3[8];strcpy(strcats (s1,s2),s3)
NU Year 2007
Question Describe different types os string handlind functions with meaning and example.
NU Year 2007
Question write a program to fine the number and sum all integers greater than 100 and less than 200 that are devisible by 7 using function.
NU Year 2007
Question write a program in C to add and subtract two size matrices.
NU Year 2007
Question what is the pointer ? writwe down the benefits of pointer uses in C program.
NU Year 2007
Question How can define a FILE in C ? Describe the opening and Closing functin of a FILE.
NU Year 2007
Question A file named DATA contains a series of integer Numbers Coder aprogram to read thees numbers and the write all "odd" numbers to file to be called ODD and all 'even" numbers to a file to be called EVEN.
NU Year 2007
Question write down about ten important features of C programming language.
NU Year 2008
Question Describe the basic structure of a C program.
NU Year 2008
Question Describe the four basic data types used in C language .how could we extend the range of values they representet.
NU Year 2008
Question write down the rules for formaming variables names.
NU Year 2008
Question Discuse different data types used in C with example.
NU Year 2008
Question when do use long ,short and unsigned quantifiewrs ? Give example of each of the cases.
NU Year 2008
Question Write a porgram to evalutae the polynomial 3x ^2+5x^2+6 for X=3.2 and display the result.
NU Year 2008
Question In what ways does a switch statement differ from an if statement?
NU Year 2008
Question write a program to find the number of and sum of all integers greater than 100 and less than 200 that are divisisible by 7.
NU Year 2008
Question Compare in terms of their functions, the following pairs of statements -1) while and do ............while;2) while and for ,3) Break and Continue
NU Year 2008
Question Write a program to Computer the sum of the digits of a given number.
NU Year 2008
Question What is an array ?Define a Character array to store the word "Hello"
NU Year 2008
Question Define a two dimensional integer array and input data values of 4 rows of 5 columns each.
NU Year 2008
Question What is a User defined function? what are arguments and formal parameters of a function?
NU Year 2008
Question what are the differences between local and global variables?
NU Year 2008
Question write a c program to find perfect numbers?
Institute Ahsanullah Institute of Information and Communication Technology 2016
Question write a program which will input some numbers in an integer array and pass this to a function called minimum () .this function will find the minimum of the array values and returns this valu to main () function for displaying it.
NU Year 2008
Question Describe the limitations of using getchar and scanf functions for reading strings.
NU Year 2008
Question write a program to exctract a partion of a character string and print the extracted string.Assume that m characters are extracted string with the nth character.
NU Year 2008
Question write a program whice will read a text and count all occurrences of particular word.
NU Year 2008
Question Distinguish between the following :1) Automatice and static variables;2)Global and Local Variables ;
NU Year 2008
Question what do you mean by variable?
Question Write a program that will obtain the length and width of a rectangle from the user and computeits area and perimeter.
NU Year 2017
Question What is a programming language? write down some salient features of C.
Institute Tejgaon College 2012
Question Explain the basic structure of a C Program
Institute Dhaka City College 2012
Question Briefly explain the different form of main() function used in C.
Institute Tejgaon College 2013
Question Write a program to find the area of a circle. (Use pie as a symbolic constatnt)
Institute Tejgaon College 2012