Which one of the following is not a valid identifier? exam_veda examians1 1examians _examians TRUE ANSWER : ? YOUR ANSWER : ?
Use of functions Helps to avoid repeated programming across programs. Helps to avoid repeating a set of statements many times. All of these Enhances the logical clarity of the program. Makes the debugging task easier. TRUE ANSWER : ? YOUR ANSWER : ?
What will be the output of the program if the array begins at address 65486?#includevoid main(){ int arr[] = {12, 14, 15, 23, 45}; printf("%u, %u", arr, &arr);} 65486, 65487 65486, 65488 None of these 65486, 65486 65486, 65490 TRUE ANSWER : ? YOUR ANSWER : ?
Comment on the following pointer declaration?int *ptr, p; ptr and p both are not pointers to integer. ptr and p, both are pointers to integer. ptr is a pointer to integer, p is not. ptr is pointer to integer, p may or may not be. TRUE ANSWER : ? YOUR ANSWER : ?
Determine Output:void main(){ int a[] = {10,20,30,40,50}, j, *p; for(j=0; j<5; j++){ printf("%d" ,*a); a++; } p = a; for(j=0; j<5; j++){ printf("%d" ,*p); p++; }} Error None of These 10 20 30 40 50 Garbage Value 10 20 30 40 50 10 20 30 40 50 TRUE ANSWER : ? YOUR ANSWER : ?
"My salary was increased by 15%" Select the statement, which will EXACTLY reproduce the line of text above. printf("My salary was increased by 15/%!"); printf("My salary was increased by 15%%!"); printf("My salary was increased by 15%!"); printf("My salary was increased by 15'%'!"); TRUE ANSWER : ? YOUR ANSWER : ?
What is the difference between a declaration and a definition of a variable? Both can occur multiple times, but a definition must occur first. A declaration occurs once, but a definition may occur many times. There is no difference between them. Both can occur multiple times, but a declaration must occur first. A definition occurs once, but a declaration may occur many times. TRUE ANSWER : ? YOUR ANSWER : ?
Determine output:main(){ int i = abc(10); printf("%d", --i);}int abc(int i){ return(i++);} 9 10 None of these. 11 TRUE ANSWER : ? YOUR ANSWER : ?
What is the right choice, if the following loop is implemented?void main(){ int num = 0; do{ --num; printf("%d", num); }while( ++num >= 0 );} The loop will run infinitely many times. Prints the value of 0 one time only. There will be a compilation error reported. A run time error will be generated. The program will not enter into the loop. TRUE ANSWER : ? YOUR ANSWER : ?
Which of the following is correct way to define the function fun() in the below program?#include<stdio.h>void main(){ int a[3][4]; fun(a);} void fun(int p[][4]){} None of these void fun(int *p[][4]){} void fun(int *p[4]){} void fun(int *p[3][4]){} TRUE ANSWER : ? YOUR ANSWER : ?