NotesWhat is notes.io?

Notes brand slogan

Notes - notes.io

d( ) y( ) 1. Koşul testi döngünün sonunda yapıldığı durumlarda döngü en az bir kez işlem görür.
d( ) y( ) 2. do.. while döngüsünden koşul doğru olduğu zaman çıkılır.
d( ) y( ) 3. do..while arasında birden fazla ifade kullanılıyorsa { } kullanılmasına gerek yoktur. Çünkü C esnek bir dildir.
d( ) y( ) 4. do.. while döngüsünde koşul gerçekleşmiyor ise döngünün başına gidilir.
d( ) y( ) 5. do... while döngüsü ilk kontrolü program bir kez çalıştırıldıktan sonra yapar.
d( ) y( ) 6. for (k=0; k<100; ++k) { ... } ve
for (k=0; k<100; ++k) { ... } arasında fark vardır.
(ikisi çalıştırıldığında aynı sonucu vermez.)
7. Aşağıdakilerden hangisi döngünün bir sonraki adımından devam etmesini sağlar?
a) exit b)break
c) goto d)continue
8. (x==y) ? puts (".....n"):puts(".....n"); ifadesi aşağıdaki deyimlerde hangisinin karşılığıdır?
a b
if (x==y)
puts (".....n");
else puts(".....n"); while (x==y) {
puts (".....n");
puts(".....n"); }
c d
for (x=1; x==y;y++)
{puts (".....n");
puts(".....n");
}; do {
puts (".....n");
puts(".....n"); }
while(x==y);

9. Aşağıdaki program parçasının çıktısı nedir?
ch="a";
switch ( ch )
{
case ‘ a ’ :
case ‘ A ’ : puts (“ Çok iyi ”) ;
case ‘ b ’ :
case ‘ B ’ : puts (“ Iyi ”) ;
}
a b c d
Çok iyi Iyi Çok iyi
Iyi a

10. Aşağıdaki program calıştırıldığında ekrana e yazar?
#include <stdio.h>
main()
{
int i=5;
while(--i);
printf(" i = %dn", i);
}
a) 5 b) 1 c) 0 d) -5
11., 12., 13., 14., 15. Sorular için:
#include "stdio.h"
main()
{
int n;
int f;
printf (“sayıyı giriniz “); scanf(“%d”, n);
f = 0;
while (n < 1) {
f = f * n;
n = n + 1;
}
printf(“Sonuç = &dn”, f);
}
Yukarıda verilen program ile 100 sayısının faktöriyeli bulunmak isteniyor. Yapılan yanlışlıkları sırasıyla yazınız.
yanlış doğrusu açıklama
11.


12.


13.


14.


15.




25 kişilik bir sınıfta bir dersten
2 tane sınav yapılıyor. Notlar kullanıcı tarafından klavyenin tuşları kullanılarak giriliyor. Bu
2 sınavın ortalaması 85'in altında olanlar çizgi altı sayılıyor. 85 ve 85'in üzeri çizgi üstü sayılıyor. En yüksek not 100'dür. Çizgi altındaki ve çizgi üstündeki öğrencileri sayan (kaç tanesi çizgi üstü, kaç tanesi çizgi altı) ve çizgi üstü ile çizgi altının yüzdesini (%) bulan programın
a) akış şemasını (for) döngüsü kullanarak çiziniz. (5p)
b) for kullanarak C kodunu yazınız. (5p)
c) while kullanarak C kodunu yazınız.Sadece baslangıç değeri, koşul ve artım yazılacak. (5p)
d) do..while kullanarak C kodunu yazınız. (5p) Sadece baslangıç değeri, koşul ve artım yazılacak.

NOT: "Yüzde nasıl bulunur?" diye soran öğrenciden 10 puan kırılacaktır.

Başarılar Dilerim.
Hasan Fahri Vural.
     
 
what is notes.io
 

Notes.io is a web-based application for taking notes. You can take your notes and share with others people. If you like taking long notes, notes.io is designed for you. To date, over 8,000,000,000 notes created and continuing...

With notes.io;

  • * You can take a note from anywhere and any device with internet connection.
  • * You can share the notes in social platforms (YouTube, Facebook, Twitter, instagram etc.).
  • * You can quickly share your contents without website, blog and e-mail.
  • * You don't need to create any Account to share a note. As you wish you can use quick, easy and best shortened notes with sms, websites, e-mail, or messaging services (WhatsApp, iMessage, Telegram, Signal).
  • * Notes.io has fabulous infrastructure design for a short link and allows you to share the note as an easy and understandable link.

Fast: Notes.io is built for speed and performance. You can take a notes quickly and browse your archive.

Easy: Notes.io doesn’t require installation. Just write and share note!

Short: Notes.io’s url just 8 character. You’ll get shorten link of your note when you want to share. (Ex: notes.io/q )

Free: Notes.io works for 12 years and has been free since the day it was started.


You immediately create your first note and start sharing with the ones you wish. If you want to contact us, you can use the following communication channels;


Email: [email protected]

Twitter: http://twitter.com/notesio

Instagram: http://instagram.com/notes.io

Facebook: http://facebook.com/notesio



Regards;
Notes.io Team

     
 
Shortened Note Link
 
 
Looding Image
 
     
 
Long File
 
 

For written notes was greater than 18KB Unable to shorten.

To be smaller than 18KB, please organize your notes, or sign in.