Call
whatsapp
9447387064 | 9847003556
0471-2335855 | 8089080088 | 0471-2334855
9447387064 | 9847003556
0471-2335855 | 8089080088 | 0471-2334855
Cisco Training in Trivandrum, Trinity Technologies

No.1 Training Institute in Kerala

C PROGRAM QUESTIONS : PART 34

What will be output if you will compile and execute the following c code?
void main(){
static main;
int x;
x=call(main);
clrscr();
printf("%d ",x);
getch();
}
int call(int address){
address++;
return address;
}

0
1
 Garbage value
Compiler error
None of these
SHOW ANSWER

What will be output if you will compile and execute the following c code?
#include "string.h"
void main(){
clrscr();
printf("%d %d",sizeof("string"),strlen("string"));
getch();
}

6 6
7 7
 6 7
 7 6
None of these
SHOW ANSWER

What will be output if you will compile and execute the following c code?
void main(){
int huge*p=(int huge*)0XC0563331;
int huge*q=(int huge*)0xC2551341;
*p=200;
printf("%d",*q);
}

0
Garbage value
null
 200
Compiler error
SHOW ANSWER

What is the right way to access value of structure variable book{ price, page }?

printf("%d%d", book.price, book.page);
printf("%d%d", price.book, page.book);
printf("%d%d", price::book, page::book);
printf("%d%d", price->book, page->book);
SHOW ANSWER

perror( ) function used to ?

Work same as printf()
 prints the error message specified by the compiler
prints the garbage value assigned by the compiler
None of the above
SHOW ANSWER

Bitwise operators can operate upon?

double and chars
 floats and doubles
ints and floats
 ints and chars
SHOW ANSWER

What is C Tokens?

The smallest individual units of c program
 The basic element recognized by the compiler
The largest individual units of program
A & B Both
SHOW ANSWER

 What is Keywords?

Keywords have some predefine meanings and these meanings can be changed.
Keywords have some unknown meanings and these meanings cannot be changed.
Keywords have some predefine meanings and these meanings cannot be changed.
None of the above
SHOW ANSWER

What is constant?

Constants have fixed values that do not change during the execution of a program
Constants have fixed values that change during the execution of a program
Constants have unknown values that may be change during the execution of a program
None of the above
SHOW ANSWER

Which is the right way to declare constant in C?

int constant var =10;
 int const var = 10;
const int var = 10;
B & C Both
SHOW ANSWER

Which operators are known as Ternary Operator?

::, ?
?, :
?, ;;
None of the avobe
SHOW ANSWER

In switch statement, each case instance value must be _______?

Constant
Variable
Special Symbol
None of the avobe
SHOW ANSWER

What is the work of break keyword?

Halt execution of program
Restart execution of program
Exit from loop or switch statement
 None of the avobe
SHOW ANSWER
BACK | NEXT
TRINITY SOFTWARE SOLUTIONS,IInd floor, Radheyam Towers, Gandhari Amman Kovil Road, Pulimood, Trivandrum - 1
0471-2334855 | 2335855 | 9447387064 | 9847003556 info@trinitytechnology.in