
C Programming Placement Prep
Quiz
•
Computers
•
Professional Development
•
Practice Problem
•
Hard
M N SATISH KUMAR
FREE Resource
Enhance your content in a minute
15 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is the difference between 'int' and 'float' data types in C?
int is used for characters, while float is used for integers
int and float are interchangeable data types in C
int stores floating-point numbers, while float stores integer values
The main difference between 'int' and 'float' data types in C is that 'int' stores integer values, whereas 'float' stores floating-point numbers.
2.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
How do you declare a constant variable in C?
constant int MY_CONSTANT = 5;
const int MY_CONSTANT = 5;
int const MY_CONSTANT = 5;
const MY_CONSTANT = 5;
3.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is the purpose of 'if' statement in C?
To execute code conditionally
To declare variables
To repeat code multiple times
To define a function
4.
MULTIPLE SELECT QUESTION
30 sec • 1 pt
What is the syntax for 'switch' statement in C?
switch(expression) { case constant1: statements1; break; case constant2: statements2; break; case constant3: statements3; break; default: defaultStatements; }
switch(expression) { case constant1: statements1; break; case constant2: statements2; break; default: defaultStatements; }
switch(expression) { case constant1: statements1; break; case constant2: statements2; break; default: defaultStatements; }
switch(expression) { case constant1: statements1; break; case constant2: statements2; break; case constant3: statements3; break; }
5.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is the use of 'while' loop in C?
The 'while' loop in C is used to repeatedly execute a block of code as long as the specified condition is true.
The 'while' loop in C is used to terminate the program
The 'while' loop in C is used to execute code only once
The 'while' loop in C is used to skip code execution
6.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
How do you define a function in C?
return_type function_name(parameters) { // function body }
return_type(parameters) { // function body } function_name
function_name(parameters) { // function body }
function_name(parameters) { // function body } return_type
7.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is recursion in C programming?
Recursion in C programming is a technique where a function calls itself directly or indirectly.
Recursion in C programming is a data type
Recursion in C programming is a conditional statement
Recursion in C programming is a loop structure
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
17 questions
SQL - parte 1
Quiz
•
Professional Development
20 questions
class 8
Quiz
•
Professional Development
10 questions
Úng dụng công nghệ thông tin
Quiz
•
Professional Development
12 questions
Cycle 4: Session 8 Review.
Quiz
•
Professional Development
14 questions
Day 1 - Basics of Java
Quiz
•
Professional Development
14 questions
Web Basic
Quiz
•
Professional Development
20 questions
6.0 Security - CompTIA IT Fundamentals (ITF+) Security Quiz #1
Quiz
•
Professional Development
10 questions
ChatGPT for Work
Quiz
•
Professional Development
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
54 questions
Analyzing Line Graphs & Tables
Quiz
•
4th 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
Discover more resources for Computers
20 questions
Black History Month Trivia Game #1
Quiz
•
Professional Development
100 questions
Screening Test Customer Service
Quiz
•
Professional Development
20 questions
90s Cartoons
Quiz
•
Professional Development
10 questions
Reading a ruler in Inches
Quiz
•
4th Grade - Professio...
16 questions
Parallel, Perpendicular, and Intersecting Lines
Quiz
•
KG - Professional Dev...
12 questions
Valentines Day Trivia
Quiz
•
Professional Development
