Programming Skills C/C++
Quiz
•
Computers
•
University
•
Practice Problem
•
Hard
Sunil Parihar
Used 8+ times
FREE Resource
Enhance your content in a minute
25 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
A C Variable cannot start with
A- A number
B- A special symbol other than underscore
C- Both A and B
D- An Alphabet
2.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
Find the output of the following program-
void main()
{
int i=01289;
printf("%d",i);
}
0289
1289
713
Syntax Error
3.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
What is the difference between a declaration and a definition of a variable?
Both can occur multiple times, but a declaration must occur first.
A definition occurs once, but a declaration may occur many times.
Both can occur multiple times, but a definition must occur first.
A declaration occurs once, but a definition may occur many times.
4.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
what will be printed by the following code?
void main()
{
short testarray[4][3] = { {1}, {2,3}, {4,5,6}};
printf("%d", sizeof(testarray));
}
Assuming a short is two bytes long.
24
18
12
6
5.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
How many times the program will print "SAIT Indore" ?
#include<stdio.h>;
int main()
{
printf("SAIT Indore");
main();
return 0;
}
Infinite times
32767 times
65535 times
Till stack overflows
6.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
The value printed by the following program is …………?
void f(int *p, int m)
{
m = m + 5;
p= p + m;
return;
}
void main()
{
int i=10, j=20;
f(&i , j)
printf(“%d”, i+j);
}
50
45
55
60
7.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
What would be the output of the following program.
#include<stdio.h>
main()
{
printf(“%d, %d”, sizeof(NULL), sizeof(‘ ‘));
}
2, 1
2, 2
0, 1
0, 2
Create a free account and access millions of resources
Create resources
Host any resource
Get auto-graded reports

Continue with Google

Continue with Email

Continue with Classlink

Continue with Clever
or continue with

Microsoft
%20(1).png)
Apple
Others
By signing up, you agree to our Terms of Service & Privacy Policy
Already have an account?
Similar Resources on Wayground
20 questions
FOP - CHAPTER 4
Quiz
•
University
20 questions
Grade 7 Python Programming Quiz
Quiz
•
7th Grade - University
25 questions
Algoritma dan Pemrograman
Quiz
•
12th Grade - University
23 questions
Java Array
Quiz
•
University
20 questions
C Quest 2.0
Quiz
•
University
20 questions
Programación orientada a objetos con C#
Quiz
•
University - Professi...
20 questions
PHP First Internal Practical Viva
Quiz
•
University
20 questions
Functions
Quiz
•
University
Popular Resources on Wayground
10 questions
Honoring the Significance of Veterans Day
Interactive video
•
6th - 10th Grade
9 questions
FOREST Community of Caring
Lesson
•
1st - 5th Grade
10 questions
Exploring Veterans Day: Facts and Celebrations for Kids
Interactive video
•
6th - 10th Grade
19 questions
Veterans Day
Quiz
•
5th Grade
14 questions
General Technology Use Quiz
Quiz
•
8th Grade
25 questions
Multiplication Facts
Quiz
•
5th Grade
15 questions
Circuits, Light Energy, and Forces
Quiz
•
5th Grade
19 questions
Thanksgiving Trivia
Quiz
•
6th Grade
Discover more resources for Computers
20 questions
Definite and Indefinite Articles in Spanish (Avancemos)
Quiz
•
8th Grade - University
7 questions
Force and Motion
Interactive video
•
4th Grade - University
9 questions
Principles of the United States Constitution
Interactive video
•
University
18 questions
Realidades 2 2A reflexivos
Quiz
•
7th Grade - University
10 questions
Dichotomous Key
Quiz
•
KG - University
25 questions
Integer Operations
Quiz
•
KG - University
7 questions
What Is Narrative Writing?
Interactive video
•
4th Grade - University
20 questions
SER vs ESTAR
Quiz
•
7th Grade - University
