Online Test

:

 

Which escape character can be used to beep from speaker in C?  


Which of the following is an example of compounded assignment statement?  


C was developed in the year ___  


 What will be the output of the program below

#include
main()
{
char *a[4]={"Amit","Abhinav","Akhil","Prashant"};
int i = sizeof(a)/sizeof(char *);
printf("i = %d\n", i);
}

Which symbol is used as a statement terminator in C?  


 C is a ___ language  


C programming language was developed by  :


Match the following

  1. New line                                         i) \t
  2. Tab                                                ii) \0
  3. Single quotes                                iii) \n
  4. Null                                               iv) ‘\”

In the following program where is the variable a getting defined and where it is getting declared?

#include<stdio.h>
int main()
{
    extern int a;
    printf("%d\n", a);
    return 0;
}
int a=20;

What is the output of the following program?

#include<stdio.h>
void main()
{
	int arr[5]={1,2,3,4,5,6};
	printf("size=%d ", sizeof(arr));
	printf("arr[5]=%d",arr[5]);
}

Primary data types are:


What is the valid range of numbers for int type of data?


What is the output of the following program?

#include<stdio.h>
void main()
{
	printf("%c","TechEpi"[4]);
}

Which of the following language is predecessor to C Programming Language?


Output of the printf("%-2.3f\n",17.23478) will be 


C language is available for which of the following Operating Systems?  


Which of the following is not a valid variable name declaration?


Which of the following is a Scalar Data type  


A character variable can store  x characters at a time:


Which header file should be included for a function which accepts variable number of arguments?


What is the output of the following program?

#include<stdio.h>
void main()
{
	int a=6,b=5,c=4;
	printf("%d",(a>b>c?1:0));
}

The maximum length of a variable in C is ___  


What is the output of the following program?

#include<stdio.h>
void main()
{
    int[] a={100,200,300};
    printf("%d",a[2]);
}

What is the output of the following program?

#include<stdio.h>
void main()
{
        int arr[]={1.999999,2.999999};
        printf("%d %d %d %d ",*(arr),*(arr+0), 1[arr],0[arr+1]);
}

Which of the following is the correct output of the program?

#include<stdio.h>
int main()
{
    int a[5]={9,10};
    printf("%d,%d",a[1],a[2]);
    return 0;
}
 

About Us

TechEpi.com is an online learning website.We cover the latest tech news,online tutorials,blog,online test for Aptitude,C,Java,PHP to improve your knowledge.

Newsletter


Follow TechEpi on