Information Technology
Description: Computer | |
Number of Questions: 15 | |
Created by: Vijay Puri | |
Tags: IT Data Types Variables and Storage Classes Operators and Expression Conditional Statement Arrays and Pointers Java/Oracle /C/C++ Functions Standard C Preprocessor |
Which is the actual syntax to find the ratio of boys and girls in C language? (given that float ratio; int boys, girls;)
Find the output of the following code in C language assuming other parameters are correct.
void main( )
{
int a; int b;
scanf ("%2d %5d", &a, &b);
printf ("a = %d and b=%d.",a,b);
}
/* input by the user is a=12345 and b = 67 during program execution*/
Which one of the following is example of compound assignment operator in C language?
What will be output of the code if all other terms are assumed correct in C language? int age=17; (age>=18)? printf( I can vote.) : printf( I cannot vote.);
'goto' statement is used in C programming to __________.
What is the right coding to find the formatted output of float value upto 4 decimal points? float a=23.76548;
Which of the following is not correct in context to array in C language?
Write the steps to interchange the variable values using least memory usages. Given that - int i, j;
Which of the following statements is not correct about a function?
Find the output of the following code in C language, if assumed that all preprocessor directives are correct.
void main ( )
{
int a = 2, b = 2;
if (a > 2)
if (b > 2)
printf ( "Hello");
Else
Printf ("Hi");
}
If class name is Y, which is the right code to declare the copy constructor of the class?
A user defined header file myheader.h is saved at root directory. Write pre-processor directives to include the header file in the program code in C language.
Which of the following is true?
Which is correct statement about recursion?
Given code is written in C language. Find the output of the program.
int i = 6, j = 14, k = 7, l = 7, x; x = i > j ? j > k ? 12 : k > l? 13 : 14 : 15;printf("%d", x);