Exam 3: Loops, Headers, Macros, and Arrays
Exam 1: Computer Basics and C Programming18 Questions
Exam 2: C Programming Language20 Questions
Exam 3: Loops, Headers, Macros, and Arrays53 Questions
Select questions type
Consider the 32 bit compiler. We need to store address of integer variable to integer pointer. What will be the size of integer pointer?
Free
(Multiple Choice)
4.9/5
(37)
Correct Answer:
C
Which one of the following is invalid macro in C programming?
Free
(Multiple Choice)
4.8/5
(44)
Correct Answer:
D
If we have declared an array described below -int arr[6];then which of the following array element is considered as last array element ?
Free
(Multiple Choice)
4.8/5
(33)
Correct Answer:
D
What will happen if in a C program you assign a value to an array element whose subscript exceeds the size of array?
(Multiple Choice)
4.8/5
(45)
Array which is having ____ dimensions is called as 2-D array.
(Multiple Choice)
4.7/5
(33)
#include "stdio.h"
Int main()
{
Int a = 10, b = 20;
If(a=b)
{
Printf("Easy");
}
Else{printf("Hard");
}
Return 0;
}
(Multiple Choice)
4.8/5
(37)
What is output of below program?
Int main()
{
Int i,j;
For(i = 0,j=0;i<5;i++)
{
Printf("%d%d--",i,j);
}
Return 0;
}
(Multiple Choice)
5.0/5
(33)
Which macro is used to insert assembly code in C program (GCC compiler)?
(Multiple Choice)
4.9/5
(32)
#include "stdio.h"
Int main()
{
Int a@ = 10;
Printf("%d", a@);
Return 0;
}
(Multiple Choice)
4.7/5
(36)
In Array, There is one to one correspondence between set of ________ and set of values.
(Multiple Choice)
4.8/5
(40)
Array with last element 'n' will always have array size equal to _______.
(Multiple Choice)
5.0/5
(38)
What is output of below program?
Int main()
{
For(; ;);
For(; ;);
Printf("Hello");
Return 0;
}
(Multiple Choice)
4.8/5
(37)
Showing 1 - 20 of 53
Filters
- Essay(0)
- Multiple Choice(0)
- Short Answer(0)
- True False(0)
- Matching(0)