Study the following program:
main()
{printf("javatpoint");
main();
}
What will be the output of this program?
Programming Fundamentals 12th june
Quiz
•
Professional Development
•
Professional Development
•
Medium
Rajeev Agarwa
Used 4+ times
FREE Resource
30 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
Study the following program:
main()
{printf("javatpoint");
main();
}
What will be the output of this program?
Wrong statement
It will keep on printing javatpoint
It will Print javatpoint once
None of the these
2.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
What will this program print?
main()
{
int i = 2;
{
int i = 4, j = 5;
printf("%d %d", i, j);
}
printf("%d %d", i, j);
}
2525
2545
4545
4525
3.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
What is a lint?
C compiler
Interactive debugger
Analyzing tool
C interpreter
4.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
Study the following program:
main()
{
char x [10],
*ptr = x;
scanf ("%s", x);
change(&x[4]);
}
change(char a[])
{
puts(a);
}
If abcdefg is the input, the output will be
abcd
abc
efg
Garbage
5.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
Study the following program:
main()
{
int a = 1, b = 2, c = 3:
printf("%d",
a + = (a + = 3, 5, a))
}
What will be the output of this program?
6
9
12
8
6.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
What does this declaration mean?
X is a four-digit integer.
X cannot be greater than a four-digit integer.
X is a four-bit integer.
None of the these
7.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
Why is a macro used in place of a function?
It reduces execution time.
It reduces code size.
It increases execution time.
It increases code size.
27 questions
Aplikasi android
Quiz
•
Professional Development
29 questions
Revisão de Python - básico
Quiz
•
Professional Development
30 questions
Python
Quiz
•
Professional Development
27 questions
ICT in the workplace
Quiz
•
Professional Development
25 questions
Idioms and Work I
Quiz
•
Professional Development
25 questions
CxEngage knowledge sharing test
Quiz
•
Professional Development
25 questions
core java 2
Quiz
•
Professional Development
25 questions
Programming In C
Quiz
•
5th Grade - Professio...
15 questions
Multiplication Facts
Quiz
•
4th Grade
20 questions
Math Review - Grade 6
Quiz
•
6th Grade
20 questions
math review
Quiz
•
4th Grade
5 questions
capitalization in sentences
Quiz
•
5th - 8th Grade
10 questions
Juneteenth History and Significance
Interactive video
•
5th - 8th Grade
15 questions
Adding and Subtracting Fractions
Quiz
•
5th Grade
10 questions
R2H Day One Internship Expectation Review Guidelines
Quiz
•
Professional Development
12 questions
Dividing Fractions
Quiz
•
6th Grade