
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
15 questions
quiz pertemuan 2 asik ddp

Quiz
•
University
10 questions
Struktur Data

Quiz
•
University
10 questions
На сколько ты знаешь C#

Quiz
•
University
10 questions
Programming for Problem Solving

Quiz
•
University
12 questions
javaquizvivek

Quiz
•
University
10 questions
Summer Code Camp - Lesson 1

Quiz
•
University
12 questions
Array

Quiz
•
University
10 questions
Java Control Flow statements

Quiz
•
University
Popular Resources on Wayground
10 questions
Video Games

Quiz
•
6th - 12th Grade
20 questions
Brand Labels

Quiz
•
5th - 12th Grade
15 questions
Core 4 of Customer Service - Student Edition

Quiz
•
6th - 8th Grade
15 questions
What is Bullying?- Bullying Lesson Series 6-12

Lesson
•
11th Grade
25 questions
Multiplication Facts

Quiz
•
5th Grade
15 questions
Subtracting Integers

Quiz
•
7th Grade
22 questions
Adding Integers

Quiz
•
6th Grade
10 questions
Exploring Digital Citizenship Essentials

Interactive video
•
6th - 10th 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
36 questions
Unit 5 Key Terms

Quiz
•
11th Grade - University
7 questions
Figurative Language: Idioms, Similes, and Metaphors

Interactive video
•
4th Grade - University
15 questions
Properties of Equality

Quiz
•
8th Grade - University
38 questions
WH - Unit 3 Exam Review*

Quiz
•
10th Grade - University
21 questions
Advise vs. Advice

Quiz
•
6th Grade - University
12 questions
Reading a ruler!

Quiz
•
9th Grade - University