Guess the output for the Follolwing Code
#include <stdio.h>
int main(){
int i=1;
while(i<5)
printf(" %d" ,i) ;
i++;
}
Think Tank Tuesday
Quiz
•
Computers
•
University
•
Hard
SRGEC AI&DS
Used 2+ times
FREE Resource
30 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
20 sec • 2 pts
Guess the output for the Follolwing Code
#include <stdio.h>
int main(){
int i=1;
while(i<5)
printf(" %d" ,i) ;
i++;
}
1 2 3 4 5
1 2 3 4
1 1 1 1 1 1 …...
Syntax error
2.
MULTIPLE CHOICE QUESTION
10 sec • 2 pts
How do you think AI might impact your life in the future?
It will help me learn new things and be more productive.
It will do all my homework for me.
It will take over all jobs and humans will become obsolete.
I'm not sure, but I'm curious to find out!
3.
MULTIPLE CHOICE QUESTION
20 sec • 2 pts
How to find length of string in c
name.length()
name.size()
strlen
No Predefined Function
4.
FILL IN THE BLANK QUESTION
20 sec • 3 pts
Identify the Budding AI-Chatbot Logo
5.
MULTIPLE CHOICE QUESTION
20 sec • 2 pts
Guess the output of the below Code.
#include <stdio.h>
int main() {
int a = 2;
int b = 14;
int c = 5;
printf("%d\n", (a > b) ? (a > c ? a : c) : (b > c) ? c : b);
return 0;
}
2
14
5
Compilation Error
6.
MULTIPLE CHOICE QUESTION
20 sec • 2 pts
What will be the output of the following code snippet?
#include <stdio.h>
int main() {
int a = 3, b = 5;
int t = a;
a = b;
b = t;
printf("%d %d", a, b);
return 0;
}
3 5
3 3
5 5
5 3
7.
MULTIPLE CHOICE QUESTION
20 sec • 2 pts
Which of these is an ethical concern about AI?
AI can help us solve complex problems.
AI can automate many tasks, making life easier.
AI could potentially become biased or discriminatory.
AI might take away jobs from humans.
30 questions
C-Language Q1
Quiz
•
University
30 questions
C Language Quiz
Quiz
•
University
25 questions
Programming Skills C/C++
Quiz
•
University
25 questions
GNIDOC ROUND 1
Quiz
•
University
25 questions
Code Carnival
Quiz
•
University
25 questions
C- Geniusia
Quiz
•
University
35 questions
CodeChef (Secret Snippet)
Quiz
•
University
35 questions
Kuis 2
Quiz
•
University
25 questions
Equations of Circles
Quiz
•
10th - 11th Grade
30 questions
Week 5 Memory Builder 1 (Multiplication and Division Facts)
Quiz
•
9th Grade
33 questions
Unit 3 Summative - Summer School: Immune System
Quiz
•
10th Grade
10 questions
Writing and Identifying Ratios Practice
Quiz
•
5th - 6th Grade
36 questions
Prime and Composite Numbers
Quiz
•
5th Grade
14 questions
Exterior and Interior angles of Polygons
Quiz
•
8th Grade
37 questions
Camp Re-cap Week 1 (no regression)
Quiz
•
9th - 12th Grade
46 questions
Biology Semester 1 Review
Quiz
•
10th Grade