In a graph G, degree of each vertices is same then G will be ___
- Complete Graph
- Cycle Graph
- Both
- None of these
- option2
Clear All
In a complete graph of vertices n degree of each vertices is n-1, but in cycle Graph degree of each vertices must be 2.
Loading...
What will be output of following C program? #include void main(){ int a; if(a=-1) printf("Quiz "); if(a=1) printf("Sagar"); }
- Sagar
- Quiz
- Quiz Sagar
- Syntax Error
- option3
Clear All
All none zero number are considered true. So a=-1 will is true.
Loading...
What type of error will generate by following c program?
#include
int main() {
int *p=NULL;
*p+=1;
int a=5;
printf("%d",p);
return 0;
}
- Syntax Error
- Segmentation Error
- Missing Semicolon
- Invalid Operand
- option2
Clear All
We can't incriment NULL memory address.
Loading...
Which variable cannot be dereferenced in C Language?
- auto
- register
- static
- extern
- option2
Clear All
Variable declared with register storage class cannot be dereferenced because register variable stored at CPU register.
Loading...
Which variables can be declared many time but initialized only once in C Language?
- auto
- extern
- static & extern
- auto & static
- option3
Clear All
Loading...
Consider an array multiplier for multiplying two n bit numbers. If each gate in the circuit has a unit delay, the total delay of the multiplier is
- θ(n²)
- θ(logn)
- θ(1)
- θ(n)
- option1
Clear All
Loading...
In the worst case, the number of comparisons needed to search a singly linked list of length n for a given element is
- n/2
- n
- log n
- log2n
- option2
Clear All
Loading...
If θ=90 then sinθ + cosθ
- 2
- 0
- 1
- -1
- option3
Clear All
sin90=1,
cos90=0
sin90 + cos90 =1+0=1
Loading...
Convert the following prefix expression into postfix expression * - + A B C D
- A B C D + - *
- A B C D * - +
- A B + C - D *
- A B + C D *
- option3
Clear All
Loading...
Data transfer between the main memory and the CPU register takes place through two registers namely
- general purpose register and MDR
- MAR and MDR
- MAR and Accumulator
- accumulator and program counter
- option2
Clear All
Loading...