The correct syntax to send an array "array" as a parameter to function "func" is
Official theoretical question paper for Programming For Problem Solving (ES-CS201) conducted by Maulana Abul Kalam Azad University of Technology. All questions from Groups A, B, and C are reproduced below with marks weightings.
The correct syntax to send an array "array" as a parameter to function "func" is
What is the output of this C code ? #include <stdio.h> void main () { double k = 0; for ( k = 0.0; k < 3.0; k ++ ); printf ( "%f", k ); }
Number of bytes required to store a float variable is
The Hexadecimal equivalent of the number (101101010010)₂ is
The value of EOF is
Which of the following are themselves a collection of different data types ?
A 64 bit microprocessor has word length equal to
Which one of the following is a ternary conditional operator ?
Obtain the 2's complement for '1001' in twice.
Find out the output : main () { int i = 1; printf ("\n % d % d % d", ++ i, i ++ ); }
Write a flowchart to find the sum of the first n prime numbers, where n should be given by the user.
What is logical operator ?
Write a program in C to print the sum of the following series (upto n terms where n should be given by the user) : 1 + 2²/2! + 3³/3! + ....
Given two numbers write a program in C to find the HCF in recursive way.
What is type casting ?
Indicate the difference between a structure and union.
What are the advantages of 2's complement over 1's complement ?
Perform the subtraction with the following binary numbers using 2's complement and 1's complement respectively : i) 11010 - 1101 ii) 10010 - 10011.
Input two strings and pass them to a user defined function to compare them.
Write a program to input a n × n matrix and print the maximum element of the matrix.
Differentiate between Complier and Interpreter.
Convert the following numbers as indicated : i) Decimal 225.225 to binary. ii) Binary 11010111.1110 to octal. iii) Hexadecimal 2AC5.D to binary.
Why is NAND gate called Universal gate ? Explain with example.
What is bit-wise operator ?
What is a function ? What are the advantages of using functions ? Write a C program to find out the number of vowels in a string. Explain call by value and call by reference with example.
Write a C program to find the real roots of the quadratic equation using user define function quad(). What is array of pointers ? Explain with example. Why is a NOR gate called a universal gate ? Simplify (A + B̅) . (A . C) + (A . B̅ + A̅ . C) . (A + B̅)
Write short notes on any three of the following : i) Relational Operators ii) Array of Pointers iii) Macro iv) Dynamic Memory Allocation v) XOR gate.