Identify the error in this C program:
#include <stdio.h>
int main() {
print("Hello, World!");
return 0;
}

ECE-C Quiz _3

Quiz
•
Computers
•
University
•
Medium
ch.keerthana GNITS
Used 1+ times
FREE Resource
10 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
missing #include statement
incorrect function name
syntax error
no error
2.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
.Which of the following is a valid identifier in C?
2gnits
_name
ece-c
none of the above
3.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Identify the error in this C code:
int main() {
int number = 100.5;
printf("%d", number);
return 0;
}
assigning float to int
no error
syntax error
wrong print format
4.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What does %d signify in the printf or scanf function?
double data type
Decimal integer
Dynamic allocation
none of the above
5.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
.What will be the output of the following C code?
int main() {
printf("%d", 500);
return 0;
}
500
syntax error
%d
none of the above
6.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
which character is used to indicate the end of a statement in c?
:
;
,
.
7.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
which data type is used to represent a single character in c?
int
float
char
double
Create a free account and access millions of resources
Similar Resources on Quizizz
10 questions
C Programming - Basics 001

Quiz
•
University
15 questions
Milking Minds 2 17-01-24

Quiz
•
University
15 questions
BASIC C PROGRAMMING QUIZ

Quiz
•
University
12 questions
Operators in C

Quiz
•
University
10 questions
C Programming Quiz-1

Quiz
•
University
10 questions
PROGRAMACION

Quiz
•
9th Grade - University
10 questions
Expression in C Programming

Quiz
•
University
15 questions
BASIC C QUIZ

Quiz
•
University
Popular Resources on Quizizz
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