
C programming 2
Quiz
•
Computers
•
University
•
Practice Problem
•
Hard
Fatin Awad
Used 1+ times
FREE Resource
Enhance your content in a minute
16 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
20 sec • 1 pt
1. What is the format specifier for printing an integer in C?
%i
%d
%s
%f
2.
MULTIPLE CHOICE QUESTION
20 sec • 1 pt
2. How do you include a header file in C?
<include header.h>
<header.h>
#include "header.h"
include "header.h"
3.
MULTIPLE CHOICE QUESTION
20 sec • 1 pt
3. What is the result of the expression 10 % 3 in C?
0
3
3.33
1
4.
MULTIPLE CHOICE QUESTION
20 sec • 1 pt
4. How do you declare a constant pointer to an integer variable in C?
const * int ptr;
int * const ptr;
const int * ptr;
int const * ptr;
5.
MULTIPLE CHOICE QUESTION
20 sec • 1 pt
5. What is the purpose of the "do-while" loop in C?
To execute a block of code repeatedly until a condition is met
To iterate over the elements of an array
To break out of a loop prematurely
To execute a block of code at least once, then repeatedly until a condition is met
6.
MULTIPLE CHOICE QUESTION
20 sec • 1 pt
7. How do you access a specific element in an array in C?
arr(index)
arr[index]
arr{index}
arr.index
7.
MULTIPLE CHOICE QUESTION
20 sec • 1 pt
8. How do you declare a function pointer in C?
void (*ptr)();
(*ptr)() void;
(*ptr)();
void *ptr();
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
Coding club Summit Online Quiz
Quiz
•
University
20 questions
C Quest 2.0
Quiz
•
University
15 questions
Soal Java
Quiz
•
11th Grade - University
20 questions
CSE493_QUIZ 1
Quiz
•
University
16 questions
Python
Quiz
•
University
11 questions
Understanding Image Representation and Compression
Quiz
•
10th Grade - University
20 questions
PHP First Internal Practical Viva
Quiz
•
University
13 questions
Principles of Programming
Quiz
•
KG - 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 Computers
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
