
Pretest
Authored by leonard peligro
Other
Vocational training
Used 1+ times

AI Actions
Add similar questions
Adjust reading levels
Convert to real-world scenario
Translate activity
More...
Content View
Student View
25 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is the correct syntax to include a standard input-output library in C?
A. #include <iostream>
B. #include <stdio.h>
C. #include <stdlib.h>
D. #include <string.h>
2.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is the default return type of the main() function in C?
void
int
float
char
3.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
How do you declare a variable named count of type int in C?
A. int count;
B. count int;
C. variable count = int;
D. int count = int;
4.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is the purpose of the printf() function in C?
A. To take input from the user
B. To print output to the console
C. To store data in a file
D. To perform arithmetic operations
5.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which of the following is the correct way to write a single-line comment in C?
A. /* This is a comment*/
B. -- This is a comment
C. // This is a comment
D. # This is a comment
6.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which of the following is the correct syntax for a for loop in C?
A. for (i = 0; i < 10; i++)
B. for (i = 0; i < 10; i--)
C. for i = 0 to 10
D. for (i < 10; i++)
7.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What will be the output of the following code snippet?
int x = 5; printf("%d", x++);
5
6
undefined
error
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
Verbe avoir (1)
Quiz
•
1st - 2nd Grade
20 questions
Pendekatan Behavioristik dalam Konseling
Quiz
•
12th Grade - University
20 questions
ALOMA
Quiz
•
4th Grade
20 questions
Review-Filipino 9
Quiz
•
9th Grade
25 questions
Ma maison
Quiz
•
2nd - 6th Grade
20 questions
Religions
Quiz
•
5th - 6th Grade
20 questions
revision
Quiz
•
1st Grade
20 questions
Quiz on Karnataka Cabinet Ministers-2023
Quiz
•
6th - 8th Grade
Popular Resources on Wayground
15 questions
Fractions on a Number Line
Quiz
•
3rd Grade
10 questions
Probability Practice
Quiz
•
4th Grade
15 questions
Probability on Number LIne
Quiz
•
4th Grade
20 questions
Equivalent Fractions
Quiz
•
3rd Grade
25 questions
Multiplication Facts
Quiz
•
5th Grade
22 questions
fractions
Quiz
•
3rd Grade
6 questions
Appropriate Chromebook Usage
Lesson
•
7th Grade
10 questions
Greek Bases tele and phon
Quiz
•
6th - 8th Grade