
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
Identify the error in this C program:
#include <stdio.h>
int main() {
print("Hello, World!");
return 0;
}
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 Wayground
10 questions
kt1_LTCB_50CCNTT

Quiz
•
University
10 questions
Bahasa Pemrograman Python

Quiz
•
University
15 questions
C Language Quiz-1

Quiz
•
University - Professi...
10 questions
Quiz 1

Quiz
•
University
13 questions
C programming-1

Quiz
•
University
15 questions
Java Method

Quiz
•
University
10 questions
Array in C

Quiz
•
University
15 questions
Python Basics

Quiz
•
KG - University
Popular Resources on Wayground
10 questions
Lab Safety Procedures and Guidelines

Interactive video
•
6th - 10th Grade
10 questions
Nouns, nouns, nouns

Quiz
•
3rd Grade
10 questions
9/11 Experience and Reflections

Interactive video
•
10th - 12th Grade
25 questions
Multiplication Facts

Quiz
•
5th Grade
11 questions
All about me

Quiz
•
Professional Development
22 questions
Adding Integers

Quiz
•
6th Grade
15 questions
Subtracting Integers

Quiz
•
7th Grade
9 questions
Tips & Tricks

Lesson
•
6th - 8th Grade
Discover more resources for Computers
21 questions
Spanish-Speaking Countries

Quiz
•
6th Grade - University
20 questions
Levels of Measurements

Quiz
•
11th Grade - University
7 questions
Common and Proper Nouns

Interactive video
•
4th Grade - University
12 questions
Los numeros en español.

Lesson
•
6th Grade - University
7 questions
PC: Unit 1 Quiz Review

Quiz
•
11th Grade - University
7 questions
Supporting the Main Idea –Informational

Interactive video
•
4th Grade - University
12 questions
Hurricane or Tornado

Quiz
•
3rd Grade - University
7 questions
Enzymes (Updated)

Interactive video
•
11th Grade - University