C Programming - Basics 001

Quiz
•
Computers
•
University
•
Hard
Used 69+ times
FREE Resource
10 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
20 sec • 1 pt
Can we declare function inside structure of C Programming?
Yes
No
Depends on Compiler
Yes but run time error
2.
MULTIPLE CHOICE QUESTION
20 sec • 1 pt
What is storage class for variable A in below code?
void main()
{
int A;
A = 10;
printf("%d", A);
}
extern
register
auto
static
3.
MULTIPLE CHOICE QUESTION
20 sec • 1 pt
What is output of below program?
void main()
{
const int a = 10;
printf("%d",++a);
}
11
10
Compilation Error
0
4.
MULTIPLE CHOICE QUESTION
20 sec • 1 pt
Library function pow() belongs to which header file?
mathio.h
math.h
square.h
stdio.h
5.
MULTIPLE CHOICE QUESTION
20 sec • 1 pt
Libray function getch() belongs to which header file?
stdio.h
conio.h
stdlib.h
stdlibio.h
6.
MULTIPLE CHOICE QUESTION
20 sec • 1 pt
What is the following is invalid header file in C?
mathio.h
math.h
string.h
ctype.h
7.
MULTIPLE CHOICE QUESTION
20 sec • 1 pt
What is output of below code?
void main()
{
char name[]="Cppbuz";
int len;
int size;
len = strlen(name);
size = size_of(name);
printf("%d,%d",len,size);
}
6,6
6,7
7,7
0,0
Create a free account and access millions of resources
Similar Resources on Wayground
15 questions
CIS1101-programming practice

Quiz
•
University
10 questions
C - Pointers

Quiz
•
University
10 questions
C Program Array and strings

Quiz
•
University
10 questions
Basics Of C Programming

Quiz
•
University
9 questions
c language quiz

Quiz
•
University
10 questions
Arrays in C (II yr 02.07.2020)

Quiz
•
University
15 questions
Coding club Summit Online Quiz

Quiz
•
University
15 questions
Common errors in C programming

Quiz
•
University
Popular Resources on Wayground
50 questions
Trivia 7/25

Quiz
•
12th Grade
11 questions
Standard Response Protocol

Quiz
•
6th - 8th Grade
11 questions
Negative Exponents

Quiz
•
7th - 8th Grade
12 questions
Exponent Expressions

Quiz
•
6th Grade
4 questions
Exit Ticket 7/29

Quiz
•
8th Grade
20 questions
Subject-Verb Agreement

Quiz
•
9th Grade
20 questions
One Step Equations All Operations

Quiz
•
6th - 7th Grade
18 questions
"A Quilt of a Country"

Quiz
•
9th Grade