C-Quest
Quiz
•
Computers
•
Professional Development
•
Hard
SKEPSIS cse
Used 46+ times
FREE Resource
Enhance your content in a minute
20 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is the purpose of the 'sizeof( )' operator in C programming?
To return the size of a variable
To compare two strings
To calculate the sum of two numbers
To print the address of a variable
2.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Mention the syntax for declaring a pointer in C.
int ptr;
int *ptr;
*int ptr;
ptr int;
3.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is the purpose of the 'continue' statement in C programming?
To skip the current iteration and move to the next
To print a line break in the output
To exit the loop or switch statement
To terminate the program
4.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Mention the difference between '++i' and 'i++' in C programming.
'++i' is post-increment and 'i++' is pre-increment.
'++i' is pre-increment and 'i++' is post-increment.
Both '++i' and 'i++' are used for the same purpose.
5.
MULTIPLE CHOICE QUESTION
30 sec • 2 pts
Give the output of the given code.
-10, 0
-9, -9
-7, 0
-10, -9
Answer explanation
In the context of the C programming language, ~a and !a have different meanings:
1. `~a` (Bitwise NOT):
- The `~` (tilde) operator in C performs bitwise NOT operation.
- It inverts each bit of the operand `a`.
- Example:
int a = 5; // binary: 0000 0101
int result = ~a; // binary: 1111 1010
2. `!a` (Logical NOT):
- The `!` (exclamation mark) operator in C is the logical NOT operator.
- It is used to invert the truth value of a condition or expression.
- If `a` is zero (false), then `!a` will be 1 (true), and if `a` is non-zero (true), then `!a` will be 0 (false).
- Example:
int a = 0;
int result = !a; // result will be 1 (true)
6.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Explain the concept of 'Pointers' in C programming.
Pointers are used to perform arithmetic operations.
Pointers are used to store the value of other variables.
Pointers are used to store the address of other variables.
7.
MULTIPLE CHOICE QUESTION
30 sec • 2 pts
Choose the correct option for receiving an input in Line 7.
Store the Input in variable "a".
scanf("%d", *a);
scanf("%d", x);
scanf("%d", &x);
scanf("%d", *x);
Answer explanation
In scanf we mention the address of the variable, where the value will be stored:
Syntax: scanf("%format_specifier", variable_address);
In this context,
x is a pointer storing the address of the variable a, where the input will be stored.
Create a free account and access millions of resources
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
By signing up, you agree to our Terms of Service & Privacy Policy
Already have an account?
Similar Resources on Wayground
15 questions
image processing quiz2
Quiz
•
University - Professi...
20 questions
File Extensions
Quiz
•
9th Grade - Professio...
20 questions
js DOM
Quiz
•
12th Grade - Professi...
20 questions
java revews
Quiz
•
Professional Development
15 questions
Javascript basics
Quiz
•
Professional Development
16 questions
Photoshop tools
Quiz
•
6th Grade - Professio...
16 questions
DECI - Week 13 - round
Quiz
•
Professional Development
20 questions
Python
Quiz
•
Professional Development
Popular Resources on Wayground
20 questions
Halloween Trivia
Quiz
•
6th - 8th Grade
25 questions
Multiplication Facts
Quiz
•
5th Grade
15 questions
Order of Operations
Quiz
•
5th Grade
20 questions
Halloween
Quiz
•
5th Grade
16 questions
Halloween
Quiz
•
3rd Grade
12 questions
It's The Great Pumpkin Charlie Brown
Quiz
•
1st - 5th Grade
20 questions
Possessive Nouns
Quiz
•
5th Grade
10 questions
Halloween Traditions and Origins
Interactive video
•
5th - 10th Grade
Discover more resources for Computers
10 questions
Halloween
Quiz
•
Professional Development
16 questions
Spooky Season Quiz
Quiz
•
Professional Development
5 questions
11.4.25 Student Engagement & Discourse
Lesson
•
Professional Development
50 questions
ASL Colors and Clothes
Quiz
•
KG - Professional Dev...
15 questions
Ohms Law
Quiz
•
Professional Development
10 questions
Halloween Trivia
Quiz
•
Professional Development
10 questions
Halloween Trivia
Quiz
•
Professional Development
