1. What is the output of the following program?
#include<stdio.h>
main()
{
fprintf(stdout,"Hello, World!");
}
DEBUGGING
Quiz
•
Computers, Other, Education
•
University
•
Hard
VéLmUruKàN MàThí
Used 6+ times
FREE Resource
26 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
1. What is the output of the following program?
#include<stdio.h>
main()
{
fprintf(stdout,"Hello, World!");
}
A . Hello, World!
B. No output
C . Compile error
D . Runtime error
2.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
2.What is the output of the following program?
#include<stdio.h>
int main();
void main()
{
printf("Okay");
}
A . Okay
B. No output
C . Compile error. We can not declare main() function.
D. Compile error. Mismatch in declaration & definition.
3.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
3- Which scanf() statement will you use to scan a float value (a) and double value (b)?
Float a;
Double b;
A. scanf("%f %f", &a, &b);
B. scanf("%lf % lf ", &a, &b);
C. scanf("%Lf %Lf", &a, &b);
D. scanf("%f %lf", &a, &b);
4.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
4 - An operation with only one operand is called unary operation.
A . Yes
B . An operation with two operand is called unary operation
C . An operation with unlimited operand is called unary operation
D. None of the above
5.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
5 - Choose the function that is most appropriate for reading in a multi-word string?
A. strnset()
B. scanf()
C. strchr()
D. gets()
6.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
6. What is the correct value to return to the operating system upon the successful completion of a program?
A. -1
B. 1
C.0
D. Programs do not return a value
7.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
7. Which of the following is a correct comment?
A. */ Comments */
B. ** Comment **
C. /* Comment */
D. { Comment }
22 questions
c++
Quiz
•
University
25 questions
Feb 20, 2025 AP CompSci - 1st Period
Quiz
•
12th Grade - University
25 questions
Programming Skills C/C++
Quiz
•
University
24 questions
Round 3: Coding Round
Quiz
•
University
25 questions
Python Programming Basics 1
Quiz
•
University
25 questions
Code Carnival
Quiz
•
University
30 questions
Data Structure & Algorithm-Quiz-1
Quiz
•
University
25 questions
C PROGRAMMING
Quiz
•
University
15 questions
Character Analysis
Quiz
•
4th Grade
17 questions
Chapter 12 - Doing the Right Thing
Quiz
•
9th - 12th Grade
10 questions
American Flag
Quiz
•
1st - 2nd Grade
20 questions
Reading Comprehension
Quiz
•
5th Grade
30 questions
Linear Inequalities
Quiz
•
9th - 12th Grade
20 questions
Types of Credit
Quiz
•
9th - 12th Grade
18 questions
Full S.T.E.A.M. Ahead Summer Academy Pre-Test 24-25
Quiz
•
5th Grade
14 questions
Misplaced and Dangling Modifiers
Quiz
•
6th - 8th Grade