
Introduction & Basic Program Structure
Authored by Willone Lim
Information Technology (IT)
University
Used 4+ times

AI Actions
Add similar questions
Adjust reading levels
Convert to real-world scenario
Translate activity
More...
Content View
Student View
10 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
20 sec • 1 pt
Which of the following is a valid C main() declaration?
main() { ... }
void main() return 0;
int main() { return 0; }
int main;
2.
MULTIPLE CHOICE QUESTION
20 sec • 1 pt
Every C program must have a main() function.
True
False
3.
MULTIPLE CHOICE QUESTION
20 sec • 1 pt
In C, each statement must end with:
Colon, :
Semicolon, ;
Period, .
Parentheses, ()
4.
MULTIPLE CHOICE QUESTION
20 sec • 1 pt
What will the output be?
gcc.exe: fatal error: no input files
Hello World
HelloWorld
gcc.exe: fatal error: no input files
"C:\path\to\your\compiler.exe" failed to launch (exit code: 0)
5.
MULTIPLE SELECT QUESTION
20 sec • 1 pt
Which format specifier(s) are used for an integer in printf? Select more than one answer (Select all that apply)
%f
%d
%c
%i
%s
6.
MULTIPLE CHOICE QUESTION
20 sec • 1 pt
What will the following code output?
A
Hello World
format '%i' expects argument of type 'int', but argument 2 has type 'char'
65
7.
MULTIPLE CHOICE QUESTION
20 sec • 1 pt
Which of the following is the correct way to read an integer input into variable num?
scanf("%d", num);
scanf("%i", &num);
scanf("%s", &num);
scanf("%d", &num[]);
Access all questions and much more by creating a free account
Create resources
Host any resource
Get auto-graded reports

Continue with Google

Continue with Email

Continue with Classlink

Continue with Clever
or continue with

Microsoft
%20(1).png)
Apple
Others
Already have an account?
Similar Resources on Wayground
15 questions
Getting Familiar with GIT and GITHUB
Quiz
•
University
10 questions
Deep learning Batch 1
Quiz
•
University
15 questions
P3 IAS 2 Quiz
Quiz
•
University
10 questions
Melaka 2024
Quiz
•
University
12 questions
CLC Lesson 4&5 Quiz
Quiz
•
University
12 questions
CLC Unit 2 Lesson 5,6 & 7 Quiz
Quiz
•
University
15 questions
Career Alignment for Drone Technology
Quiz
•
10th Grade - University
10 questions
NoSQL Concepts 2
Quiz
•
University
Popular Resources on Wayground
8 questions
2 Step Word Problems
Quiz
•
KG - University
20 questions
Comparing Fractions
Quiz
•
4th Grade
15 questions
Fractions on a Number Line
Quiz
•
3rd Grade
20 questions
Equivalent Fractions
Quiz
•
3rd Grade
25 questions
Multiplication Facts
Quiz
•
5th Grade
10 questions
Latin Bases claus(clois,clos, clud, clus) and ped
Quiz
•
6th - 8th Grade
22 questions
fractions
Quiz
•
3rd Grade
7 questions
The Story of Books
Quiz
•
6th - 8th Grade
Discover more resources for Information Technology (IT)
8 questions
2 Step Word Problems
Quiz
•
KG - University
7 questions
Comparing Fractions
Interactive video
•
1st Grade - University
7 questions
Force and Motion
Interactive video
•
4th Grade - University
10 questions
14.2 Independent/Dependent Variables
Quiz
•
KG - University
18 questions
Great Lakes States
Quiz
•
KG - University
7 questions
DNA, Chromosomes, Genes, and Traits: An Intro to Heredity
Interactive video
•
11th Grade - University
7 questions
Reflexive Verbs in Spanish
Lesson
•
9th Grade - University
7 questions
Narrative Writing 1
Interactive video
•
4th Grade - University