
F1 C Programming
Quiz
•
Computers
•
University
•
Practice Problem
•
Hard
Sivakumar S
Used 8+ times
FREE Resource
Enhance your content in a minute
20 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Fill in the missing condition to ensure a loop runs exactly 5 times:
i <= 5
i != 5
i < 5
i >= 5
2.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is the missing statement to declare a pointer to a function that takes two integers and returns a float?
float *func(int, int);
float (*func)(int, int);
float (func)(int, int);
float (*func())(int, int);
3.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which control statement is missing to stop infinite execution in the following loop?
break
continue
return
goto
4.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
To round off x (float), to an int value, the correct way to do is
y = (int)(x + 0.5)
y = int(x + 0.5)
y = (int)x + 0.5
y = (int)((int)x + 0.5)
5.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What will be the output of the following C code?
128
-128
Compiler-dependent
None of these
6.
MULTIPLE CHOICE QUESTION
20 sec • 1 pt
Pointer arithmetic is not possible on ___.
Integer pointers
Float pointers
Character pointers
Void pointers
7.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
Find the output:
20
24
4
18
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
20 questions
Artificial Intelligence CT-1
Quiz
•
University
15 questions
Sains Komputer Tingkatan 5 - 1.3.3 Membina Jadual Kebenaran
Quiz
•
1st Grade - Professio...
16 questions
Python Basics
Quiz
•
KG - University
20 questions
Python Recap
Quiz
•
7th Grade - University
20 questions
IT Essential UIUX Chapter 1 & 2
Quiz
•
University
20 questions
STM 2013 : FORMATIF T3-FORM & REPORT
Quiz
•
University
20 questions
Chapter 3: Strategic Initiatives for implementing CA
Quiz
•
University
20 questions
DWDM-2
Quiz
•
University
Popular Resources on Wayground
15 questions
Fractions on a Number Line
Quiz
•
3rd Grade
20 questions
Equivalent Fractions
Quiz
•
3rd Grade
25 questions
Multiplication Facts
Quiz
•
5th Grade
22 questions
fractions
Quiz
•
3rd Grade
20 questions
Main Idea and Details
Quiz
•
5th Grade
20 questions
Context Clues
Quiz
•
6th Grade
15 questions
Equivalent Fractions
Quiz
•
4th Grade
20 questions
Figurative Language Review
Quiz
•
6th Grade
